#include "cally-clone.h"
#include "cally-actor-private.h"
-#define CALLY_CLONE_DEFAULT_DESCRIPTION "ClutterClone accessibility object"
-
static void cally_clone_class_init (CallyCloneClass *klass);
static void cally_clone_init (CallyClone *clone);
/* AtkObject */
static void cally_clone_real_initialize (AtkObject *obj,
- gpointer data);
-static G_CONST_RETURN gchar *cally_clone_get_description (AtkObject *obj);
-
+ gpointer data);
G_DEFINE_TYPE (CallyClone, cally_clone, CALLY_TYPE_ACTOR)
AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
class->initialize = cally_clone_real_initialize;
- class->get_description = cally_clone_get_description;
}
static void
obj->role = ATK_ROLE_IMAGE;
}
-
-static G_CONST_RETURN gchar *
-cally_clone_get_description (AtkObject *obj)
-{
- G_CONST_RETURN gchar *description = NULL;
-
- g_return_val_if_fail (CALLY_IS_CLONE (obj), NULL);
-
- description = ATK_OBJECT_CLASS (cally_clone_parent_class)->get_description (obj);
- if (description == NULL)
- description = CALLY_CLONE_DEFAULT_DESCRIPTION;
-
- return description;
-}
#include "cally-rectangle.h"
#include "cally-actor-private.h"
-#define CALLY_RECTANGLE_DEFAULT_DESCRIPTION "A rectangle"
-
static void cally_rectangle_class_init (CallyRectangleClass *klass);
static void cally_rectangle_init (CallyRectangle *rectangle);
/* AtkObject */
static void cally_rectangle_real_initialize (AtkObject *obj,
- gpointer data);
-static G_CONST_RETURN gchar *cally_rectangle_get_description (AtkObject *obj);
-
+ gpointer data);
G_DEFINE_TYPE (CallyRectangle, cally_rectangle, CALLY_TYPE_ACTOR)
AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
class->initialize = cally_rectangle_real_initialize;
- class->get_description = cally_rectangle_get_description;
}
static void
obj->role = ATK_ROLE_IMAGE;
}
-
-static G_CONST_RETURN gchar *
-cally_rectangle_get_description (AtkObject *obj)
-{
- G_CONST_RETURN gchar *description = NULL;
-
- g_return_val_if_fail (CALLY_IS_RECTANGLE (obj), NULL);
-
- description = ATK_OBJECT_CLASS (cally_rectangle_parent_class)->get_description (obj);
- if (description == NULL)
- description = CALLY_RECTANGLE_DEFAULT_DESCRIPTION;
-
- return description;
-}
static void cally_stage_init (CallyStage *stage);
/* AtkObject.h */
-static G_CONST_RETURN gchar *cally_stage_get_name (AtkObject *obj);
-static G_CONST_RETURN gchar *cally_stage_get_description (AtkObject *obj);
static void cally_stage_real_initialize (AtkObject *obj,
gpointer data);
static AtkStateSet* cally_stage_ref_state_set (AtkObject *obj);
gpointer data);
-#define CALLY_STAGE_DEFAULT_NAME "Stage"
-#define CALLY_STAGE_DEFAULT_DESCRIPTION "Top level 'window' on which child actors are placed and manipulated"
-
G_DEFINE_TYPE (CallyStage, cally_stage, CALLY_TYPE_GROUP);
#define CALLY_STAGE_GET_PRIVATE(obj) \
/* CallyActorClass *cally_class = CALLY_ACTOR_CLASS (klass); */
/* AtkObject */
- class->get_name = cally_stage_get_name;
- class->get_description = cally_stage_get_description;
class->initialize = cally_stage_real_initialize;
class->ref_state_set = cally_stage_ref_state_set;
return accessible;
}
-/* AtkObject.h */
-static G_CONST_RETURN gchar *
-cally_stage_get_name (AtkObject *obj)
-{
- G_CONST_RETURN gchar *name = NULL;
-
- g_return_val_if_fail (CALLY_IS_STAGE (obj), NULL);
-
- /* parent name */
- name = ATK_OBJECT_CLASS (cally_stage_parent_class)->get_name (obj);
-
- if (name == NULL)
- name = CALLY_STAGE_DEFAULT_NAME;
-
- return name;
-}
-
-static G_CONST_RETURN gchar *
-cally_stage_get_description (AtkObject *obj)
-{
- G_CONST_RETURN gchar *description = NULL;
-
- g_return_val_if_fail (CALLY_IS_STAGE (obj), NULL);
-
- /* parent description */
- description = ATK_OBJECT_CLASS (cally_stage_parent_class)->get_description (obj);
-
- if (description == NULL)
- description = CALLY_STAGE_DEFAULT_DESCRIPTION;
-
- return description;
-}
-
static void
cally_stage_real_initialize (AtkObject *obj,
gpointer data)
#include "cally-texture.h"
#include "cally-actor-private.h"
-#define CALLY_TEXTURE_DEFAULT_DESCRIPTION "A texture"
-
static void cally_texture_class_init (CallyTextureClass *klass);
static void cally_texture_init (CallyTexture *texture);
/* AtkObject */
static void cally_texture_real_initialize (AtkObject *obj,
gpointer data);
-static G_CONST_RETURN gchar *cally_texture_get_description (AtkObject *obj);
-
G_DEFINE_TYPE (CallyTexture, cally_texture, CALLY_TYPE_ACTOR)
AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
class->initialize = cally_texture_real_initialize;
- class->get_description = cally_texture_get_description;
}
static void
/* default role */
obj->role = ATK_ROLE_IMAGE;
}
-
-static G_CONST_RETURN gchar *
-cally_texture_get_description (AtkObject *obj)
-{
- G_CONST_RETURN gchar *description = NULL;
-
- g_return_val_if_fail (CALLY_IS_TEXTURE (obj), NULL);
-
- description = ATK_OBJECT_CLASS (cally_texture_parent_class)->get_description (obj);
- if (description == NULL)
- description = CALLY_TEXTURE_DEFAULT_DESCRIPTION;
-
- return description;
-}