]> Pileus Git - ~andy/gtk/commitdiff
cast the return value of g_dgettext() to fix warning about discarded
authorMichael Natterer <mitch@imendio.com>
Wed, 13 Aug 2008 08:40:44 +0000 (08:40 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Wed, 13 Aug 2008 08:40:44 +0000 (08:40 +0000)
2008-08-13  Michael Natterer  <mitch@imendio.com>

* gtk/gtkstock.c (gtk_stock_lookup): cast the return value of
g_dgettext() to fix warning about discarded qualifier.

svn path=/trunk/; revision=21106

ChangeLog
gtk/gtkstock.c

index ac20232497e4430d1bd227ce57b875566aebb674..750046dcefe33c6e89c371cd4a9763a0d5641895 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-13  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtkstock.c (gtk_stock_lookup): cast the return value of
+       g_dgettext() to fix warning about discarded qualifier.
+
 2008-08-12  Paolo Borelli  <pborelli@katamail.com>
 
        * gtk/gtkclipboard.c (gtk_clipboard_store):
index aa40c1298a47541746715582dca1df5ff7593d98..d2d6855d6169f607ab54301a1a949f942a51af86 100644 (file)
@@ -176,7 +176,7 @@ gtk_stock_lookup (const gchar  *stock_id,
          if (translate != NULL && translate->func != NULL)
            item->label = (* translate->func) (item->label, translate->data);
          else
-           item->label = g_dgettext (item->translation_domain, item->label);
+           item->label = (gchar *) g_dgettext (item->translation_domain, item->label);
        }
     }