Re: Gtk::Entry Icon
- From: Krzesimir Nowak <qdlacz gmail com>
- To: rugby471 gmail com
- Cc: gtkmm-list gnome org
- Subject: Re: Gtk::Entry Icon
- Date: Thu, 17 Mar 2011 19:57:00 +0100
2011/3/17 Andrew <rugby471 gmail com>:
> Hi,
>
> I have a Gtk::Entry that has an icon at the end
> (Gtk::ENTRY_ICON_SECONDARY) and I set it to be Gtk::Stock::CLEAR
>
> Now I want to remove this icon. In C, I do this by passing NULL to
> gtk_entry_set_icon_from_stock(). Reading the documentation at [1], I
> gather that I should pass zero to achieve this same effect. However when
> I do this, I receive the error:
>
> [Code]
> set_icon_from_stock(0, Gtk::ENTRY_ICON_SECONDARY);
>
> [Error]
> ui/dialog/ocaldialogs.cpp: In constructor
> ‘Inkscape::UI::Dialog::OCAL::SearchEntry::SearchEntry(Glib::ustring)’:
>
> ui/dialog/ocaldialogs.cpp:292: error: no matching function for call to
> ‘Inkscape::UI::Dialog::OCAL::SearchEntry::set_icon_from_stock(int,
> Gtk::EntryIconPosition)’
>
> /usr/include/gtkmm-2.4/gtkmm/entry.h:625: note: candidates are: void
> Gtk::Entry::set_icon_from_stock(const Gtk::StockID&, Gtk::EntryIconPosition)
>
>
> How can I achieve this in gtkmm?
>
Use Gtk::Entry::unset_icon(Gtk::EntryIconPosition).
> [1
> ]http://library.gnome.org/devel/gtkmm/2.21/classGtk_1_1Entry.html#a2357356dfb62358ae9a46ffb68eceabd
>
>
> --
> Andrew
> _______________________________________________
> 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]