File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 66 */
77
88public class Gala.Daemon.Window : Gtk .Window {
9+ public int width { get ; construct; }
10+ public int height { get ; construct; }
911 public Gtk . Box content { get ; construct; }
1012
1113 public Window (int width , int height ) {
12- Object (
13- default_width: width,
14- default_height: height
15- );
14+ Object (width: width, height: height);
1615 }
1716
1817 class construct {
@@ -34,7 +33,9 @@ public class Gala.Daemon.Window : Gtk.Window {
3433 title = " MODAL" ;
3534 child = content = new Gtk .Box (HORIZONTAL , 0 ) {
3635 hexpand = true ,
37- vexpand = true
36+ vexpand = true ,
37+ width_request = width,
38+ height_request = height
3839 };
3940
4041 set_visual (get_screen (). get_rgba_visual ());
Original file line number Diff line number Diff line change @@ -175,8 +175,8 @@ public class Gala.Daemon.DBus : GLib.Object {
175175 y / = scale_factor;
176176 }
177177
178- window. default_width = display_width;
179- window. default_height = display_height;
178+ window. child . width_request = display_width;
179+ window. child . height_request = display_height;
180180 window. present ();
181181
182182 Gdk . Rectangle rect = {
You can’t perform that action at this time.
0 commit comments