summaryrefslogtreecommitdiff
path: root/src/gtkutil.c
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2011-02-14 14:30:49 +0100
committerJan Djärv <jan.h.d@swipnet.se>2011-02-14 14:30:49 +0100
commit42f6055717e74ea9541c5cf6fd0fc6501bd907fd (patch)
treef3ab4f5edb69e4be352a4ee151e8b0c4131b19d4 /src/gtkutil.c
parente45de620e7a4e29ad3f5f934a36b5fcd77e50375 (diff)
downloademacs-42f6055717e74ea9541c5cf6fd0fc6501bd907fd.tar.gz
* gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label is null.
Diffstat (limited to 'src/gtkutil.c')
-rw-r--r--src/gtkutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 6367949a649..6ecd5d624af 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -3677,7 +3677,7 @@ xg_tool_bar_menu_proxy (GtkToolItem *toolitem, gpointer user_data)
GtkLabel *wlbl = GTK_LABEL (xg_get_tool_bar_widgets (vb, &c1));
GtkImage *wimage = GTK_IMAGE (c1);
GtkWidget *wmenuitem = gtk_image_menu_item_new_with_label
- (gtk_label_get_text (wlbl));
+ (wlbl ? gtk_label_get_text (wlbl) : "");
GtkWidget *wmenuimage;