From ac5fae049f7a67e99f2af460b70d3af54c74388b Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Wed, 30 Dec 2015 14:48:52 +0100 Subject: fixed icons --- lib/ManaTools/Module/Hosts.pm | 3 ++- lib/ManaTools/Module/LogViewer.pm | 3 ++- lib/ManaTools/Module/Proxy.pm | 3 ++- lib/ManaTools/Module/Services.pm | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) (limited to 'lib/ManaTools') diff --git a/lib/ManaTools/Module/Hosts.pm b/lib/ManaTools/Module/Hosts.pm index b2576c20..2fc61271 100644 --- a/lib/ManaTools/Module/Hosts.pm +++ b/lib/ManaTools/Module/Hosts.pm @@ -25,6 +25,7 @@ use autodie; use Moose; use POSIX qw(ceil); use utf8; +use File::ShareDir ':ALL'; use Glib; use yui; @@ -36,7 +37,7 @@ extends qw( ManaTools::Module ); has '+icon' => ( - default => "/usr/lib/libDrakX/icons/IC-Dhost-48.png" + default => File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manahost.png'), ); has '+name' => ( diff --git a/lib/ManaTools/Module/LogViewer.pm b/lib/ManaTools/Module/LogViewer.pm index 1c7dbe36..e456256c 100644 --- a/lib/ManaTools/Module/LogViewer.pm +++ b/lib/ManaTools/Module/LogViewer.pm @@ -52,6 +52,7 @@ use Moose; use diagnostics; use open OUT => ':utf8'; +use File::ShareDir ':ALL'; use ManaTools::Shared::GUI; use ManaTools::Shared::Locales; @@ -70,7 +71,7 @@ extends qw( ManaTools::Module ); ### TODO icon has '+icon' => ( - default => "/usr/share/mcc/themes/default/logdrake-mdk.png", + default => File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manalog.png'), ); has 'sh_gui' => ( diff --git a/lib/ManaTools/Module/Proxy.pm b/lib/ManaTools/Module/Proxy.pm index 8320f2bd..3c078ef4 100644 --- a/lib/ManaTools/Module/Proxy.pm +++ b/lib/ManaTools/Module/Proxy.pm @@ -26,6 +26,7 @@ use Moose; use POSIX qw(ceil); use English; use utf8; +use File::ShareDir ':ALL'; use yui; use ManaTools::Shared qw(trim); @@ -41,7 +42,7 @@ extends qw( ManaTools::Module ); has '+icon' => ( - default => "/usr/share/mcc/themes/default/drakproxy-mdk.png" + default => File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manaproxy.png'), ); has '+name' => ( diff --git a/lib/ManaTools/Module/Services.pm b/lib/ManaTools/Module/Services.pm index 72e342a0..fc73587f 100644 --- a/lib/ManaTools/Module/Services.pm +++ b/lib/ManaTools/Module/Services.pm @@ -59,6 +59,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA use Moose; use English; use Time::HiRes qw(usleep); +use File::ShareDir ':ALL'; use MDK::Common::String qw(formatAlaTeX); use MDK::Common::DataStructure qw(member); @@ -74,7 +75,7 @@ use File::Basename; extends qw( ManaTools::Module ); has '+icon' => ( - default => "/usr/share/mcc/themes/default/service-mdk.png", + default => File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manaservice.png'), ); has '_services' => ( -- cgit v1.2.1