Mercurial > emacs
changeset 79460:1d493051aed3
(update_frame_tool_bar): Don't call x-gtk-map-stock if
file for image is nil.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Thu, 22 Nov 2007 08:39:38 +0000 |
parents | 65d8378b766b |
children | bd1fcc60391b |
files | src/gtkutil.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkutil.c Wed Nov 21 00:32:46 2007 +0000 +++ b/src/gtkutil.c Thu Nov 22 08:39:38 2007 +0000 @@ -3808,6 +3808,7 @@ GtkWidget *wbutton = NULL; GtkWidget *weventbox; Lisp_Object func = intern ("x-gtk-map-stock"); + Lisp_Object specified_file; ti = gtk_toolbar_get_nth_item (GTK_TOOLBAR (x->toolbar_widget), i); @@ -3826,8 +3827,9 @@ continue; } - if (EQ (Qt, Ffboundp (func))) - stock = call1 (func, file_for_image (image)); + specified_file = file_for_image (image); + if (!NILP (specified_file) && EQ (Qt, Ffboundp (func))) + stock = call1 (func, specified_file); if (! NILP (stock) && STRINGP (stock)) {