[gnome-boxes] spice: show display when channel is up



commit a73189fb08a3ed3470c9e172654966f713a202ae
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Thu Oct 13 16:16:26 2011 +0200

    spice: show display when channel is up

 src/machine.vala       |    2 +-
 src/spice-display.vala |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 3728c7c..4c1db3e 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -136,7 +136,7 @@ private class Boxes.Machine: Boxes.CollectionItem {
             pixbuf = new Gdk.Pixbuf.from_file (get_screenshot_filename ());
         } catch (GLib.Error error) {
             if (!(error is FileError.NOENT))
-                warning (error.message);
+                warning ("%s: %s".printf (name, error.message));
         }
 
         if (pixbuf == null)
diff --git a/src/spice-display.vala b/src/spice-display.vala
index 1f9f04b..4a5ba1f 100644
--- a/src/spice-display.vala
+++ b/src/spice-display.vala
@@ -38,8 +38,9 @@ private class Boxes.SpiceDisplay: Boxes.Display {
                 if (channel is Spice.DisplayChannel) {
                     var display = channel as DisplayChannel;
 
+                    // FIXME: should show only when mark received? not reliable yet:
                     show (display.channel_id);
-                    display.display_mark.connect ((mark) => { show (display.channel_id); });
+                    // display.display_mark.connect ((mark) => { show (display.channel_id); });
                 }
             });
         }



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