Re: Gtk::Entry Icon



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?

[1
]http://library.gnome.org/devel/gtkmm/2.21/classGtk_1_1Entry.html#a2357356dfb62358ae9a46ffb68eceabd


-- 
Andrew


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