[gconf-editor] Don't use G_CONST_RETURN
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gconf-editor] Don't use G_CONST_RETURN
- Date: Tue, 8 Nov 2011 14:35:30 +0000 (UTC)
commit ca3e0a8210398d7a9c30ffb9a3db38f053956233
Author: Christian Persch <chpe gnome org>
Date: Tue Nov 8 15:17:47 2011 +0100
Don't use G_CONST_RETURN
Just replace it with "const" so this builds with recent glib.
src/gconf-key-editor.c | 2 +-
src/gconf-key-editor.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gconf-key-editor.c b/src/gconf-key-editor.c
index 9cd82d2..b86ab94 100644
--- a/src/gconf-key-editor.c
+++ b/src/gconf-key-editor.c
@@ -992,7 +992,7 @@ gconf_key_editor_set_writable (GConfKeyEditor *editor, gboolean writable)
gtk_widget_set_sensitive (editor->string_box, writable);
}
-G_CONST_RETURN char *
+const char *
gconf_key_editor_get_key_name (GConfKeyEditor *editor)
{
return gtk_entry_get_text (GTK_ENTRY (editor->name_entry));
diff --git a/src/gconf-key-editor.h b/src/gconf-key-editor.h
index b269941..d570de0 100644
--- a/src/gconf-key-editor.h
+++ b/src/gconf-key-editor.h
@@ -84,7 +84,7 @@ char *gconf_key_editor_get_full_key_path (GConfKeyEditor *editor);
void gconf_key_editor_set_key_name (GConfKeyEditor *editor,
const char *path);
-G_CONST_RETURN char *gconf_key_editor_get_key_name (GConfKeyEditor *editor);
+const char *gconf_key_editor_get_key_name (GConfKeyEditor *editor);
void gconf_key_editor_set_writable (GConfKeyEditor *editor,
gboolean writable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]