summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-03 16:56:48 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-03 16:56:48 +0000
commit55d87f3facca9f738a65a16c81c756285ed58865 (patch)
tree44e5f3b9ab457cc40c683952a9514c451ad3229c /mdkapplet
parent151c651b65783b06e68578a5b0528748aa8eac05 (diff)
downloadmgaonline-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)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index b6f5e1c7..a46a123b 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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));