diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-03 16:56:48 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-03 16:56:48 +0000 |
commit | 55d87f3facca9f738a65a16c81c756285ed58865 (patch) | |
tree | 44e5f3b9ab457cc40c683952a9514c451ad3229c | |
parent | 151c651b65783b06e68578a5b0528748aa8eac05 (diff) | |
download | mgaonline-55d87f3facca9f738a65a16c81c756285ed58865.tar mgaonline-55d87f3facca9f738a65a16c81c756285ed58865.tar.gz mgaonline-55d87f3facca9f738a65a16c81c756285ed58865.tar.bz2 mgaonline-55d87f3facca9f738a65a16c81c756285ed58865.tar.xz mgaonline-55d87f3facca9f738a65a16c81c756285ed58865.zip |
(setState) dereference array earlier (needed for next commit)
-rwxr-xr-x | mdkapplet | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -574,7 +574,7 @@ sub setState { my ($state) = @_; my $checkme; state $previous_state; - my $arr = $state{$state}{menu}; + my @arr = @{$state{$state}{menu}}; my $tmp = gtkcreate_pixbuf($state{$state}{colour}[0]); $icon->set_from_pixbuf($tmp); $icon->set_tooltip(formatAlaTeX(translate($state{$state}{tt}[0]))); @@ -604,7 +604,7 @@ sub setState { } my $menu = Gtk2::Menu->new; - foreach (@$arr) { + foreach (@arr) { $menu->append(gtksignal_connect(gtkshow(Gtk2::MenuItem->new_with_label($actions{$_}{name})), activate => $actions{$_}{launch})); } $menu->append(gtkshow(Gtk2::SeparatorMenuItem->new)); |