[gnome-boxes] Accept vnc uri in wizard



commit 74241ddfe75d1dd20dcb4a9493a3c0934f7b9f52
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Mon Nov 21 01:53:24 2011 +0100

    Accept vnc uri in wizard

 src/collection-view.vala |    2 ++
 src/wizard.vala          |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/collection-view.vala b/src/collection-view.vala
index 22fda08..1729e70 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -230,6 +230,8 @@ private class Boxes.CollectionView: Boxes.UI {
         icon_view.add_attribute(text_renderer, "text", ModelColumns.TITLE);
 
         var scrolled_window = new Gtk.ScrolledWindow (null, null);
+// TODO: this should be set, but doesn't resize correctly the gtkactor..
+//        scrolled_window.hscrollbar_policy = Gtk.PolicyType.NEVER;
         scrolled_window.add (icon_view);
         scrolled_window.show_all ();
 
diff --git a/src/wizard.vala b/src/wizard.vala
index db45a2a..bc8370f 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -187,6 +187,8 @@ private class Boxes.Wizard: Boxes.UI {
 
             if (uri.port > 0)
                 throw new Boxes.Error.INVALID ("the Spice URI is invalid");
+        } else if (uri.scheme == "vnc") {
+            // accept any vnc:// uri
         } else
             throw new Boxes.Error.INVALID ("Unsupported protocol %s".printf (uri.scheme));
     }



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