[nautilus] eel: Use 'const' instead G_CONST_RETURN
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] eel: Use 'const' instead G_CONST_RETURN
- Date: Thu, 9 Jun 2011 16:57:20 +0000 (UTC)
commit a8443f64b6554b640f9bd39b3470284127b7bc3f
Author: Javier Jardón <jjardon gnome org>
Date: Thu Jun 9 17:32:11 2011 +0100
eel: Use 'const' instead G_CONST_RETURN
eel/eel-editable-label.c | 4 ++--
eel/eel-editable-label.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index 64d861f..03d4d7d 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -681,7 +681,7 @@ eel_editable_label_set_text (EelEditableLabel *label,
* Return value: the text in the label widget. This is the internal
* string used by the label, and must not be modified.
**/
-G_CONST_RETURN gchar *
+const gchar *
eel_editable_label_get_text (EelEditableLabel *label)
{
g_return_val_if_fail (EEL_IS_EDITABLE_LABEL (label), NULL);
@@ -4204,7 +4204,7 @@ eel_editable_label_accessible_initialize (AtkObject *accessible,
atk_object_set_role (accessible, ATK_ROLE_TEXT);
}
-static G_CONST_RETURN gchar*
+static const gchar*
eel_editable_label_accessible_get_name (AtkObject *accessible)
{
if (accessible->name != NULL)
diff --git a/eel/eel-editable-label.h b/eel/eel-editable-label.h
index 66fc0e2..cabcd63 100644
--- a/eel/eel-editable-label.h
+++ b/eel/eel-editable-label.h
@@ -109,7 +109,7 @@ GType eel_editable_label_get_type (void) G_GNUC_CONST;
GtkWidget* eel_editable_label_new (const char *str);
void eel_editable_label_set_text (EelEditableLabel *label,
const char *str);
-G_CONST_RETURN gchar* eel_editable_label_get_text (EelEditableLabel *label);
+const gchar* eel_editable_label_get_text (EelEditableLabel *label);
void eel_editable_label_set_justify (EelEditableLabel *label,
GtkJustification jtype);
GtkJustification eel_editable_label_get_justify (EelEditableLabel *label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]