diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-14 16:06:03 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-14 16:06:03 +0000 |
commit | d6c8bc1ffcff304708bb00271c125d45f2c97be5 (patch) | |
tree | d5a4c5fa900f766a84bac9273244ceed5471e74b /bin/net_applet | |
parent | d7a803fa596ce042a8f75841e78207023333aa68 (diff) | |
download | drakx-net-d6c8bc1ffcff304708bb00271c125d45f2c97be5.tar drakx-net-d6c8bc1ffcff304708bb00271c125d45f2c97be5.tar.gz drakx-net-d6c8bc1ffcff304708bb00271c125d45f2c97be5.tar.bz2 drakx-net-d6c8bc1ffcff304708bb00271c125d45f2c97be5.tar.xz drakx-net-d6c8bc1ffcff304708bb00271c125d45f2c97be5.zip |
adapt to new notification queue API
Diffstat (limited to 'bin/net_applet')
-rwxr-xr-x | bin/net_applet | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/bin/net_applet b/bin/net_applet index a0b03c8..6f5199f 100755 --- a/bin/net_applet +++ b/bin/net_applet @@ -545,15 +545,14 @@ sub handle_ifw_message { timeout => sub { set_verdict($message, \&apply_verdict_ignore); }, - clicked => sub { - if ($is_attack) { + if_($is_attack, actions => [ { + action => 'clicked', + label => N("Process attack"), + callback => sub { disable_ifw_alert(); ask_attack_verdict($message); - } else { - set_verdict($message, \&apply_verdict_ignore); - $bubble_queue->process_next; - } - }, + }, + } ]), }); } @@ -636,10 +635,14 @@ sub handle_ifw_listen { title => N("Interactive Firewall: new service"), pixbuf => $pixbufs{firewall}, message => $listen->{message}, - clicked => sub { - disable_ifw_alert(); - ask_listen_verdict($listen); - }, + actions => [ { + action => 'clicked', + label => N("Process connection"), + callback => sub { + disable_ifw_alert(); + ask_listen_verdict($listen); + }, + } ], }); } |