Re: Buutons, but no icons
- From: Armin Burgmeier <armin arbur net>
- To: Kees Kling <ckling upcmail nl>
- Cc: gtkmm-list gnome org
- Subject: Re: Buutons, but no icons
- Date: Fri, 05 Nov 2010 16:13:12 +0100
What theme are you running? There are themes which don't show icons in
buttons.
Also make sure the Gtk::Image stays alive as long as the button is
shown, so maybe try allocating it on the heap as well, using
Gtk::manage.
Armin
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
>
> Thanks
>
> Kees Kling
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]