diff options
author | Chong Yidong <[email protected]> | 2006-11-04 03:08:35 +0000 |
---|---|---|
committer | Chong Yidong <[email protected]> | 2006-11-04 03:08:35 +0000 |
commit | ffbdf67b4c0bff0616b65d5365dc43a07f5d3f72 (patch) | |
tree | 63a15fc865ca01354107925b77f6f7165a0a1d94 /src | |
parent | ede4ac6a6a66892c6dcb448d81c5655c7325cc89 (diff) |
* gtkutil.c (update_frame_tool_bar): If icon image is invalid and
wicon is null, insert an empty button.
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 5 | ||||
-rw-r--r-- | src/gtkutil.c | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 73b654b920..0d6f6838e8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-11-03 Chong Yidong <[email protected]> + + * 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 <[email protected]> * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the diff --git a/src/gtkutil.c b/src/gtkutil.c index 07cc883fb8..f7b9f8c18f 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -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; } |