aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-07-01 20:48:47 +0200
committerAngelo Naselli <anaselli@linux.it>2014-07-01 20:48:47 +0200
commit05c927a8ef9652291df6e219f130da50cb0eab39 (patch)
treeea84c8b4cb883f8f599b65319369e9279d6ac1a0
parent03ec82ad49939fb91a30f97c378dbbbe9d589b4e (diff)
downloadmanatools-05c927a8ef9652291df6e219f130da50cb0eab39.tar
manatools-05c927a8ef9652291df6e219f130da50cb0eab39.tar.gz
manatools-05c927a8ef9652291df6e219f130da50cb0eab39.tar.bz2
manatools-05c927a8ef9652291df6e219f130da50cb0eab39.tar.xz
manatools-05c927a8ef9652291df6e219f130da50cb0eab39.zip
Fixed menu items order
-rw-r--r--lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm26
1 files changed, 11 insertions, 15 deletions
diff --git a/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm b/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm
index f5181eaf..f809b0af 100644
--- a/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm
+++ b/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm
@@ -1017,11 +1017,10 @@ sub mainwindow() {
custom => new yui::YMenuItem(N("Add a custom medium")),
quit => new yui::YMenuItem(N("&Close")),
);
- while ( my ($key, $value) = each(%fileMenu) ) {
- if ($key ne 'widget' ) {
- $fileMenu{ widget }->addItem($value);
- }
- }
+ $fileMenu{ widget }->addItem($fileMenu{ update });
+ $fileMenu{ widget }->addItem($fileMenu{ add_media });
+ $fileMenu{ widget }->addItem($fileMenu{ custom });
+ $fileMenu{ widget }->addItem($fileMenu{ quit });
$fileMenu{ widget }->rebuildMenuTree();
@@ -1032,11 +1031,10 @@ sub mainwindow() {
parallel => new yui::YMenuItem(N("Parallel")),
proxy => new yui::YMenuItem(N("Proxy")),
);
- while ( my ($key, $value) = each(%optionsMenu) ) {
- if ($key ne 'widget' ) {
- $optionsMenu{ widget }->addItem($value);
- }
- }
+ $optionsMenu{ widget }->addItem($optionsMenu{ global });
+ $optionsMenu{ widget }->addItem($optionsMenu{ man_keys });
+ $optionsMenu{ widget }->addItem($optionsMenu{ parallel });
+ $optionsMenu{ widget }->addItem($optionsMenu{ proxy });
$optionsMenu{ widget }->rebuildMenuTree();
@@ -1046,11 +1044,9 @@ sub mainwindow() {
report_bug => new yui::YMenuItem(N("Report Bug")),
about => new yui::YMenuItem(N("&About")),
);
- while ( my ($key, $value) = each(%helpMenu) ) {
- if ($key ne 'widget' ) {
- $helpMenu{ widget }->addItem($value);
- }
- }
+ $helpMenu{ widget }->addItem($helpMenu{ help });
+ $helpMenu{ widget }->addItem($helpMenu{ report_bug });
+ $helpMenu{ widget }->addItem($helpMenu{ about });
$helpMenu{ widget }->rebuildMenuTree();
my $hbox_content = $factory->createHBox($vbox);