summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-11-19 13:30:05 +0000
committerThierry Vignaud <tv@mandriva.org>2008-11-19 13:30:05 +0000
commit5fc2935b124bf10f47a8b2123cdffb110041a4c1 (patch)
tree1546cc1170bfdbfdc5333725440fba8131110e3d
parent771e9e4441e7ae3243f80f3f58d02ca2a46d78cd (diff)
downloadmgaonline-5fc2935b124bf10f47a8b2123cdffb110041a4c1.tar
mgaonline-5fc2935b124bf10f47a8b2123cdffb110041a4c1.tar.gz
mgaonline-5fc2935b124bf10f47a8b2123cdffb110041a4c1.tar.bz2
mgaonline-5fc2935b124bf10f47a8b2123cdffb110041a4c1.tar.xz
mgaonline-5fc2935b124bf10f47a8b2123cdffb110041a4c1.zip
(setState) store local variable (needed for next commit)
-rwxr-xr-xmdkapplet3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index 3f541bf4..9e27718e 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -633,7 +633,8 @@ sub setState {
my $menu = Gtk2::Menu->new;
foreach (@arr) {
- $menu->append(gtksignal_connect(gtkshow(Gtk2::MenuItem->new_with_label($actions{$_}{name})), activate => $actions{$_}{launch}));
+ my $action = $actions{$_};
+ $menu->append(gtksignal_connect(gtkshow(Gtk2::MenuItem->new_with_label($action->{name})), activate => $action->{launch}));
}
$menu->append(gtkshow(Gtk2::SeparatorMenuItem->new));
$menu->append(gtksignal_connect(gtkshow(Gtk2::MenuItem->new_with_label(N("About..."))), activate => sub {