[gnome-boxes] collection-view: Redraw view after setting model columns



commit 894c89410a2be933daf30462e0325ac2957bcc74
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Aug 21 16:33:16 2012 +0300

    collection-view: Redraw view after setting model columns
    
    This is a work-around for bug#682156.

 src/collection-view.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/collection-view.vala b/src/collection-view.vala
index c491ea8..d4a4c33 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -185,6 +185,7 @@ private class Boxes.CollectionView: Boxes.UI {
         }
 
         model.set (iter, ModelColumns.SCREENSHOT, pixbuf);
+        icon_view.queue_draw ();
     }
 
     private Gtk.TreeIter append (string title,
@@ -229,12 +230,14 @@ private class Boxes.CollectionView: Boxes.UI {
         var name_id = item.notify["name"].connect (() => {
             // apparently iter is stable after insertion/removal/sort
             model.set (iter, ModelColumns.TITLE, item.name);
+            icon_view.queue_draw ();
         });
         item.set_data<ulong> ("name_id", name_id);
 
         var info_id = machine.notify["info"].connect (() => {
             // apparently iter is stable after insertion/removal/sort
             model.set (iter, ModelColumns.INFO, machine.info);
+            icon_view.queue_draw ();
         });
         item.set_data<ulong> ("info_id", info_id);
 



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