summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-14 16:06:03 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-14 16:06:03 +0000
commitd6c8bc1ffcff304708bb00271c125d45f2c97be5 (patch)
treed5a4c5fa900f766a84bac9273244ceed5471e74b
parentd7a803fa596ce042a8f75841e78207023333aa68 (diff)
downloaddrakx-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
-rwxr-xr-xbin/net_applet25
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);
+ },
+ } ],
});
}