From f98fd8c137e97c3bb52159f0e55a9fe0fbf7450f Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Mon, 4 Jan 2016 19:11:40 +0100 Subject: Also for categories --- MANIFEST | 5 +++++ lib/ManaTools/MainDisplay.pm | 8 +++++++- share/images/mpan/applications_section.png | Bin 0 -> 1926 bytes share/images/mpan/boot_init_section.png | Bin 0 -> 1849 bytes share/images/mpan/networking_section.png | Bin 0 -> 2696 bytes share/images/mpan/security_section.png | Bin 0 -> 1688 bytes 6 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 share/images/mpan/applications_section.png create mode 100644 share/images/mpan/boot_init_section.png create mode 100644 share/images/mpan/networking_section.png create mode 100644 share/images/mpan/security_section.png diff --git a/MANIFEST b/MANIFEST index 7c560473..952d6b6c 100644 --- a/MANIFEST +++ b/MANIFEST @@ -185,6 +185,11 @@ share/images/manauser/user_conf.png share/images/manauser/user_del.png share/images/manawall.png share/images/mpan.png +share/images/mpan/applications_section.png +share/images/mpan/boot_init_section.png +share/images/mpan/networking_section.png +share/images/mpan/security_section.png +share/images/mpan/system_section.png share/images/quit.png share/images/rpmdragora/bugfix-update.png share/images/rpmdragora/clear_22x22.png diff --git a/lib/ManaTools/MainDisplay.pm b/lib/ManaTools/MainDisplay.pm index 59915b69..bf4261c3 100644 --- a/lib/ManaTools/MainDisplay.pm +++ b/lib/ManaTools/MainDisplay.pm @@ -807,11 +807,17 @@ sub _loadCategories { 'title' ); $self->logger()->D($self->loc()->N("Load categories: title content is <<%s>>", $title)); + my $icon = $tmp->{icon}; + if ((substr( $icon, 0, 1) ne '/')) { + # icon with relative path? + $icon = File::ShareDir::dist_file(ManaTools::Shared::distName(), $tmp->{icon}); + } + $tmpCat = $self->_getCategory($title); if (!$tmpCat) { $tmpCat = new ManaTools::Category({ name => $title, - icon => $tmp->{icon} + icon => $icon, }); } $self->_loadCategory($tmpCat); diff --git a/share/images/mpan/applications_section.png b/share/images/mpan/applications_section.png new file mode 100644 index 00000000..6f60235d Binary files /dev/null and b/share/images/mpan/applications_section.png differ diff --git a/share/images/mpan/boot_init_section.png b/share/images/mpan/boot_init_section.png new file mode 100644 index 00000000..a59cf9b4 Binary files /dev/null and b/share/images/mpan/boot_init_section.png differ diff --git a/share/images/mpan/networking_section.png b/share/images/mpan/networking_section.png new file mode 100644 index 00000000..df45e7cb Binary files /dev/null and b/share/images/mpan/networking_section.png differ diff --git a/share/images/mpan/security_section.png b/share/images/mpan/security_section.png new file mode 100644 index 00000000..604a2790 Binary files /dev/null and b/share/images/mpan/security_section.png differ -- cgit v1.2.1