[gnome-boxes] list-view: Don't update selection mode at UI setup



commit af4e8e46367b5546615502843434dd5747004890
Author: Felipe Borges <felipeborges gnome org>
Date:   Mon Feb 12 13:23:09 2018 +0100

    list-view: Don't update selection mode at UI setup
    
    There's no need to update the properties default and it shouldn't
    be updated at all when there are multiple windows.

 src/list-view.vala | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/list-view.vala b/src/list-view.vala
index 76b49f83..723ab8ed 100644
--- a/src/list-view.vala
+++ b/src/list-view.vala
@@ -54,7 +54,6 @@ public override void dispose () {
     construct {
         items_connections = new HashTable<CollectionItem, ItemConnections> (direct_hash, direct_equal);
 
-        setup_list_box ();
 
         size_group = new Gtk.SizeGroup (Gtk.SizeGroupMode.VERTICAL);
         filter = new CollectionFilter ();
@@ -64,6 +63,7 @@ public override void dispose () {
         filter.filter_func_changed.connect (() => {
             list_box.invalidate_filter ();
         });
+        setup_list_box ();
 
         notify["ui-state"].connect (ui_state_changed);
     }
@@ -177,8 +177,6 @@ private void setup_list_box () {
 
         (list_box as Gtk.Container).add.connect (add_row);
         (list_box as Gtk.Container).remove.connect (remove_row);
-
-        update_selection_mode ();
     }
 
     private CollectionItem? get_item_for_row (Gtk.ListBoxRow box_row) {


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