_print_object (AtkObject *aobject)
{
GtkWidget *widget;
- G_CONST_RETURN gchar * parent_name = NULL;
- G_CONST_RETURN gchar * name = NULL;
- G_CONST_RETURN gchar * description = NULL;
- G_CONST_RETURN gchar * typename = NULL;
- G_CONST_RETURN gchar * parent_typename = NULL;
- G_CONST_RETURN gchar * role_name = NULL;
- G_CONST_RETURN gchar * accel_name = NULL;
- G_CONST_RETURN gchar * text = NULL;
+ const gchar * parent_name = NULL;
+ const gchar * name = NULL;
+ const gchar * description = NULL;
+ const gchar * typename = NULL;
+ const gchar * parent_typename = NULL;
+ const gchar * role_name = NULL;
+ const gchar * accel_name = NULL;
+ const gchar * text = NULL;
AtkRole role;
AtkObject *parent = NULL;
static AtkObject *prev_aobject = NULL;
if (relation_set)
{
AtkRelation * relation;
- G_CONST_RETURN gchar * relation_name = NULL;
- G_CONST_RETURN gchar * relation_obj_name = NULL;
+ const gchar * relation_name = NULL;
+ const gchar * relation_obj_name = NULL;
AtkRelationType relation_type;
AtkObject *relation_obj;
GPtrArray * relation_arry;
{
gboolean boolean_value;
AtkStateType one_state;
- G_CONST_RETURN gchar *name;
+ const gchar *name;
gint i;
for (i=0; i < sizeof(states_to_track)/sizeof(AtkStateType); i++)
static gint
_print_action (AtkAction *aobject)
{
- G_CONST_RETURN gchar *action_name;
- G_CONST_RETURN gchar *action_description;
- G_CONST_RETURN gchar *action_keybinding;
+ const gchar *action_name;
+ const gchar *action_description;
+ const gchar *action_keybinding;
gchar *label_str, *output_str;
gint group_num;
gint num_actions, j;
static gint
_print_image (AtkImage *aobject)
{
- G_CONST_RETURN gchar *image_desc;
+ const gchar *image_desc;
gchar *output_str;
gint x = 0;
gint y = 0;
for (j = 0; j < n_selected; j++)
{
- G_CONST_RETURN gchar *selected_name;
+ const gchar *selected_name;
AtkObject *selected_object;
selected_object = atk_selection_ref_selection (aobject, j);
_print_table (AtkTable *aobject)
{
gchar *label_str, *output_str;
- G_CONST_RETURN gchar *col_desc;
+ const gchar *col_desc;
AtkObject *caption;
gint n_cols, n_rows;
gint i;
caption = atk_table_get_caption(aobject);
if (caption)
{
- G_CONST_RETURN gchar* caption_name;
+ const gchar* caption_name;
caption_name = atk_object_get_name (caption);
if (caption_name)
static void
_check_object (AtkObject *obj)
{
- G_CONST_RETURN char *accessible_name;
- G_CONST_RETURN gchar * typename = NULL;
+ const char *accessible_name;
+ const gchar * typename = NULL;
if (GTK_IS_ACCESSIBLE (obj))
{
{
AtkAction *action = ATK_ACTION (obj);
gint n_actions, i;
- G_CONST_RETURN gchar *action_name;
- G_CONST_RETURN gchar *action_desc;
- G_CONST_RETURN gchar *action_binding;
+ const gchar *action_name;
+ const gchar *action_desc;
+ const gchar *action_binding;
const gchar *desc = "Test description";
n_actions = atk_action_get_n_actions (action);
*/
{
AtkRole valid_roles[NUM_VALID_ROLES];
- G_CONST_RETURN char *name;
+ const char *name;
AtkObject *atk_button;
GtkWidget *widget;
for (i = 0; i < 64; i++)
{
AtkStateType one_state;
- G_CONST_RETURN gchar *name;
+ const gchar *name;
if (atk_state_set_contains_state (state_set, i))
{
_print_button_image_info(AtkObject *obj) {
gint height, width;
- G_CONST_RETURN gchar *desc;
+ const gchar *desc;
height = width = 0;
n_children = atk_object_get_n_accessible_children (child);
for (i = 0; i < n_children; i++)
{
- G_CONST_RETURN gchar *name;
+ const gchar *name;
grand_child = atk_object_ref_accessible_child (child, i);
name = atk_object_get_name (grand_child);
_print_image_info(AtkObject *obj) {
gint height, width;
- G_CONST_RETURN gchar *desc;
- G_CONST_RETURN gchar *name = atk_object_get_name (obj);
- G_CONST_RETURN gchar *type_name = g_type_name(G_TYPE_FROM_INSTANCE (obj));
+ const gchar *desc;
+ const gchar *name = atk_object_get_name (obj);
+ const gchar *type_name = g_type_name(G_TYPE_FROM_INSTANCE (obj));
height = width = 0;
AtkObject *child;
gint i, j;
gint n_children;
- G_CONST_RETURN gchar *accessible_name;
+ const gchar *accessible_name;
if (obj == NULL)
return NULL;
gint i;
gint n_children;
AtkObject *child;
- G_CONST_RETURN gchar * typename = NULL;
+ const gchar * typename = NULL;
if (obj == NULL)
return NULL;
gint position)
{
gint i;
- G_CONST_RETURN gchar *label_string;
+ const gchar *label_string;
for (i = 0; i < MAX_PARAMS; i++)
{
gchar *function_name,
gchar *arg_label)
{
- G_CONST_RETURN gchar *argString;
+ const gchar *argString;
gchar *retString;
gint position, paramPosition;
_check_object (AtkObject *obj)
{
AtkRole role;
- static G_CONST_RETURN char *name = NULL;
+ static const char *name = NULL;
static gboolean first_time = TRUE;
role = atk_object_get_role (obj);
(role == ATK_ROLE_RADIO_MENU_ITEM) ||
(role == ATK_ROLE_TEAR_OFF_MENU_ITEM))
{
- G_CONST_RETURN char *keybinding;
- G_CONST_RETURN char *accessible_name;
+ const char *keybinding;
+ const char *accessible_name;
accessible_name = atk_object_get_name (obj);
if (accessible_name)
}
else
{
- G_CONST_RETURN char *accessible_name;
+ const char *accessible_name;
accessible_name = atk_object_get_name (obj);
if (accessible_name)
static void _print_type (AtkObject *obj)
{
- G_CONST_RETURN gchar *typename = NULL;
- G_CONST_RETURN gchar *name = NULL;
- G_CONST_RETURN gchar *description = NULL;
+ const gchar *typename = NULL;
+ const gchar *name = NULL;
+ const gchar *description = NULL;
AtkRole role;
if (GTK_IS_ACCESSIBLE (obj))
for (i = 0; i < 64; i++)
{
AtkStateType one_state;
- G_CONST_RETURN gchar *name;
+ const gchar *name;
if (atk_state_set_contains_state (state_set, i))
{
static void _print_type (AtkObject *obj)
{
- G_CONST_RETURN gchar * typename = NULL;
- G_CONST_RETURN gchar * name = NULL;
+ const gchar * typename = NULL;
+ const gchar * name = NULL;
AtkRole role;
static gboolean in_print_type = FALSE;
GObject *object;
guint index;
gpointer target;
- G_CONST_RETURN gchar *target_name = "NotAtkObject";
+ const gchar *target_name = "NotAtkObject";
object = g_value_get_object (param_values + 0);
index = g_value_get_uint (param_values + 1);
static void _property_change_handler (AtkObject *obj,
AtkPropertyValues *values)
{
- G_CONST_RETURN gchar *type_name = g_type_name (G_TYPE_FROM_INSTANCE (obj));
- G_CONST_RETURN gchar *name = atk_object_get_name (obj);
+ const gchar *type_name = g_type_name (G_TYPE_FROM_INSTANCE (obj));
+ const gchar *name = atk_object_get_name (obj);
g_print ("_property_change_handler: Accessible Type: %s\n",
type_name ? type_name : "NULL");
_property_change_handler (AtkObject *obj,
AtkPropertyValues *values)
{
- G_CONST_RETURN gchar *type_name = g_type_name (G_TYPE_FROM_INSTANCE (obj));
- G_CONST_RETURN gchar *name = atk_object_get_name (obj);
+ const gchar *type_name = g_type_name (G_TYPE_FROM_INSTANCE (obj));
+ const gchar *name = atk_object_get_name (obj);
g_print ("_property_change_handler: Accessible Type: %s\n",
type_name ? type_name : "NULL");
static void _print_type (AtkObject *obj)
{
- G_CONST_RETURN gchar * typename = NULL;
- G_CONST_RETURN gchar * name = NULL;
+ const gchar * typename = NULL;
+ const gchar * name = NULL;
AtkRole role;
if (GTK_IS_ACCESSIBLE (obj))
static void _property_change_handler (AtkObject *obj,
AtkPropertyValues *values)
{
- G_CONST_RETURN gchar *type_name = g_type_name (G_TYPE_FROM_INSTANCE (obj));
- G_CONST_RETURN gchar *name = atk_object_get_name (obj);
+ const gchar *type_name = g_type_name (G_TYPE_FROM_INSTANCE (obj));
+ const gchar *name = atk_object_get_name (obj);
g_print ("_property_change_handler: Accessible Type: %s\n",
type_name ? type_name : "NULL");
_notify_handler (GObject *obj, GParamSpec *pspec)
{
AtkObject *atk_obj = ATK_OBJECT (obj);
- G_CONST_RETURN gchar *name;
+ const gchar *name;
g_print ("_notify_handler: property: %s\n", pspec->name);
if (strcmp (pspec->name, "accessible-name") == 0)
static void _check_table (AtkObject *in_obj)
{
AtkObject *obj = NULL;
- G_CONST_RETURN char *no_properties;
- G_CONST_RETURN char *no_gui;
+ const char *no_properties;
+ const char *no_gui;
no_properties = g_getenv ("TEST_ACCESSIBLE_NO_PROPERTIES");
no_gui = g_getenv ("TEST_ACCESSIBLE_NO_GUI");
{
AtkObject *header_obj;
AtkObject *out_obj;
- G_CONST_RETURN gchar *out_string;
+ const gchar *out_string;
GString *out_desc;
gint n_cols, n_rows;
gint rows_to_loop = NUM_ROWS_TO_LOOP;
{
AtkAction *action = ATK_ACTION(obj);
gint n_actions, i;
- G_CONST_RETURN gchar *name, *description;
+ const gchar *name, *description;
n_actions = atk_action_get_n_actions (action);
g_print ("Child supports %d actions.\n", n_actions);
*/
else
{
- G_CONST_RETURN gchar *test_accessible_name = g_getenv ("TEST_ACCESSIBLE_NAME");
+ const gchar *test_accessible_name = g_getenv ("TEST_ACCESSIBLE_NAME");
if (test_accessible_name != NULL)
{
{
GObject *object;
gboolean state_set;
- G_CONST_RETURN gchar *state_name;
+ const gchar *state_name;
AtkStateType state_type;
object = g_value_get_object (param_values + 0);
for (i = 0; i < n_actions; i++)
{
- G_CONST_RETURN gchar* name;
+ const gchar* name;
name = atk_action_get_name (action, i);
g_print ("Action %d is %s\n", i, name);
static void _value_change_handler (AtkObject *obj,
AtkPropertyValues *values)
{
- G_CONST_RETURN gchar *type_name = g_type_name (G_TYPE_FROM_INSTANCE (obj));
+ const gchar *type_name = g_type_name (G_TYPE_FROM_INSTANCE (obj));
GValue *value_back, val;
value_back = &val;