aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-06-10 03:00:03 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-06-10 03:00:03 +0800
commit89d7c38c8bd3aac0060e7e8e3913507444c00608 (patch)
tree4caae638b8c5f92797818dbdb34c18daac74cbc7 /widgets/misc
parentcbbb6f2200af24a2e1d4f600b90127acb4ec5523 (diff)
downloadgsoc2013-evolution-89d7c38c8bd3aac0060e7e8e3913507444c00608.tar
gsoc2013-evolution-89d7c38c8bd3aac0060e7e8e3913507444c00608.tar.gz
gsoc2013-evolution-89d7c38c8bd3aac0060e7e8e3913507444c00608.tar.bz2
gsoc2013-evolution-89d7c38c8bd3aac0060e7e8e3913507444c00608.tar.lz
gsoc2013-evolution-89d7c38c8bd3aac0060e7e8e3913507444c00608.tar.xz
gsoc2013-evolution-89d7c38c8bd3aac0060e7e8e3913507444c00608.tar.zst
gsoc2013-evolution-89d7c38c8bd3aac0060e7e8e3913507444c00608.zip
Replace G_CONST_RETURN with 'const'.
GLib is finally dropping this hack.
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/ea-calendar-cell.c8
-rw-r--r--widgets/misc/ea-calendar-item.c16
-rw-r--r--widgets/misc/ea-cell-table.c4
-rw-r--r--widgets/misc/ea-cell-table.h4
4 files changed, 16 insertions, 16 deletions
diff --git a/widgets/misc/ea-calendar-cell.c b/widgets/misc/ea-calendar-cell.c
index 0d41575a58..b8e53fd359 100644
--- a/widgets/misc/ea-calendar-cell.c
+++ b/widgets/misc/ea-calendar-cell.c
@@ -95,8 +95,8 @@ e_calendar_cell_new (ECalendarItem *calitem, gint row, gint column)
static void ea_calendar_cell_class_init (EaCalendarCellClass *klass);
static void ea_calendar_cell_init (EaCalendarCell *a11y);
-static G_CONST_RETURN gchar * ea_calendar_cell_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar * ea_calendar_cell_get_description (AtkObject *accessible);
+static const gchar * ea_calendar_cell_get_name (AtkObject *accessible);
+static const gchar * ea_calendar_cell_get_description (AtkObject *accessible);
static AtkObject * ea_calendar_cell_get_parent (AtkObject *accessible);
static gint ea_calendar_cell_get_index_in_parent (AtkObject *accessible);
static AtkStateSet *ea_calendar_cell_ref_state_set (AtkObject *accessible);
@@ -213,7 +213,7 @@ static void ea_calendar_cell_finalize (GObject *object)
}
#endif
-static G_CONST_RETURN gchar *
+static const gchar *
ea_calendar_cell_get_name (AtkObject *accessible)
{
GObject *g_obj;
@@ -247,7 +247,7 @@ ea_calendar_cell_get_name (AtkObject *accessible)
return accessible->name;
}
-static G_CONST_RETURN gchar *
+static const gchar *
ea_calendar_cell_get_description (AtkObject *accessible)
{
return ea_calendar_cell_get_name (accessible);
diff --git a/widgets/misc/ea-calendar-item.c b/widgets/misc/ea-calendar-item.c
index 89fcf3a031..5d482feb40 100644
--- a/widgets/misc/ea-calendar-item.c
+++ b/widgets/misc/ea-calendar-item.c
@@ -41,8 +41,8 @@
static void ea_calendar_item_class_init (EaCalendarItemClass *klass);
static void ea_calendar_item_finalize (GObject *object);
-static G_CONST_RETURN gchar * ea_calendar_item_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar * ea_calendar_item_get_description (AtkObject *accessible);
+static const gchar * ea_calendar_item_get_name (AtkObject *accessible);
+static const gchar * ea_calendar_item_get_description (AtkObject *accessible);
static gint ea_calendar_item_get_n_children (AtkObject *accessible);
static AtkObject *ea_calendar_item_ref_child (AtkObject *accessible, gint index);
static AtkStateSet* ea_calendar_item_ref_state_set (AtkObject *accessible);
@@ -91,10 +91,10 @@ static AtkObject* table_interface_get_column_header (AtkTable *table,
gint in_col);
static AtkObject* table_interface_get_caption (AtkTable *table);
-static G_CONST_RETURN gchar *
+static const gchar *
table_interface_get_column_description (AtkTable *table, gint in_col);
-static G_CONST_RETURN gchar *
+static const gchar *
table_interface_get_row_description (AtkTable *table, gint row);
static AtkObject* table_interface_get_summary (AtkTable *table);
@@ -266,7 +266,7 @@ ea_calendar_item_finalize (GObject *object)
#endif
}
-static G_CONST_RETURN gchar *
+static const gchar *
ea_calendar_item_get_name (AtkObject *accessible)
{
GObject *g_obj;
@@ -341,7 +341,7 @@ ea_calendar_item_get_name (AtkObject *accessible)
return accessible->name;
}
-static G_CONST_RETURN gchar *
+static const gchar *
ea_calendar_item_get_description (AtkObject *accessible)
{
if (accessible->description)
@@ -795,7 +795,7 @@ table_interface_get_caption (AtkTable *table)
return NULL;
}
-static G_CONST_RETURN gchar *
+static const gchar *
table_interface_get_column_description (AtkTable *table, gint in_col)
{
AtkGObjectAccessible *atk_gobj;
@@ -829,7 +829,7 @@ table_interface_get_column_description (AtkTable *table, gint in_col)
return description;
}
-static G_CONST_RETURN gchar *
+static const gchar *
table_interface_get_row_description (AtkTable *table, gint row)
{
AtkGObjectAccessible *atk_gobj;
diff --git a/widgets/misc/ea-cell-table.c b/widgets/misc/ea-cell-table.c
index 19c4ffb4aa..c0c2bc0cde 100644
--- a/widgets/misc/ea-cell-table.c
+++ b/widgets/misc/ea-cell-table.c
@@ -146,7 +146,7 @@ ea_cell_table_set_cell_at_index (EaCellTable * cell_data,
return TRUE;
}
-G_CONST_RETURN gchar *
+const gchar *
ea_cell_table_get_column_label (EaCellTable * cell_data,
gint column)
{
@@ -168,7 +168,7 @@ ea_cell_table_set_column_label (EaCellTable * cell_data,
cell_data->column_labels[column] = g_strdup (label);
}
-G_CONST_RETURN gchar *
+const gchar *
ea_cell_table_get_row_label (EaCellTable * cell_data,
gint row)
{
diff --git a/widgets/misc/ea-cell-table.h b/widgets/misc/ea-cell-table.h
index bcd6efdc85..a13d7a52c7 100644
--- a/widgets/misc/ea-cell-table.h
+++ b/widgets/misc/ea-cell-table.h
@@ -47,11 +47,11 @@ gpointer ea_cell_table_get_cell_at_index (EaCellTable * cell_data,
gboolean ea_cell_table_set_cell_at_index (EaCellTable * cell_data,
gint index, gpointer cell);
-G_CONST_RETURN gchar *
+const gchar *
ea_cell_table_get_column_label (EaCellTable * cell_data, gint column);
void ea_cell_table_set_column_label (EaCellTable * cell_data,
gint column, const gchar *label);
-G_CONST_RETURN gchar *
+const gchar *
ea_cell_table_get_row_label (EaCellTable * cell_data, gint row);
void ea_cell_table_set_row_label (EaCellTable * cell_data,
gint row, const gchar *label);