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 <[email protected]>
---
 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


_______________________________________________
pve-devel mailing list
[email protected]
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to