diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-08-13 09:07:52 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-08-13 09:07:52 +0000 |
commit | 4e0d710e02dde931a07320382c86135ee149f2d2 (patch) | |
tree | 553e7875d983c30ccb64a3e55f6bd495ee104e61 /perl-install/diskdrake/hd_gtk.pm | |
parent | 41783e824a4b590f29331fd6b7e7dac3c5ccce77 (diff) | |
download | drakx-backup-do-not-use-4e0d710e02dde931a07320382c86135ee149f2d2.tar drakx-backup-do-not-use-4e0d710e02dde931a07320382c86135ee149f2d2.tar.gz drakx-backup-do-not-use-4e0d710e02dde931a07320382c86135ee149f2d2.tar.bz2 drakx-backup-do-not-use-4e0d710e02dde931a07320382c86135ee149f2d2.tar.xz drakx-backup-do-not-use-4e0d710e02dde931a07320382c86135ee149f2d2.zip |
(filesystems_button_box) simplify using mygtk2 (needed for next commit)
Diffstat (limited to 'perl-install/diskdrake/hd_gtk.pm')
-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); } |