mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Handle item->translation_domain being NULL. (#166179, Diego Gonzalez)
2005-02-04 Matthias Clasen <mclasen@redhat.com> * gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain being NULL. (#166179, Diego Gonzalez)
This commit is contained in:
parent
46a5bd82ae
commit
8ccd6cba27
@ -1,3 +1,8 @@
|
||||
2005-02-04 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
|
||||
being NULL. (#166179, Diego Gonzalez)
|
||||
|
||||
2005-02-04 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* configure.in: Revert gtk_binary_version to 2.4.0. Fix
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-02-04 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
|
||||
being NULL. (#166179, Diego Gonzalez)
|
||||
|
||||
2005-02-04 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* configure.in: Revert gtk_binary_version to 2.4.0. Fix
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-02-04 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkstock.c (gtk_stock_lookup): Handle item->translation_domain
|
||||
being NULL. (#166179, Diego Gonzalez)
|
||||
|
||||
2005-02-04 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* configure.in: Revert gtk_binary_version to 2.4.0. Fix
|
||||
|
@ -166,9 +166,12 @@ gtk_stock_lookup (const gchar *stock_id,
|
||||
if (item->label)
|
||||
{
|
||||
GtkStockTranslateFunc *translate;
|
||||
|
||||
translate = (GtkStockTranslateFunc *)
|
||||
g_hash_table_lookup (translate_hash, item->translation_domain);
|
||||
|
||||
if (item->translation_domain)
|
||||
translate = (GtkStockTranslateFunc *)
|
||||
g_hash_table_lookup (translate_hash, item->translation_domain);
|
||||
else
|
||||
translate = NULL;
|
||||
|
||||
if (translate != NULL && translate->func != NULL)
|
||||
item->label = (* translate->func) (item->label, translate->data);
|
||||
|
Loading…
Reference in New Issue
Block a user