diff options
Diffstat (limited to 'lib/network/connection.pm')
-rw-r--r-- | lib/network/connection.pm | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/network/connection.pm b/lib/network/connection.pm index cf3d14c..570935b 100644 --- a/lib/network/connection.pm +++ b/lib/network/connection.pm @@ -25,7 +25,12 @@ Get the connection type icon path =cut -sub get_type_icon() { '/usr/share/mcc/themes/default/drakconnect-mdk' } +sub get_type_icon { + my ($self, $o_size) = @_; + my $size = $o_size || 24; + my $icon = eval { $self->_get_type_icon . '-' . $size }; + $icon || '/usr/share/mcc/themes/default/drakconnect-mdk'; +} =item get_devices() @@ -248,4 +253,16 @@ sub get_status_message { }->{$status}; } +=head2 Pure virtual private instance methods + +=over + +=item _get_type_icon + +Get the icon prefix for the connection type + +=back + +=cut + 1; |