GNOME Bugzilla – Bug 307818
"Save As..." button still shows an image with gtk-button-images=0
Last modified: 2005-06-16 12:51:09 UTC
Put gtk-button-images=0 somewhere in your .gtkrc : all the images in stock buttons are gone. However the "Open this file with" dialog in epiphany still shows an image on the "SAve As..." button.
This is the code that creates the button: button = gtk_button_new_with_label (_("_Save As...")); image = gtk_image_new_from_stock (GTK_STOCK_SAVE_AS, GTK_ICON_SIZE_BUTTON); gtk_button_set_image (GTK_BUTTON (button), image); Shouldn't the gtk-button-images setting also apply to non-stock buttons? IMHO yes, which would make this a gtk+ bug.
Ok, I found that it works when you don't show the image yourself. I'm going to fix that in ephy; but I think the docs should mention that you shouldn't do that.
Fixed on HEAD and gnome-2-10 branch; transferring to gtk+ for the documentation comment: IMHO the documentation of gtk_button_set_image() should mention that you should and need not show the image yourself.
2005-06-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkbutton.c (gtk_button_set_image): Add some more docs. (#307818, Christian Persch)