[gnome-characters/wip/cdavis/set-default-size: 2/2] window: Set a bigger default size




commit fbf11662a4f590bf1e1d6d384eef91cc5285eac7
Author: Christopher Davis <brainblasted disroot org>
Date:   Fri Feb 12 21:56:15 2021 -0800

    window: Set a bigger default size
    
    After the recent UI changes the previous default size was
    too small. Increase it here.

 data/mainwindow.ui | 2 ++
 src/window.js      | 4 +---
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/mainwindow.ui b/data/mainwindow.ui
index 8c976b4..8fac8b1 100644
--- a/data/mainwindow.ui
+++ b/data/mainwindow.ui
@@ -15,6 +15,8 @@
   </menu>
   <template class="Gjs_MainWindow" parent="HdyApplicationWindow">
     <property name="height-request">660</property>
+    <property name="default-width">800</property>
+    <property name="default-height">500</property>
     <child>
       <object class="HdyLeaflet" id="leaflet">
         <property name="visible">True</property>
diff --git a/src/window.js b/src/window.js
index de728e4..bcee339 100644
--- a/src/window.js
+++ b/src/window.js
@@ -51,9 +51,7 @@ var MainWindow = GObject.registerClass({
     },
 }, class MainWindow extends Handy.ApplicationWindow {
     _init(params) {
-        params = Params.fill(params, { title: GLib.get_application_name(),
-                                       default_width: 640,
-                                       default_height: 480 });
+        params = Params.fill(params, { title: GLib.get_application_name() });
         super._init(params);
 
         this._searchActive = false;


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