aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2016-01-04 19:11:40 +0100
committerAngelo Naselli <anaselli@linux.it>2016-01-04 19:11:40 +0100
commitf98fd8c137e97c3bb52159f0e55a9fe0fbf7450f (patch)
treeccbd282a1a449368984ec6ffb6b94cbc67ef3c68
parent96942e4ddfa330bb339d13d0ac2c0a8941db168a (diff)
downloadmanatools-f98fd8c137e97c3bb52159f0e55a9fe0fbf7450f.tar
manatools-f98fd8c137e97c3bb52159f0e55a9fe0fbf7450f.tar.gz
manatools-f98fd8c137e97c3bb52159f0e55a9fe0fbf7450f.tar.bz2
manatools-f98fd8c137e97c3bb52159f0e55a9fe0fbf7450f.tar.xz
manatools-f98fd8c137e97c3bb52159f0e55a9fe0fbf7450f.zip
Also for categories
-rw-r--r--MANIFEST5
-rw-r--r--lib/ManaTools/MainDisplay.pm8
-rw-r--r--share/images/mpan/applications_section.pngbin0 -> 1926 bytes
-rw-r--r--share/images/mpan/boot_init_section.pngbin0 -> 1849 bytes
-rw-r--r--share/images/mpan/networking_section.pngbin0 -> 2696 bytes
-rw-r--r--share/images/mpan/security_section.pngbin0 -> 1688 bytes
6 files changed, 12 insertions, 1 deletions
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
--- /dev/null
+++ b/share/images/mpan/applications_section.png
Binary files 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
--- /dev/null
+++ b/share/images/mpan/boot_init_section.png
Binary files differ
diff --git a/share/images/mpan/networking_section.png b/share/images/mpan/networking_section.png
new file mode 100644
index 00000000..df45e7cb
--- /dev/null
+++ b/share/images/mpan/networking_section.png
Binary files differ
diff --git a/share/images/mpan/security_section.png b/share/images/mpan/security_section.png
new file mode 100644
index 00000000..604a2790
--- /dev/null
+++ b/share/images/mpan/security_section.png
Binary files differ