[meld/ui-next] ui.findbar: Clarify some of our initialisation
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/ui-next] ui.findbar: Clarify some of our initialisation
- Date: Tue, 12 Mar 2019 20:27:28 +0000 (UTC)
commit 04b1c85258181ac774ec879a08b302cede24b7b0
Author: Kai Willadsen <kai willadsen gmail com>
Date: Mon Mar 11 06:53:26 2019 +1000
ui.findbar: Clarify some of our initialisation
meld/ui/findbar.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/meld/ui/findbar.py b/meld/ui/findbar.py
index 24ccea15..489dc202 100644
--- a/meld/ui/findbar.py
+++ b/meld/ui/findbar.py
@@ -45,10 +45,12 @@ class FindBar(Gtk.Grid):
self.search_context = None
self.notify_id = None
-
self.set_text_view(None)
+
+ # Setup a signal for when the find bar loses focus
parent.connect('set-focus-child', self.on_focus_child)
+ # Create and bind our GtkSourceSearchSettings
settings = GtkSource.SearchSettings()
self.match_case.bind_property('active', settings, 'case-sensitive')
self.whole_word.bind_property('active', settings, 'at-word-boundaries')
@@ -57,6 +59,7 @@ class FindBar(Gtk.Grid):
settings.set_wrap_around(True)
self.search_settings = settings
+ # Bind visibility and layout for find-and-replace mode
self.bind_property('replace_mode', self.replace_entry, 'visible')
self.bind_property('replace_mode', self.replace_all_button, 'visible')
self.bind_property('replace_mode', self.replace_button, 'visible')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]