+2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
+ is a string.
+
2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
* nsfns.m (ns_frame_parm_handlers): Add a slot for the
2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
- * keyboard.c (parse_tool_bar_item): malloc buf. Set TOOL_BAR_ITEM_LABEL
- to empty string if not set to new_lbl (Bug#6855).
+ * keyboard.c (parse_tool_bar_item): malloc buf.
+ Set TOOL_BAR_ITEM_LABEL to empty string if not set to
+ new_lbl (Bug#6855).
2010-08-14 Eli Zaretskii <eliz@gnu.org>
* w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
the cursor on the right edge of the stretch glyph.
- * xdisp.c (window_box_right_offset, window_box_right): Fix
- commentary.
+ * xdisp.c (window_box_right_offset, window_box_right):
+ Fix commentary.
* xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
direction when point is inside a run of whitespace characters.
GtkWidget *wbutton = NULL;
GtkWidget *weventbox;
Lisp_Object specified_file;
- char *label = SSDATA (PROP (TOOL_BAR_ITEM_LABEL));
+ char *label = (STRINGP (PROP (TOOL_BAR_ITEM_LABEL))
+ ? SSDATA (PROP (TOOL_BAR_ITEM_LABEL)) : "");
ti = gtk_toolbar_get_nth_item (GTK_TOOLBAR (wtoolbar), i);