summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-12-11 15:59:21 +0000
committerDavid Robillard <d@drobilla.net>2009-12-11 15:59:21 +0000
commitfc56a92847ff6ae474f0aad3167ba2f55196c395 (patch)
treed68b706750023c4c3c9a0be761827675d8806202 /src
parentcf8baa65fcea4fb42a27f65eb710204dd9f88d71 (diff)
downloadingen-fc56a92847ff6ae474f0aad3167ba2f55196c395.tar.gz
ingen-fc56a92847ff6ae474f0aad3167ba2f55196c395.tar.bz2
ingen-fc56a92847ff6ae474f0aad3167ba2f55196c395.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/gui/LoadPluginWindow.cpp5
-rw-r--r--src/gui/LoadPluginWindow.hpp2
2 files changed, 7 insertions, 0 deletions
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::RefPtr<G
sigc::mem_fun(this, &LoadPluginWindow::filter_changed));
_node_name_entry->signal_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.
diff --git a/src/gui/LoadPluginWindow.hpp b/src/gui/LoadPluginWindow.hpp
index 1ec5700c..b5a3bbd5 100644
--- a/src/gui/LoadPluginWindow.hpp
+++ b/src/gui/LoadPluginWindow.hpp
@@ -97,7 +97,9 @@ private:
void filter_changed();
void clear_clicked();
void name_changed();
+#ifdef HAVE_NEW_GTKMM
void name_cleared(Gtk::EntryIconPosition pos, const GdkEventButton* event);
+#endif
void new_plugin(SharedPtr<PluginModel> plugin);