[gtksourceview/wip/search: 32/36] Note about the delayed "changed" signal on a GtkSearchEntry



commit 652fe5b4c112adbff2ecf566cb426e2b356c034a
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Jul 4 22:02:50 2013 +0200

    Note about the delayed "changed" signal on a GtkSearchEntry

 tests/test-search-ui.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-search-ui.c b/tests/test-search-ui.c
index 2053a53..6b0fb25 100644
--- a/tests/test-search-ui.c
+++ b/tests/test-search-ui.c
@@ -121,6 +121,14 @@ update_label (TestSearchUI *search)
        g_free (text);
 }
 
+/* The search entry is a GtkSearchEntry. The "changed" signal is delayed on a
+ * GtkSearchEntry (but not with a simple GtkEntry). That's why the
+ * "notify::text" signal is used instead.
+ * With the "changed" signal, the search highlighting takes some time to be
+ * updated, while with the notify signal, it is immediate.
+ *
+ * See https://bugzilla.gnome.org/show_bug.cgi?id=700229
+ */
 static void
 search_entry_text_notify_cb (TestSearchUI *search,
                             GParamSpec   *spec,



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