* gtkutil.c (update_frame_tool_bar): If icon image is invalid and

wicon is null, insert an empty button.
This commit is contained in:
Chong Yidong 2006-11-04 03:08:35 +00:00
parent ede4ac6a6a
commit ffbdf67b4c
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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,Ad(Brv <jan.h.d@swipnet.se>
* xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the

View file

@ -3720,7 +3720,12 @@ update_frame_tool_bar (f)
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;
}