GNOME Bugzilla – Bug 362870
Theme preferences dialog ignores gtk-button-images option in ~/.gtkrc-2.0
Last modified: 2007-05-19 13:31:57 UTC
Please describe the problem: I have the following one line in my ~/.gtkrc-2.0 file: gtk-button-images=0 This is supposed to disable the icons for buttons in gtk apps. However, this does not happen. I have tried restarting the computer and yet this setting does not take effect. Notice the icons to the left of "Install Theme" and "Theme Details" in the screenshot I will attach. So the theme preferences dialog seems to ignore the option in gtkrc-2.0 Steps to reproduce: 1. Add a line in ~/.gtkrc-2.0 file: gtk-button-images=0 2. Open the Theme Preferences window Actual results: This is supposed to disable the icons for buttons in gtk apps. However, this does not happen. I have tried restarting the computer and yet this setting does not take effect. Notice the icons to the left of "Install Theme" and "Theme Details" in the screenshot I will attach. Expected results: The buttons should not be visible. Does this happen every time? Yes. Other information: Bug originally reported at https://launchpad.net/distros/ubuntu/+source/control-center/+bug/66444 Screenshot: http://librarian.launchpad.net/4861107/Screenshot.png .gtkrc-2.0 file: http://librarian.launchpad.net/4861119/.gtkrc-2.0
Confirmed, but I think this is something GTK+ should be doing automatically. Moving to GTK+ for comment.
*** Bug 362884 has been marked as a duplicate of this bug. ***
GTK+ does do this automatically, if you give it the necessary information by using gtk_button_set_image or the "image" property.
The buttons are generated by libglade, so perhaps this is a libglade issue?
Fixed in the new appearance capplet in trunk. We're currently working around this libglade deficiency by setting the icon through code instead of glade, but it would be nice to get bug 436360 resolved...