cast the return value of g_dgettext() to fix warning about discarded

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
This commit is contained in:
Michael Natterer 2008-08-13 08:40:44 +00:00 committed by Michael Natterer
parent 5c7030a1ba
commit b8d968aa48
2 changed files with 6 additions and 1 deletions

View File

@ -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):

View 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);
}
}