diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-11-19 13:30:05 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-11-19 13:30:05 +0000 |
commit | 5fc2935b124bf10f47a8b2123cdffb110041a4c1 (patch) | |
tree | 1546cc1170bfdbfdc5333725440fba8131110e3d | |
parent | 771e9e4441e7ae3243f80f3f58d02ca2a46d78cd (diff) | |
download | mgaonline-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-x | mdkapplet | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 { |