[seahorse] KeyManager: fix selected-uris critical



commit aacf9b7d7b991b85f0a1c82ccd8c1c9cb3b3513d
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Wed Jan 15 07:35:27 2020 +0100

    KeyManager: fix selected-uris critical
    
    Sidebar doesn't have a "selected-uris" property anymore. We probably
    want to reinstate this at a certain point, but since there's a good
    chance we will still see some large changes, it might be good to
    postpone this.

 src/key-manager.vala | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/key-manager.vala b/src/key-manager.vala
index 6d302ce1..9049bbe1 100644
--- a/src/key-manager.vala
+++ b/src/key-manager.vala
@@ -390,7 +390,7 @@ public class Seahorse.KeyManager : Catalog {
         sidebar.hexpand = true;
 
         /* Make sure we update the empty state on any change */
-        this.sidebar.selected_rows_changed.connect((sidebar) => { check_empty_state(); });
+        this.sidebar.selected_rows_changed.connect(on_sidebar_selected_rows_changed);
         this.sidebar.current_collection_changed.connect((sidebar) => { check_empty_state (); });
 
         this.sidebar_panes.position = this.settings.get_int("sidebar-width");
@@ -406,11 +406,15 @@ public class Seahorse.KeyManager : Catalog {
         this.sidebar_area.add(this.sidebar);
         this.sidebar.show();
 
-        this.settings.bind("keyrings-selected", this.sidebar, "selected-uris", SettingsBindFlags.DEFAULT);
-
         return this.sidebar.objects;
     }
 
+    private void on_sidebar_selected_rows_changed(Gtk.ListBox sidebar) {
+        check_empty_state();
+        // FIXME
+        //this.settings.set_strv("keyrings-selected", );
+    }
+
     public override List<weak Backend> get_backends() {
         return this.sidebar.get_backends();
     }


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