[gnome-boxes] properties: Use a GtkScrolledWindow for the pages



commit 3c9ff8c1238011a452144d7a358cccd73bab7bee
Author: Timm Bäder <mail baedert org>
Date:   Wed Jul 30 12:34:47 2014 +0200

    properties: Use a GtkScrolledWindow for the pages
    
    This is needed for property pages that contain either very high widgets
    or a dynamic number of widgets, e.g. the coming snapshots page.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710306

 src/properties.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/properties.vala b/src/properties.vala
index 103993f..173febd 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -71,7 +71,9 @@ private class Boxes.Properties: Gtk.Stack, Boxes.UI {
             grid.row_spacing = 10;
             grid.column_spacing = 20;
             grid.valign = Gtk.Align.START;
-            pack_end (grid, true, true);
+            var scrolled_win = new Gtk.ScrolledWindow (null, null);
+            scrolled_win.add (grid);
+            pack_end (scrolled_win, true, true);
 
             PropertyCreationFlag flags = PropertyCreationFlag.NONE;
             properties = machine.get_properties (page, ref flags);


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