Commit d4ad8c04 authored by Jan Djärv's avatar Jan Djärv

(update_frame_tool_bar): Don't call x-gtk-map-stock if

file for image is nil.
parent d2ea6863
2007-11-22 Jan Dj,Ad(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.
......
......@@ -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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment