[geary: 1/2] preferences: Set default_width to omit back button




commit e6b5beb46be572fbaa65309500d050f3131f59a3
Author: Diego Escalante Urrelo <diegoe gnome org>
Date:   Fri Jul 3 14:22:47 2020 -0500

    preferences: Set default_width to omit back button
    
    The sizing of the preferences window depends on the button labels and
    tends to be too narrow which makes the "back" button of
    `HdyPreferencesWindow` to be shown. It's a bit weird to see this on the
    desktop when there's plenty of space available.
    
    This is shown by `HdyHeaderBar` when it considers a window to be
    "mobile" which happens when its width is less than MOBILE_WINDOW_WIDTH
    (400) or it's height less than MOBILE_WINDOW_HEIGHT (800) (see
    `libhandy/src/hdy-header-bar.c`).

 src/client/components/components-preferences-window.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/client/components/components-preferences-window.vala 
b/src/client/components/components-preferences-window.vala
index 17119f52c..75c5b4b32 100644
--- a/src/client/components/components-preferences-window.vala
+++ b/src/client/components/components-preferences-window.vala
@@ -35,6 +35,7 @@ public class Components.PreferencesWindow : Hdy.PreferencesWindow {
                              Application.PluginManager plugins) {
         Object(
             application: parent.application,
+            default_width: 450,
             transient_for: parent
         );
         this.plugins = plugins;


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