diff --git a/ChangeLog b/ChangeLog index ac20232497..750046dcef 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 aa40c1298a..d2d6855d61 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); } }