summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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);