[gtranslator] Do not use G_CONST_RETURN
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] Do not use G_CONST_RETURN
- Date: Thu, 9 Jun 2011 20:54:10 +0000 (UTC)
commit 9574b7df12d84c658ae2607e5bd15e049cce0f3d
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Thu Jun 9 22:56:09 2011 +0200
Do not use G_CONST_RETURN
plugins/dictionary/gtr-gdict-sidebar.c | 2 +-
plugins/dictionary/gtr-gdict-sidebar.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/dictionary/gtr-gdict-sidebar.c b/plugins/dictionary/gtr-gdict-sidebar.c
index d402f30..e32ae73 100644
--- a/plugins/dictionary/gtr-gdict-sidebar.c
+++ b/plugins/dictionary/gtr-gdict-sidebar.c
@@ -479,7 +479,7 @@ gdict_sidebar_view_page (GdictSidebar * sidebar, const gchar * page_id)
gtk_menu_shell_select_item (GTK_MENU_SHELL (priv->menu), page->menu_item);
}
-G_CONST_RETURN gchar *
+const gchar *
gdict_sidebar_current_page (GdictSidebar * sidebar)
{
GdictSidebarPrivate *priv;
diff --git a/plugins/dictionary/gtr-gdict-sidebar.h b/plugins/dictionary/gtr-gdict-sidebar.h
index c75877c..0662388 100644
--- a/plugins/dictionary/gtr-gdict-sidebar.h
+++ b/plugins/dictionary/gtr-gdict-sidebar.h
@@ -70,7 +70,7 @@ gdict_sidebar_get_type (void)
const gchar * page_id);
void gdict_sidebar_view_page (GdictSidebar * sidebar,
const gchar * page_id);
- G_CONST_RETURN gchar *gdict_sidebar_current_page (GdictSidebar *
+ const gchar *gdict_sidebar_current_page (GdictSidebar *
sidebar);
gchar **gdict_sidebar_list_pages (GdictSidebar * sidebar,
gsize * length) G_GNUC_MALLOC;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]