[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/gtkutil.c
From: |
Jan Djärv |
Subject: |
[Emacs-diffs] Changes to emacs/src/gtkutil.c |
Date: |
Tue, 03 Jun 2003 13:38:41 -0400 |
Index: emacs/src/gtkutil.c
diff -c emacs/src/gtkutil.c:1.30 emacs/src/gtkutil.c:1.31
*** emacs/src/gtkutil.c:1.30 Mon Jun 2 14:50:15 2003
--- emacs/src/gtkutil.c Tue Jun 3 13:38:41 2003
***************
*** 1249,1254 ****
--- 1249,1260 ----
GtkWidget *w;
GtkWidget *wtoadd = 0;
+ /* It has been observed that some menu items have a NULL name field.
+ This will lead to this function being called with a NULL utf8_label.
+ GTK crashes on that so we set a blank label. Why there is a NULL
+ name remains to be investigated. */
+ if (! utf8_label) utf8_label = " ";
+
if (utf8_key)
wtoadd = make_widget_for_menu_item (utf8_label, utf8_key);