Re: Buutons, but no icons



On Fri, 2010-11-05 at 16:08 +0100, Kees Kling wrote:
> Hi,
> 
> This is my second mail, because it went out without subject.
> 
> I'm trying to construct buttons with just an icon. I thought that next 
> snippet will do, but I only get empty buttons.
> 
> iconify = manage ( new Gtk::Button());
> Gtk::Image img(Gtk::Stock::REMOVE,Gtk::ICON_SIZE_BUTTON);
> iconify->set_image(img);
> iconify->set_tooltip_text("minimize window");
> pack_start(*iconify,Gtk::PACK_SHRINK);
> 
> 
> What is wrong with my code

I suspect that the no-icons thing in the theme also affects that. If so,
I think that's stupid and I must remember to file a bug about it for GTK
+ 3.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]