[meld] ui.findbar: Use the search-changed signal to avoid incomplete searches
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] ui.findbar: Use the search-changed signal to avoid incomplete searches
- Date: Sun, 19 Jul 2020 00:01:22 +0000 (UTC)
commit 540a545beae0c8cf37a1cdb97c30cfe6d64b0c02
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Jul 19 09:57:47 2020 +1000
ui.findbar: Use the search-changed signal to avoid incomplete searches
The `search-changed` signal is different from the `changed` signal in
that it has a short 150ms delay before it fires to wait for additional
keypresses. The effect of this is that we don't search for something
that the user hasn't finished typing.
meld/resources/ui/findbar.ui | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meld/resources/ui/findbar.ui b/meld/resources/ui/findbar.ui
index 1bc1a6ac..d089de90 100644
--- a/meld/resources/ui/findbar.ui
+++ b/meld/resources/ui/findbar.ui
@@ -70,7 +70,7 @@
<property name="primary_icon_activatable">False</property>
<property name="secondary_icon_activatable">False</property>
<signal name="activate" handler="on_find_next_button_clicked" swapped="no"/>
- <signal name="changed" handler="on_find_entry_changed" swapped="no"/>
+ <signal name="search-changed" handler="on_find_entry_changed" swapped="no"/>
<signal name="stop-search" handler="on_stop_search" swapped="no"/>
</object>
<packing>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]