[gnome-boxes/wip/wizard-n-props-in-win: 8/19] properties: Specify min content size on ScrolledWindow
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/wizard-n-props-in-win: 8/19] properties: Specify min content size on ScrolledWindow
- Date: Tue, 25 Nov 2014 14:19:16 +0000 (UTC)
commit 59dbf781d102d579b8523fbc5ff3af3199428068
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Nov 23 19:55:31 2014 +0000
properties: Specify min content size on ScrolledWindow
We are about to move propertiew view into its own window thats made
transient over the main window. If minimum width and height are not set,
ScrolledWindow will hide most of the content once that change is in
place.
So in this patch, we set minimum width to be 640 and minimum height to
be 480. This should be harmless except for screens with extremely low
resolution, in which case I'm sure this won't be our biggest worry
anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=733367
src/properties.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/properties.vala b/src/properties.vala
index a7d170d..0990c5e 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -67,6 +67,8 @@ private class Boxes.Properties: Gtk.Stack, Boxes.UI {
grid.column_spacing = 20;
grid.valign = Gtk.Align.START;
var scrolled_win = new Gtk.ScrolledWindow (null, null);
+ scrolled_win.min_content_width = 640;
+ scrolled_win.min_content_height = 480;
scrolled_win.add (grid);
pack_end (scrolled_win, true, true);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]