diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-03-04 12:08:06 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-03-04 12:08:06 +0000 |
commit | f4d26144ed2547bff2011d37552bf86917ba0262 (patch) | |
tree | dc7ab89156761bf5617dbd1b10a6b6b5a3e8fd57 /perl-install/diskdrake/hd_gtk.pm | |
parent | 14976749451f79042bce6a24e8d1c844ae2a21a8 (diff) | |
download | drakx-f4d26144ed2547bff2011d37552bf86917ba0262.tar drakx-f4d26144ed2547bff2011d37552bf86917ba0262.tar.gz drakx-f4d26144ed2547bff2011d37552bf86917ba0262.tar.bz2 drakx-f4d26144ed2547bff2011d37552bf86917ba0262.tar.xz drakx-f4d26144ed2547bff2011d37552bf86917ba0262.zip |
- in focus_in_event for partition buttons, grab_focus is needed because gtk2 is buggy. Forcing an expose event would be enough
- in button_press_event for partition buttons, grab_focus is needed because gtk2 is buggy. The creation of widgets causes the lost of the focus
(fixes part of #2621)
Diffstat (limited to 'perl-install/diskdrake/hd_gtk.pm')
-rw-r--r-- | perl-install/diskdrake/hd_gtk.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm index cce017e50..6348b3f02 100644 --- a/perl-install/diskdrake/hd_gtk.pm +++ b/perl-install/diskdrake/hd_gtk.pm @@ -273,8 +273,8 @@ sub create_buttons4partitions { foreach my $entry (@parts) { my $w = Gtk2::Button->new($entry->{mntpoint} || '') or die ''; - $w->signal_connect(focus_in_event => sub { current_entry_changed($kind, $entry) }); - $w->signal_connect(button_press_event => sub { current_entry_changed($kind, $entry) }); + $w->signal_connect(focus_in_event => sub { current_entry_changed($kind, $entry); $w->grab_focus }); #- grab_focus is needed because gtk2 is buggy. Forcing an expose event would be enough + $w->signal_connect(button_press_event => sub { current_entry_changed($kind, $entry); $w->grab_focus }); #- grab_focus is needed because gtk2 is buggy. The creation of widgets causes the lost of the focus $w->signal_connect(key_press_event => sub { my (undef, $event) = @_; member('control-mask', @{$event->state}) or return; |