[gnome-boxes] properties: Don't allow horizontal scrolling
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] properties: Don't allow horizontal scrolling
- Date: Tue, 25 Nov 2014 15:54:07 +0000 (UTC)
commit b1cf71306d03128cfc7ee5d8fe1cf9468b705f40
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Nov 25 15:38:08 2014 +0000
properties: Don't allow horizontal scrolling
Instead of setting a minimum content width on scrolled window, simply
disable horizontal scrolling so width of properties window is dependent
on the width of the content of the scrolled window.
src/properties.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/properties.vala b/src/properties.vala
index 0d79589..3d15910 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -57,8 +57,8 @@ private class Boxes.Properties: Gtk.Notebook, 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.set_policy (Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
scrolled_win.add (grid);
pack_end (scrolled_win, true, true);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]