aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-16 14:40:36 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-16 14:40:36 +0000
commit457d47aed897d86887bedb8d9aea4cd85e47b660 (patch)
tree9579845935aec65f2ac784505048a627655280d4
parentd209c96900399180c1b52b53c87eb292d08eee3d (diff)
downloadrpmdrake-457d47aed897d86887bedb8d9aea4cd85e47b660.tar
rpmdrake-457d47aed897d86887bedb8d9aea4cd85e47b660.tar.gz
rpmdrake-457d47aed897d86887bedb8d9aea4cd85e47b660.tar.bz2
rpmdrake-457d47aed897d86887bedb8d9aea4cd85e47b660.tar.xz
rpmdrake-457d47aed897d86887bedb8d9aea4cd85e47b660.zip
help perl_checker understand perl code (gave syntax error)
-rwxr-xr-xrpmdrake12
1 files changed, 4 insertions, 8 deletions
diff --git a/rpmdrake b/rpmdrake
index 19b020f0..51383d23 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -881,16 +881,12 @@ Is it ok to continue?", to_utf8($urpm->translate_why_removed($urpm->{state}, @{$
0, 1, 1, 2, 'fill', 'fill', 0, 0);
$table->attach(create_scrolled_window($info),
1, 2, 1, 2, ['expand', 'fill'], ['expand', 'fill'], 0, 0);
+ my %mode2title = (remove => N("Software Packages Removal"),
+ update => N("Mandrake Update"),
+ install => N("Software Packages Installation"));
gtkadd($w->{window},
gtkpack_(Gtk2::VBox->new(0, 3),
- if_(!$::isEmbedded,
- 0, Gtk2::Banner->new("title-$MODE",
- { remove => N("Software Packages Removal"),
- update => N("Mandrake Update"),
- install => N("Software Packages Installation"),
- }->{$MODE}
- ),
- ),
+ if_(!$::isEmbedded, 0, Gtk2::Banner->new("title-$MODE", $mode2title{$MODE})),
1, gtkadd(gtkset_shadow_type(gtkset_border_width(Gtk2::Frame->new, 3), 'none'),
gtkpack_(Gtk2::VBox->new(0, 3),
0, gtkpack__(Gtk2::HBox->new(0, 10),