From 771861e22516a38b7e3ac15bc63ec2fba3a4c4ac Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sun, 10 Aug 2003 21:21:00 +0000 Subject: use Gtk2::Button->new_with_label instead of Gtk2::Button->new for some widgets otherwise underscores become underlines (bug #4678) --- perl-install/diskdrake/hd_gtk.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/diskdrake') diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm index eee2d269f..a2316a050 100644 --- a/perl-install/diskdrake/hd_gtk.pm +++ b/perl-install/diskdrake/hd_gtk.pm @@ -272,7 +272,7 @@ sub create_buttons4partitions { } foreach my $entry (@parts) { - my $w = Gtk2::Button->new($entry->{mntpoint} || '') or die ''; + my $w = Gtk2::Button->new_with_label($entry->{mntpoint} || '') or die ''; $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 { -- cgit v1.2.1