From 928adea961a539a4d637bb283614f975434fab3b Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sun, 18 Oct 2009 18:44:36 +0000 Subject: partitioning_wizard: allow setting new windows size with keyboard (#54691) --- perl-install/NEWS | 1 + perl-install/fs/partitioning_wizard.pm | 15 ++++++++++++++- perl-install/install/NEWS | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/NEWS b/perl-install/NEWS index 32a913161..a00423513 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -5,6 +5,7 @@ o add legend for the colors o display mount point if known o display ext2 like ext3/4 + o allow setting new windows size with keyboard (#54691) Version 12.66 - 15 October 2009 diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm index 99c04acc5..76ff56257 100644 --- a/perl-install/fs/partitioning_wizard.pm +++ b/perl-install/fs/partitioning_wizard.pm @@ -364,12 +364,25 @@ sub create_display_box { $hpane->signal_connect('motion-notify-event' => sub { $part->{req_size} = int($hpane->get_position * $part->{size} / $part->{width}); $update_size_labels->($part->{req_size}, $part->{size}-$part->{req_size}); - 1; + 0; + }); + $hpane->signal_connect('move-handle' => sub { + $part->{req_size} = int($hpane->get_position * $part->{size} / $part->{width}); + $update_size_labels->($part->{req_size}, $part->{size}-$part->{req_size}); + 0; }); $hpane->signal_connect('button-press-event' => sub { $button->activate; 0; }); + $vbox->signal_connect('button-press-event' => sub { + $button->activate; + 0; + }); + $button->signal_connect('focus-in-event' => sub { + $hpane->grab_focus; + 0; + }); } else { if ($fill_empty && isEmpty($entry)) { $w->set_text("Mandriva"); diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 2011bef33..c56791ca8 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -3,6 +3,7 @@ o add legend for the colors o display mount point if known o display ext2 like ext3/4 + o allow setting new windows size with keyboard (#54691) Version 12.66 - 15 October 2009 -- cgit v1.2.1