Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

Commit

Permalink
Fixed a window sizing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
teejee2008 committed Jun 24, 2018
1 parent 65a17f6 commit b260c8d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/Gtk/BackupWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class BackupWindow : Gtk.Window{
private Gtk.Button btn_close;

private uint tmr_init;
private int def_width = 450;
private int def_width = 500;
private int def_height = 500;
private bool success = false;

Expand All @@ -71,6 +71,8 @@ class BackupWindow : Gtk.Window{
vbox_main.margin = 12;
add(vbox_main);

this.resize(def_width, def_height);

// add notebook
notebook = add_notebook(vbox_main, false, false);

Expand Down
4 changes: 3 additions & 1 deletion src/Gtk/DeleteWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class DeleteWindow : Gtk.Window{
private Gtk.Button btn_close;

private uint tmr_init;
private int def_width = 450;
private int def_width = 500;
private int def_height = 500;
private bool success = false;

Expand All @@ -66,6 +66,8 @@ class DeleteWindow : Gtk.Window{
this.icon = IconManager.lookup("timeshift",16);

this.delete_event.connect(on_delete_event);

this.resize(def_width, def_height);

// vbox_main
vbox_main = new Gtk.Box(Orientation.VERTICAL, 6);
Expand Down
4 changes: 4 additions & 0 deletions src/Gtk/RestoreWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class RestoreWindow : Gtk.Window{
this.set_default_size (def_width, def_height);
this.icon = IconManager.lookup("timeshift",16);

this.resize(def_width, def_height);

this.delete_event.connect(on_delete_event);

// vbox_main
Expand Down Expand Up @@ -148,6 +150,8 @@ class RestoreWindow : Gtk.Window{
tmr_init = 0;
}

this.resize(def_width, def_height);

go_first();

return false;
Expand Down
6 changes: 5 additions & 1 deletion src/Gtk/SettingsWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class SettingsWindow : Gtk.Window{
vbox_main.set_size_request(def_width, def_height);
add(vbox_main);

this.resize(def_width, def_height);

var hbox = new Gtk.ButtonBox (Gtk.Orientation.HORIZONTAL);
hbox.set_layout (Gtk.ButtonBoxStyle.CENTER);
hbox.get_style_context().add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);
Expand Down Expand Up @@ -121,7 +123,9 @@ class SettingsWindow : Gtk.Window{

backend_box.refresh();
stack.set_visible_child_name("type");
//vbox_main.set_size_request(def_width, def_height);

this.resize(def_width, def_height);

//backup_dev_box.refresh(); //will be triggerred indirectly

return false;
Expand Down
4 changes: 4 additions & 0 deletions src/Gtk/SetupWizardWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ class SetupWizardWindow : Gtk.Window{
vbox_main.set_size_request(def_width, def_height);
add(vbox_main);

this.resize(def_width, def_height);

if (App.first_run && !schedule_accepted){
App.schedule_boot = false;
App.schedule_hourly = false;
Expand Down Expand Up @@ -138,6 +140,8 @@ class SetupWizardWindow : Gtk.Window{
tmr_init = 0;
}

this.resize(def_width, def_height);

go_first();

return false;
Expand Down

0 comments on commit b260c8d

Please sign in to comment.