From fc56a92847ff6ae474f0aad3167ba2f55196c395 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 11 Dec 2009 15:59:21 +0000 Subject: Build against old Gtkmm (without clear icon in text entries). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2309 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/LoadPluginWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/LoadPluginWindow.cpp') diff --git a/src/gui/LoadPluginWindow.cpp b/src/gui/LoadPluginWindow.cpp index c5b895cc..be3a6e1a 100644 --- a/src/gui/LoadPluginWindow.cpp +++ b/src/gui/LoadPluginWindow.cpp @@ -93,8 +93,11 @@ LoadPluginWindow::LoadPluginWindow(BaseObjectType* cobject, const Glib::RefPtrsignal_changed().connect( sigc::mem_fun(this, &LoadPluginWindow::name_changed)); + +#ifdef HAVE_NEW_GTKMM _search_entry->signal_icon_release().connect( sigc::mem_fun(this, &LoadPluginWindow::name_cleared)); +#endif _selection = _plugins_treeview->get_selection(); _selection->set_mode(Gtk::SELECTION_MULTIPLE); @@ -140,11 +143,13 @@ LoadPluginWindow::name_changed() } +#ifdef HAVE_NEW_GTKMM void LoadPluginWindow::name_cleared(Gtk::EntryIconPosition pos, const GdkEventButton* event) { _search_entry->set_text(""); } +#endif // HAVE_NEW_GTKMM /** Sets the patch controller for this window and initializes everything. -- cgit v1.2.1