diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-12-20 16:05:25 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-12-20 16:05:25 +0000 |
commit | 8454afe8e6eed39fcde72e844463d3f8e03e10fc (patch) | |
tree | a7c62131511360d04ff3bf628fef20b3b1d5e05f /gtk/gtkactiongroup.c | |
parent | 7e00903af721b997b03834ddf9f58c6cd322cdf0 (diff) | |
download | gtk+-8454afe8e6eed39fcde72e844463d3f8e03e10fc.tar.gz |
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)
Diffstat (limited to 'gtk/gtkactiongroup.c')
-rw-r--r-- | gtk/gtkactiongroup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkactiongroup.c b/gtk/gtkactiongroup.c index 803c5ef7c9..510f9c5c87 100644 --- a/gtk/gtkactiongroup.c +++ b/gtk/gtkactiongroup.c @@ -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; |