[dconf-editor] Give focus to bookmarked_switch.



commit 91d9794b789caec091ac476a54a154deff3bc32b
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Feb 16 17:20:16 2018 +0100

    Give focus to bookmarked_switch.

 editor/bookmarks.vala |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/editor/bookmarks.vala b/editor/bookmarks.vala
index 7b96160..2469466 100644
--- a/editor/bookmarks.vala
+++ b/editor/bookmarks.vala
@@ -44,9 +44,12 @@ public class Bookmarks : MenuButton
             });
 
         update_bookmarks ();
-        bookmarked_switch.grab_focus ();
+        ulong clicked_handler = clicked.connect (() => bookmarked_switch.grab_focus ());
 
-        destroy.connect (() => settings.disconnect (bookmarks_changed_handler));
+        destroy.connect (() => {
+                settings.disconnect (bookmarks_changed_handler);
+                disconnect (clicked_handler);
+            });
     }
 
     /*\


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