PDA

View Full Version : Gtk::Stock doesn't use system settings



cl333r
May 9th, 2009, 01:53 PM
Folks, I use Gtk::Stock to create a button and I get this situation: Gnome is configured to show "icons only" (in System-Preferences-Appearance-Interface), but my button shows both the text label and the icon.
How do I tell the button to use "the system settings" and thus in my case display only the icon?

Here's how I create the button:


Gtk::Button *pForwardBt = new Gtk::Button(Gtk::Stock::GO_FORWARD);
myContainer.pack_start(*pForwardBt, Gtk::PACK_SHRINK);

cl333r
May 9th, 2009, 07:37 PM
Uh.. looks like there's no such option. I ended up doing this to partially solve the problem:



Gtk::Button *pForwardBt = new Gtk::Button();
Gtk::Widget *pImage = manage (new Gtk::Image(Gtk::Stock::GO_FORWARD, Gtk::ICON_SIZE_BUTTON));
pForwardBt->add(*pImage);