From da1b605bec29304f1337f45c777929cd46313102 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 5 Mar 2008 00:08:14 +0000 Subject: use firewall icon from control center in non-install mode --- lib/network/drakfirewall.pm | 4 ++-- lib/network/shorewall.pm | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/network/drakfirewall.pm b/lib/network/drakfirewall.pm index 40b1155..537790c 100644 --- a/lib/network/drakfirewall.pm +++ b/lib/network/drakfirewall.pm @@ -188,7 +188,7 @@ sub choose_allowed_services { $in->ask_from_({ messages => N("Which services would you like to allow the Internet to connect to?"), title => N("Firewall"), - icon => 'banner-security', + icon => $network::shorewall::firewall_icon, banner_title => N("Firewall"), advanced_messages => N("You can enter miscellaneous ports. Valid examples are: 139/tcp 139/udp 600:610/tcp 600:610/udp. @@ -252,7 +252,7 @@ sub choose_watched_services { $_->{ifw} = 1 foreach @l; $in->ask_from_({ - icon => 'banner-security', + icon => $network::shorewall::firewall_icon, banner_title => N("Interactive Firewall"), messages => N("You can be warned when someone accesses to a service or tries to intrude into your computer. diff --git a/lib/network/shorewall.pm b/lib/network/shorewall.pm index d191808..ef3ba60 100644 --- a/lib/network/shorewall.pm +++ b/lib/network/shorewall.pm @@ -7,6 +7,7 @@ use common; use log; my $shorewall_root = "/etc/shorewall"; +our $firewall_icon = $::isInstall ? 'banner-security' : '/usr/share/mcc/themes/default/firewall-mdk.png'; sub check_iptables() { -f "$::prefix/etc/sysconfig/iptables" || @@ -60,7 +61,7 @@ sub get_zones { $net_zone{$_} = 1 foreach get_net_zone_interfaces($net, \@all_intf); $o_in and $o_in->ask_from_({ title => N("Firewall configuration"), - icon => 'banner-security', + icon => $firewall_icon, messages => N("Please select the interfaces that will be protected by the firewall. All interfaces directly connected to Internet should be selected, -- cgit v1.2.1