summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-13 09:07:52 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-13 09:07:52 +0000
commit4e0d710e02dde931a07320382c86135ee149f2d2 (patch)
tree553e7875d983c30ccb64a3e55f6bd495ee104e61 /perl-install
parent41783e824a4b590f29331fd6b7e7dac3c5ccce77 (diff)
downloaddrakx-4e0d710e02dde931a07320382c86135ee149f2d2.tar
drakx-4e0d710e02dde931a07320382c86135ee149f2d2.tar.gz
drakx-4e0d710e02dde931a07320382c86135ee149f2d2.tar.bz2
drakx-4e0d710e02dde931a07320382c86135ee149f2d2.tar.xz
drakx-4e0d710e02dde931a07320382c86135ee149f2d2.zip
(filesystems_button_box) simplify using mygtk2 (needed for next commit)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/diskdrake/hd_gtk.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm
index d0f045721..0937329d5 100644
--- a/perl-install/diskdrake/hd_gtk.pm
+++ b/perl-install/diskdrake/hd_gtk.pm
@@ -356,11 +356,11 @@ sub filesystems_button_box() {
gtkpack(Gtk2::HBox->new(0,0),
N("Filesystem types:"),
- map { my $w = Gtk2::Button->new(translate($_));
+ map {
my $t = $name2fs_type{$_};
- $w->signal_connect(clicked => sub { try_('', \&createOrChangeType, $t, current_hd(), current_part()) });
+ my $w = gtknew('Button', text => translate($_), widget_name => 'PART_' . ($t || 'empty'),
+ clicked => sub { try_('', \&createOrChangeType, $t, current_hd(), current_part()) });
$w->can_focus(0);
- $w->set_name('PART_' . ($t || 'empty'));
$w;
} @types);
}