From d6c8bc1ffcff304708bb00271c125d45f2c97be5 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 14 Mar 2008 16:06:03 +0000 Subject: adapt to new notification queue API --- bin/net_applet | 25 ++++++++++++++----------- 1 file 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); + }, + } ], }); } -- cgit v1.2.1