[seahorse] Fix a few ownerships of generic arguments



commit 84030b35949d24a17a04deb0edfb8905ef5d1b21
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Jul 9 15:43:06 2018 +0200

    Fix a few ownerships of generic arguments

 common/catalog.vala  | 2 +-
 src/key-manager.vala | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/common/catalog.vala b/common/catalog.vala
index 586961c7..44130ee0 100644
--- a/common/catalog.vala
+++ b/common/catalog.vala
@@ -39,7 +39,7 @@ public abstract class Catalog : Gtk.ApplicationWindow {
 
        public abstract GLib.List<weak Backend> get_backends();
        public abstract Place? get_focused_place();
-       public abstract GLib.List<weak GLib.Object> get_selected_objects();
+       public abstract GLib.List<GLib.Object> get_selected_objects();
 
        construct {
                this._builder = Util.load_built_contents(this, this.ui_name);
diff --git a/src/key-manager.vala b/src/key-manager.vala
index 81255f17..ca03a580 100644
--- a/src/key-manager.vala
+++ b/src/key-manager.vala
@@ -201,7 +201,7 @@ public class Seahorse.KeyManager : Catalog {
     }
 
     private bool on_keymanager_key_list_popup_menu() {
-        GLib.List<weak GLib.Object> objects = get_selected_objects();
+        GLib.List<GLib.Object> objects = get_selected_objects();
         if (objects != null)
             show_context_menu(Catalog.MENU_OBJECT, 0, Gtk.get_current_event_time());
         return false;
@@ -393,7 +393,7 @@ public class Seahorse.KeyManager : Catalog {
         update_view_filter();
     }
 
-    public override GLib.List<weak GLib.Object> get_selected_objects() {
+    public override GLib.List<GLib.Object> get_selected_objects() {
         return KeyManagerStore.get_selected_objects(this.view);
     }
 


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