diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/diskdrake/hd_gtk.pm | 6 |
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); } |