[gnome-usage] window: Reduce the hardcoded minimum size



commit 49cee54cc9eb9e23df1fa3bfa0f5c91eda56d62d
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Sep 10 13:51:56 2019 +0200

    window: Reduce the hardcoded minimum size
    
    This reduces the hardcoded minimum size to ensure it can fit phone
    screens, moving the size request to the window's child to avoid having
    to take shadows into account.

 src/window.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/window.vala b/src/window.vala
index a5b9ac0..acfc5a0 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -37,7 +37,6 @@ namespace Usage
             GLib.Object(application : application);
 
             this.set_default_size(950, 600);
-            this.set_size_request(930, 300);
             this.window_position = Gtk.WindowPosition.CENTER;
             this.set_title(_("Usage"));
 
@@ -52,6 +51,7 @@ namespace Usage
             });
 
                        var stack = new Gtk.Stack();
+            stack.set_size_request(360, 200);
             stack.visible = true;
             stack.vexpand = true;
                        header_bar = new Usage.HeaderBar(stack);


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