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)
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)
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)
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)
+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
<!-- ##### 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 ##### -->
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;