summaryrefslogtreecommitdiffstats
path: root/lib/network/connection
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-19 23:19:39 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-19 23:19:39 +0000
commit8a427e6a327c5accfb420a37ee3ec193970a3a08 (patch)
tree98371e6c34953f01c1f8c23be53dc837484e5db7 /lib/network/connection
parent1509e8e3e674274abc8ae32185b14088642b9839 (diff)
downloaddrakx-net-8a427e6a327c5accfb420a37ee3ec193970a3a08.tar
drakx-net-8a427e6a327c5accfb420a37ee3ec193970a3a08.tar.gz
drakx-net-8a427e6a327c5accfb420a37ee3ec193970a3a08.tar.bz2
drakx-net-8a427e6a327c5accfb420a37ee3ec193970a3a08.tar.xz
drakx-net-8a427e6a327c5accfb420a37ee3ec193970a3a08.zip
do not hardcode icon size in get_type_icon implementation, make it optional
Diffstat (limited to 'lib/network/connection')
-rw-r--r--lib/network/connection/cable.pm2
-rw-r--r--lib/network/connection/cellular_bluetooth.pm2
-rw-r--r--lib/network/connection/cellular_card.pm2
-rw-r--r--lib/network/connection/dvb.pm2
-rw-r--r--lib/network/connection/ethernet.pm2
-rw-r--r--lib/network/connection/isdn.pm2
-rw-r--r--lib/network/connection/pots.pm2
-rw-r--r--lib/network/connection/wireless.pm2
-rw-r--r--lib/network/connection/xdsl.pm2
9 files changed, 9 insertions, 9 deletions
diff --git a/lib/network/connection/cable.pm b/lib/network/connection/cable.pm
index 8d4fe07..15030a2 100644
--- a/lib/network/connection/cable.pm
+++ b/lib/network/connection/cable.pm
@@ -12,7 +12,7 @@ use detect_devices;
sub get_type_name() { N("Cable") }
sub get_type_description() { N("Cable modem") }
-sub get_type_icon() { 'cablemodem-24' }
+sub _get_type_icon() { 'cablemodem' }
sub get_metric { 20 }
sub handles_ifcfg {
diff --git a/lib/network/connection/cellular_bluetooth.pm b/lib/network/connection/cellular_bluetooth.pm
index 0b16ba1..cc75be7 100644
--- a/lib/network/connection/cellular_bluetooth.pm
+++ b/lib/network/connection/cellular_bluetooth.pm
@@ -9,7 +9,7 @@ my $rfcomm_dev_prefix = "/dev/rfcomm";
sub get_type_name { N("Bluetooth") }
sub get_type_description { N("Bluetooth Dial Up Networking") }
-sub get_type_icon { 'bluetooth-24' }
+sub _get_type_icon { 'bluetooth' }
sub get_devices { search_services('DUN') }
sub get_metric { 45 }
sub get_interface { "ppp0" }
diff --git a/lib/network/connection/cellular_card.pm b/lib/network/connection/cellular_card.pm
index 6ed31b6..c2ad0d4 100644
--- a/lib/network/connection/cellular_card.pm
+++ b/lib/network/connection/cellular_card.pm
@@ -6,7 +6,7 @@ use strict;
use common;
sub get_type_name() { N("GPRS/Edge/3G") }
-sub get_type_icon() { 'cellular-24' }
+sub _get_type_icon() { 'cellular' }
sub get_devices() {
require detect_devices;
my @maybe_usbserial_modules = ('usbserial_generic', 'unknown');
diff --git a/lib/network/connection/dvb.pm b/lib/network/connection/dvb.pm
index ec085b3..48c9832 100644
--- a/lib/network/connection/dvb.pm
+++ b/lib/network/connection/dvb.pm
@@ -11,7 +11,7 @@ use modules;
sub get_type_name() { N("DVB") }
sub get_type_description() { N("Satellite (DVB)") }
-sub get_type_icon() { 'dvb-24' }
+sub _get_type_icon() { 'dvb' }
sub get_devices() {
require detect_devices;
diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm
index cccaa32..7b7cfc4 100644
--- a/lib/network/connection/ethernet.pm
+++ b/lib/network/connection/ethernet.pm
@@ -8,7 +8,7 @@ use common;
our @dhcp_clients = qw(dhclient dhcpcd pump dhcpxd);
sub get_type_name() { N("Ethernet") }
-sub get_type_icon() { 'ethernet-24' }
+sub _get_type_icon() { 'ethernet' }
sub get_devices() {
#require list_modules;
diff --git a/lib/network/connection/isdn.pm b/lib/network/connection/isdn.pm
index 84c2d10..e26d15c 100644
--- a/lib/network/connection/isdn.pm
+++ b/lib/network/connection/isdn.pm
@@ -6,7 +6,7 @@ use strict;
use common;
sub get_type_name { N("ISDN") }
-sub get_type_icon { 'isdn-24' }
+sub _get_type_icon { 'isdn' }
sub get_devices {
require modules;
diff --git a/lib/network/connection/pots.pm b/lib/network/connection/pots.pm
index 449d58d..0e5f233 100644
--- a/lib/network/connection/pots.pm
+++ b/lib/network/connection/pots.pm
@@ -15,7 +15,7 @@ sub get_type_description {
#-PO: for example, in French, it can be translated as "RTC"
N("Analog telephone modem (POTS)");
}
-sub get_type_icon { 'potsmodem-24' }
+sub _get_type_icon { 'potsmodem' }
sub get_metric { 50 }
sub handles_ifcfg {
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index 996aaa8..8b7d6ee 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -9,7 +9,7 @@ use strict;
use common;
sub get_type_name() { N("Wireless") }
-sub get_type_icon() { 'wireless-24' }
+sub _get_type_icon() { 'wireless' }
sub get_devices {
my ($_class, %options) = @_;
require detect_devices;
diff --git a/lib/network/connection/xdsl.pm b/lib/network/connection/xdsl.pm
index f9c1697..5cbfd50 100644
--- a/lib/network/connection/xdsl.pm
+++ b/lib/network/connection/xdsl.pm
@@ -6,7 +6,7 @@ use strict;
use common;
sub get_type_name() { N("DSL") }
-sub get_type_icon() { 'xdsl-24' }
+sub _get_type_icon() { 'xdsl' }
sub get_devices() {
require detect_devices;