From ce62390010057fad06b4aa7f1ee0ea08c90eb225 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 9 Jun 2011 15:00:03 -0400 Subject: Replace G_CONST_RETURN with 'const'. GLib is finally dropping this hack. --- widgets/table/gal-a11y-e-cell.c | 8 ++++---- widgets/table/gal-a11y-e-table-click-to-add.c | 6 +++--- widgets/table/gal-a11y-e-table-column-header.c | 4 ++-- widgets/table/gal-a11y-e-table-item.c | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) (limited to 'widgets/table') diff --git a/widgets/table/gal-a11y-e-cell.c b/widgets/table/gal-a11y-e-cell.c index d5853270a4..e48977f026 100644 --- a/widgets/table/gal-a11y-e-cell.c +++ b/widgets/table/gal-a11y-e-cell.c @@ -103,7 +103,7 @@ gal_a11y_e_cell_dispose (GObject *object) } /* Static functions */ -static G_CONST_RETURN gchar * +static const gchar * gal_a11y_e_cell_get_name (AtkObject * a11y) { GalA11yECell *cell = GAL_A11Y_E_CELL (a11y); @@ -375,7 +375,7 @@ gal_a11y_e_cell_action_get_n_actions (AtkAction *action) return 0; } -static G_CONST_RETURN gchar * +static const gchar * gal_a11y_e_cell_action_get_name (AtkAction *action, gint index) { @@ -387,7 +387,7 @@ gal_a11y_e_cell_action_get_name (AtkAction *action, return info->name; } -static G_CONST_RETURN gchar * +static const gchar * gal_a11y_e_cell_action_get_description (AtkAction *action, gint index) { @@ -414,7 +414,7 @@ gal_a11y_e_cell_action_set_description (AtkAction *action, return TRUE; } -static G_CONST_RETURN gchar * +static const gchar * gal_a11y_e_cell_action_get_keybinding (AtkAction *action, gint index) { diff --git a/widgets/table/gal-a11y-e-table-click-to-add.c b/widgets/table/gal-a11y-e-table-click-to-add.c index 263af62e9a..a947415c15 100644 --- a/widgets/table/gal-a11y-e-table-click-to-add.c +++ b/widgets/table/gal-a11y-e-table-click-to-add.c @@ -54,7 +54,7 @@ etcta_get_n_actions (AtkAction *action) return 1; } -static G_CONST_RETURN gchar * +static const gchar * etcta_get_description (AtkAction *action, gint i) { @@ -64,7 +64,7 @@ etcta_get_description (AtkAction *action, return NULL; } -static G_CONST_RETURN gchar * +static const gchar * etcta_action_get_name (AtkAction *action, gint i) { if (i == 0) @@ -125,7 +125,7 @@ atk_action_interface_init (AtkActionIface *iface) iface->get_name = etcta_action_get_name; } -static G_CONST_RETURN gchar * +static const gchar * etcta_get_name (AtkObject *obj) { ETableClickToAdd * etcta; diff --git a/widgets/table/gal-a11y-e-table-column-header.c b/widgets/table/gal-a11y-e-table-column-header.c index a7503352a3..ccbfffadc9 100644 --- a/widgets/table/gal-a11y-e-table-column-header.c +++ b/widgets/table/gal-a11y-e-table-column-header.c @@ -146,11 +146,11 @@ gal_a11y_e_table_column_header_get_n_actions (AtkAction *action) return 1; } -static G_CONST_RETURN gchar * +static const gchar * gal_a11y_e_table_column_header_action_get_name (AtkAction *action, gint i) { - G_CONST_RETURN gchar *return_value; + const gchar *return_value; switch (i) { case 0: diff --git a/widgets/table/gal-a11y-e-table-item.c b/widgets/table/gal-a11y-e-table-item.c index 560ea3f54a..e296882e65 100644 --- a/widgets/table/gal-a11y-e-table-item.c +++ b/widgets/table/gal-a11y-e-table-item.c @@ -511,7 +511,7 @@ eti_get_caption (AtkTable *table) return NULL; } -static G_CONST_RETURN gchar * +static const gchar * eti_get_column_description (AtkTable *table, gint column) { @@ -546,7 +546,7 @@ eti_get_column_header (AtkTable *table, gint column) return atk_obj; } -static G_CONST_RETURN gchar * +static const gchar * eti_get_row_description (AtkTable *table, gint row) { -- cgit v1.2.3