wicon is null, insert an empty button.
+2006-11-03 Chong Yidong <cyd@stupidchicken.com>
+
+ * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
+ wicon is null, insert an empty button.
+
2006-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
* xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
if (img->load_failed_p || img->pixmap == None)
{
- if (wicon) gtk_widget_hide (wicon);
+ if (wicon)
+ gtk_widget_hide (wicon);
+ else
+ gtk_toolbar_insert (GTK_TOOLBAR (x->toolbar_widget),
+ gtk_tool_button_new (NULL, ""),
+ i);
continue;
}