diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-11-19 13:30:51 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-11-19 13:30:51 +0000 |
commit | e4c73bb51ac482a9cfe89b1eb29cc78c51db85e9 (patch) | |
tree | f780be5678b5e11ff30ccdd57ffdcbc9738f5013 /mdkapplet | |
parent | 5fc2935b124bf10f47a8b2123cdffb110041a4c1 (diff) | |
download | mgaonline-e4c73bb51ac482a9cfe89b1eb29cc78c51db85e9.tar mgaonline-e4c73bb51ac482a9cfe89b1eb29cc78c51db85e9.tar.gz mgaonline-e4c73bb51ac482a9cfe89b1eb29cc78c51db85e9.tar.bz2 mgaonline-e4c73bb51ac482a9cfe89b1eb29cc78c51db85e9.tar.xz mgaonline-e4c73bb51ac482a9cfe89b1eb29cc78c51db85e9.zip |
(setState) do not add menu items w/o a valid callback (preventing crashes)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -634,6 +634,7 @@ sub setState { my $menu = Gtk2::Menu->new; foreach (@arr) { my $action = $actions{$_}; + next if !ref($action->{launch}); $menu->append(gtksignal_connect(gtkshow(Gtk2::MenuItem->new_with_label($action->{name})), activate => $action->{launch})); } $menu->append(gtkshow(Gtk2::SeparatorMenuItem->new)); |