forked from AuroraMiddleware/gtk
Don't translate NULL messages. (#161789, Morten Welinder)
2004-12-20 Matthias Clasen <mclasen@redhat.com> * gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't translate NULL messages. (#161789, Morten Welinder)
This commit is contained in:
parent
7e00903af7
commit
8454afe8e6
@ -1,5 +1,8 @@
|
||||
2004-12-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
|
||||
translate NULL messages. (#161789, Morten Welinder)
|
||||
|
||||
* gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
|
||||
the secondary label on show_all(). (#161707, Christian Persch)
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-12-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
|
||||
translate NULL messages. (#161789, Morten Welinder)
|
||||
|
||||
* gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
|
||||
the secondary label on show_all(). (#161707, Christian Persch)
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-12-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
|
||||
translate NULL messages. (#161789, Morten Welinder)
|
||||
|
||||
* gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
|
||||
the secondary label on show_all(). (#161707, Christian Persch)
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-12-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
|
||||
translate NULL messages. (#161789, Morten Welinder)
|
||||
|
||||
* gtk/gtkmessagedialog.c (setup_primary_label_font): Don't show
|
||||
the secondary label on show_all(). (#161707, Christian Persch)
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
2004-12-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/tmpl/gtkitemfactory.sgml: Document GtkTranslateFunc
|
||||
|
||||
2004-12-17 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/tmpl/x_interaction.sgml: Remove a no longer needed
|
||||
|
@ -31,12 +31,15 @@ As of GTK+ 2.4, #GtkItemFactory has been deprecated in favour of #GtkUIManager.
|
||||
|
||||
<!-- ##### USER_FUNCTION GtkTranslateFunc ##### -->
|
||||
<para>
|
||||
|
||||
The function used to translate messages in e.g. #GtkIconFactory
|
||||
and #GtkActionGroup.
|
||||
</para>
|
||||
|
||||
@path:
|
||||
@func_data:
|
||||
@Returns:
|
||||
@path: The id of the message. In #GtkItemFactory this will be a path
|
||||
from a #GtkItemFactoryEntry, in #GtkActionGroup, it will be a label
|
||||
or tooltip from a #GtkActionEntry.
|
||||
@func_data: user data passed in when registering the function
|
||||
@Returns: the translated message
|
||||
|
||||
|
||||
<!-- ##### USER_FUNCTION GtkItemFactoryCallback ##### -->
|
||||
|
@ -1076,6 +1076,9 @@ gtk_action_group_translate_string (GtkActionGroup *action_group,
|
||||
|
||||
g_return_val_if_fail (GTK_IS_ACTION_GROUP (action_group), string);
|
||||
|
||||
if (string == NULL)
|
||||
return NULL;
|
||||
|
||||
translate_func = action_group->private_data->translate_func;
|
||||
translate_data = action_group->private_data->translate_data;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user