Skip to content
This repository has been archived by the owner on Feb 3, 2019. It is now read-only.

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenpowered committed Mar 7, 2019
1 parent 9f4ae21 commit fd0e9f9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Gtk/SettingsDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -240,22 +240,21 @@ public class SettingsDialog : Gtk.Dialog {
label.margin_bottom = 6;
vbox_main.add (label);

var hbox = new Gtk.Box(Orientation.HORIZONTAL, 6);
hbox = new Gtk.Box(Orientation.HORIZONTAL, 6);
vbox_main.add (hbox);

label = new Label(_("Internect connection timeout in "));
label.xalign = (float) 0.0;
label.margin_left = 6;
hbox.add (label);

var adjustment = new Gtk.Adjustment(App.connection_timeout_seconds, 1, 20, 1, 1, 0);
var spin = new Gtk.SpinButton (adjustment, 1, 0);
adjustment = new Gtk.Adjustment(App.connection_timeout_seconds, 1, 20, 1, 1, 0);
spin = new Gtk.SpinButton (adjustment, 1, 0);
spin.xalign = (float) 0.5;
hbox.add(spin);
var spin_notify = spin;

spin.changed.connect(()=>{
App.connection_timeout_seconds = (int) spin_notify.get_value();
App.connection_timeout_seconds = (int) spin.get_value();
});

// combo
Expand Down

0 comments on commit fd0e9f9

Please sign in to comment.