[pve-devel] [PATCH installer 2/2] Reset adjustment for spinbutton_hdsize

Stoiko Ivanov s.ivanov at proxmox.com
Wed Nov 28 12:40:57 CET 2018


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 <s.ivanov at proxmox.com>
---
 proxinstall | 1 +
 1 file changed, 1 insertion(+)

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;
 };
-- 
2.11.0





More information about the pve-devel mailing list