]> git.eshelyaron.com Git - emacs.git/commitdiff
(update_frame_tool_bar): Don't call x-gtk-map-stock if
authorJan Djärv <jan.h.d@swipnet.se>
Thu, 22 Nov 2007 08:35:57 +0000 (08:35 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Thu, 22 Nov 2007 08:35:57 +0000 (08:35 +0000)
file for image is nil.

src/ChangeLog
src/gtkutil.c

index f5a86a78ce23860dc9d643ba15d4a3eb6bd7f1c3..a9bac7dbf6b4a9a6060763279ad6fcac352f91a4 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
+       file for image is nil.
+
 2007-11-22  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * term.c: Include stdarg.h.
index 77d5fd656490e05bb3862c8ed0351a0573f15cee..41926ace154e763d4041aba85cdc60eb478db97d 100644 (file)
@@ -3821,6 +3821,7 @@ update_frame_tool_bar (f)
       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);
 
@@ -3839,8 +3840,9 @@ update_frame_tool_bar (f)
           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))
         {