From: Stoiko Ivanov Date: Wed, 28 Nov 2018 11:40:57 +0000 (+0100) Subject: Reset adjustment for spinbutton_hdsize X-Git-Url: https://git.proxmox.com/?p=pve-installer.git;a=commitdiff_plain;h=6039e2f14cd6e484a26bf74238944fb550b8b8e7 Reset adjustment for spinbutton_hdsize After setting the input buffer for the spinbutton the default value wasn't displayed anymore, resulting in odd behaviour when clicking in the field w/o entering/changing a value. Setting the adjustment again, sets the default value as before Signed-off-by: Stoiko Ivanov --- diff --git a/proxinstall b/proxinstall index 97c5394..eee8208 100755 --- a/proxinstall +++ b/proxinstall @@ -2509,6 +2509,7 @@ my $get_hdsize_spinbtn = sub { my $spinbutton_hdsize = Gtk3::SpinButton->new($hdsize_size_adj, 1, 1); $spinbutton_hdsize->set_buffer($hdsize_entry_buffer); + $spinbutton_hdsize->set_adjustment($hdsize_size_adj); $spinbutton_hdsize->set_tooltip_text("only use specified size (GB) of the harddisk (rest left unpartitioned)"); return $spinbutton_hdsize; };