[seahorse/wip/nielsdg/seahorse-listview: 3/3] WIP
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse/wip/nielsdg/seahorse-listview: 3/3] WIP
- Date: Wed, 11 Dec 2019 07:06:25 +0000 (UTC)
commit 8fd996d1860bdabb0a73d3418f317f561288bcba
Author: Niels De Graef <nielsdegraef gmail com>
Date: Thu Dec 5 20:14:27 2019 +0100
WIP
src/key-manager.vala | 2 +-
src/sidebar.vala | 14 ++++----------
2 files changed, 5 insertions(+), 11 deletions(-)
---
diff --git a/src/key-manager.vala b/src/key-manager.vala
index 4097d953..cb233e57 100644
--- a/src/key-manager.vala
+++ b/src/key-manager.vala
@@ -391,7 +391,7 @@ public class Seahorse.KeyManager : Catalog {
/* Make sure we update the empty state on any change */
this.sidebar.selected_rows_changed.connect((sidebar) => { check_empty_state(); });
- this.sidebar.current_collection_changed.connect((sidebar) => { check_empty_state (); });
+ this.sidebar.current_collection_changed.connect((sidebar) => { warning("collection
changed!");check_empty_state (); });
this.sidebar_panes.position = this.settings.get_int("sidebar-width");
this.sidebar_panes.realize.connect(() => { this.sidebar_panes.position =
this.settings.get_int("sidebar-width"); });
diff --git a/src/sidebar.vala b/src/sidebar.vala
index 86561d99..8008eea0 100644
--- a/src/sidebar.vala
+++ b/src/sidebar.vala
@@ -70,14 +70,9 @@ public class Seahorse.Sidebar : Gtk.ListBox {
}
~Sidebar() {
- foreach (Backend backend in this.backends) {
- SignalHandler.disconnect_by_func((void*) backend, (void*) on_place_added, this);
- SignalHandler.disconnect_by_func((void*) backend, (void*) on_place_removed, this);
- SignalHandler.disconnect_by_func((void*) backend, (void*) on_backend_changed, this);
-
+ foreach (Backend backend in this.backends)
foreach (weak GLib.Object obj in backend.get_objects())
on_place_removed (backend, (Place) obj);
- }
}
private void load_backends() {
@@ -119,7 +114,7 @@ public class Seahorse.Sidebar : Gtk.ListBox {
}
private void on_sidebar_item_changed(SidebarItem item) {
- /* current_collection_changed(); */
+ current_collection_changed();
}
private void place_header_cb(Gtk.ListBoxRow row, Gtk.ListBoxRow? before) {
@@ -238,7 +233,7 @@ public class Seahorse.Sidebar : Gtk.ListBox {
this.store.sort(compare_places);
// Update selection
- /* update_objects(); */
+ update_objects();
}
private void update_backend(Backend? backend) {
@@ -336,8 +331,7 @@ public class Seahorse.Sidebar : Gtk.ListBox {
else if (place.uri.has_prefix(uri_prefix)) {
var chosen = new GenericSet<string?>(str_hash, str_equal);
chosen.add(place.uri);
- //XXX
- /* update_objects(); */
+ update_objects();
return;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]