[gtkmm] Gtk::SearchEntry: Wrap the search-changed signal
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk::SearchEntry: Wrap the search-changed signal
- Date: Thu, 23 Oct 2014 16:40:14 +0000 (UTC)
commit f1e6eddfc00ab66c9a5b0b52f2de90420937a634
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Thu Oct 23 18:29:21 2014 +0200
Gtk::SearchEntry: Wrap the search-changed signal
* gtk/src/searchentry.hg: Wrap the search-changed signal.
gtk/src/searchentry.hg | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/searchentry.hg b/gtk/src/searchentry.hg
index 4ae5a7d..dc34ede 100644
--- a/gtk/src/searchentry.hg
+++ b/gtk/src/searchentry.hg
@@ -35,6 +35,12 @@ namespace Gtk
* icon, and thus does not work if you are using the secondary
* icon position for some other purpose.
*
+ * To make filtering appear more reactive, it is a good idea to
+ * not react to every change in the entry text immediately, but
+ * only after a short delay. To support this, Gtk::SearchEntry
+ * emits the signal_search_changed() signal which can
+ * be used instead of the Gtk::Editable::signal_changed() signal.
+ *
* @ingroup Widgets
* @newin{3,6}
*/
@@ -45,6 +51,9 @@ class SearchEntry
public:
_CTOR_DEFAULT
+
+ //TODO: Remove no_default_handler when we can break ABI:
+ _WRAP_SIGNAL(void search_changed(), "search-changed", no_default_handler)
};
} /* namespace Gtk */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]