diff options
| author | Stefan Monnier | 2010-08-17 23:43:47 +0200 |
|---|---|---|
| committer | Stefan Monnier | 2010-08-17 23:43:47 +0200 |
| commit | c3554f68257e2789b5bad2355ece4775b219341d (patch) | |
| tree | ce141681499bda6d68e820eb31e02710218a9985 /src | |
| parent | 1ff2e434a6edc302cfda752da89ea0fae3676c48 (diff) | |
| download | emacs-c3554f68257e2789b5bad2355ece4775b219341d.tar.gz emacs-c3554f68257e2789b5bad2355ece4775b219341d.zip | |
* src/gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
is a string.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 14 | ||||
| -rw-r--r-- | src/gtkutil.c | 3 |
2 files changed, 12 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6e4d3379beb..29d3294210c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL | ||
| 4 | is a string. | ||
| 5 | |||
| 1 | 2010-08-17 Jan Djärv <jan.h.d@swipnet.se> | 6 | 2010-08-17 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 7 | ||
| 3 | * nsfns.m (ns_frame_parm_handlers): Add a slot for the | 8 | * nsfns.m (ns_frame_parm_handlers): Add a slot for the |
| @@ -41,8 +46,9 @@ | |||
| 41 | 46 | ||
| 42 | 2010-08-15 Jan Djärv <jan.h.d@swipnet.se> | 47 | 2010-08-15 Jan Djärv <jan.h.d@swipnet.se> |
| 43 | 48 | ||
| 44 | * keyboard.c (parse_tool_bar_item): malloc buf. Set TOOL_BAR_ITEM_LABEL | 49 | * keyboard.c (parse_tool_bar_item): malloc buf. |
| 45 | to empty string if not set to new_lbl (Bug#6855). | 50 | Set TOOL_BAR_ITEM_LABEL to empty string if not set to |
| 51 | new_lbl (Bug#6855). | ||
| 46 | 52 | ||
| 47 | 2010-08-14 Eli Zaretskii <eliz@gnu.org> | 53 | 2010-08-14 Eli Zaretskii <eliz@gnu.org> |
| 48 | 54 | ||
| @@ -50,8 +56,8 @@ | |||
| 50 | * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display | 56 | * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display |
| 51 | the cursor on the right edge of the stretch glyph. | 57 | the cursor on the right edge of the stretch glyph. |
| 52 | 58 | ||
| 53 | * xdisp.c (window_box_right_offset, window_box_right): Fix | 59 | * xdisp.c (window_box_right_offset, window_box_right): |
| 54 | commentary. | 60 | Fix commentary. |
| 55 | 61 | ||
| 56 | * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph | 62 | * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph |
| 57 | direction when point is inside a run of whitespace characters. | 63 | direction when point is inside a run of whitespace characters. |
diff --git a/src/gtkutil.c b/src/gtkutil.c index fd89015aedc..5cfc980c5b8 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -4292,7 +4292,8 @@ update_frame_tool_bar (FRAME_PTR f) | |||
| 4292 | GtkWidget *wbutton = NULL; | 4292 | GtkWidget *wbutton = NULL; |
| 4293 | GtkWidget *weventbox; | 4293 | GtkWidget *weventbox; |
| 4294 | Lisp_Object specified_file; | 4294 | Lisp_Object specified_file; |
| 4295 | char *label = SSDATA (PROP (TOOL_BAR_ITEM_LABEL)); | 4295 | char *label = (STRINGP (PROP (TOOL_BAR_ITEM_LABEL)) |
| 4296 | ? SSDATA (PROP (TOOL_BAR_ITEM_LABEL)) : ""); | ||
| 4296 | 4297 | ||
| 4297 | ti = gtk_toolbar_get_nth_item (GTK_TOOLBAR (wtoolbar), i); | 4298 | ti = gtk_toolbar_get_nth_item (GTK_TOOLBAR (wtoolbar), i); |
| 4298 | 4299 | ||