Re: Gtk::Entry Icon
- From: Andrew <rugby471 gmail com>
- To: gtkmm-list gnome org
- Subject: Re: Gtk::Entry Icon
- Date: Fri, 18 Mar 2011 16:44:13 +0000
> Hm, maybe unset_icon() method was added in later version.
> Then try doing it in sort of C way with C++ method:
>
> set_icon_from_pixbuf(Glib::RefPtr<Gdk::Pixbuf>(), Gtk::ENTRY_ICON_SECONDARY);
>
> Glib::RefPtr<Gdk::Pixbuf>() is an empty refptr, which is a glibmm's
> NULL pointer, so it should unset an icon.
> Sorry, yes that seems to be in the (unstable) gtkmm 3 only. It's not in
> gtkmm-2.24 (the latest and probably last of the 2.x series).
> However, you can work around it by doing this:
> gtk_entry_set_icon_from_stock(entry.gobj(), 0);
Thanks very much to both of you for your help :)
--
Andrew
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]