Mercurial > emacs
comparison src/gtkutil.c @ 73661:7c60775b5a52
* gtkutil.c (update_frame_tool_bar): If icon image is invalid and
wicon is null, insert an empty button.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 04 Nov 2006 03:08:35 +0000 |
parents | 7b5c0104efb0 |
children | 42ad3938ee1a c71725faff1a 02cf29720f31 |
comparison
equal
deleted
inserted
replaced
73660:4a5c7b0a29cc | 73661:7c60775b5a52 |
---|---|
3718 img = IMAGE_FROM_ID (f, img_id); | 3718 img = IMAGE_FROM_ID (f, img_id); |
3719 prepare_image_for_display (f, img); | 3719 prepare_image_for_display (f, img); |
3720 | 3720 |
3721 if (img->load_failed_p || img->pixmap == None) | 3721 if (img->load_failed_p || img->pixmap == None) |
3722 { | 3722 { |
3723 if (wicon) gtk_widget_hide (wicon); | 3723 if (wicon) |
3724 gtk_widget_hide (wicon); | |
3725 else | |
3726 gtk_toolbar_insert (GTK_TOOLBAR (x->toolbar_widget), | |
3727 gtk_tool_button_new (NULL, ""), | |
3728 i); | |
3724 continue; | 3729 continue; |
3725 } | 3730 } |
3726 | 3731 |
3727 if (! wicon) | 3732 if (! wicon) |
3728 { | 3733 { |