From b8d968aa48bdef6d4c05e327415cea4729a39c22 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Wed, 13 Aug 2008 08:40:44 +0000 Subject: [PATCH] cast the return value of g_dgettext() to fix warning about discarded 2008-08-13 Michael Natterer * 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 | 5 +++++ gtk/gtkstock.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ac2023249..750046dce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-13 Michael Natterer + + * gtk/gtkstock.c (gtk_stock_lookup): cast the return value of + g_dgettext() to fix warning about discarded qualifier. + 2008-08-12 Paolo Borelli * gtk/gtkclipboard.c (gtk_clipboard_store): diff --git a/gtk/gtkstock.c b/gtk/gtkstock.c index aa40c1298..d2d6855d6 100644 --- a/gtk/gtkstock.c +++ b/gtk/gtkstock.c @@ -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); } } -- 2.43.2