aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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),