summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-08-10 21:21:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-08-10 21:21:00 +0000
commit771861e22516a38b7e3ac15bc63ec2fba3a4c4ac (patch)
tree61366260bbe2d2a0897b21425e73ba83dc425955 /perl-install
parent7876c5560d45793df3d5791d4c8b56c8281d662c (diff)
downloaddrakx-771861e22516a38b7e3ac15bc63ec2fba3a4c4ac.tar
drakx-771861e22516a38b7e3ac15bc63ec2fba3a4c4ac.tar.gz
drakx-771861e22516a38b7e3ac15bc63ec2fba3a4c4ac.tar.bz2
drakx-771861e22516a38b7e3ac15bc63ec2fba3a4c4ac.tar.xz
drakx-771861e22516a38b7e3ac15bc63ec2fba3a4c4ac.zip
use Gtk2::Button->new_with_label instead of Gtk2::Button->new for some widgets otherwise underscores become underlines (bug #4678)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/diskdrake/hd_gtk.pm2
-rw-r--r--perl-install/interactive/gtk.pm2
2 files changed, 2 insertions, 2 deletions
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 {
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index fb71a595f..31d828c9c 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -420,7 +420,7 @@ sub ask_fromW {
$set = sub { $w->set($_[0]) };
$width = length ${$e->{val}};
} elsif ($e->{type} eq 'button') {
- $w = Gtk2::Button->new('');
+ $w = Gtk2::Button->new_with_label('');
$w->signal_connect(clicked => sub {
$get_all->();
$mainw->{rwindow}->hide;