Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37852525
en ru br
ALT Linux repos
S:3.4.2-alt1
5.0: 1.2.36-alt2.1
4.1: 1.2.35-alt2.1
4.0: 1.2.32-alt2.1
3.0: 1.2.23-alt1
+backports:1.2.30-alt1.M30.1

Group :: Graphical desktop/Icewm
RPM: icewm

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: icewm-alt-findicon.patch
Download


 icewm/src/yicon.cc | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
diff --git a/icewm/src/yicon.cc b/icewm/src/yicon.cc
index 85d1b47..fd219c8 100644
--- a/icewm/src/yicon.cc
+++ b/icewm/src/yicon.cc
@@ -80,6 +80,26 @@ upath YIcon::findIcon(upath dir, upath base, unsigned size) {
     if (fullpath.fileExists())
         return fullpath;
 
+    sprintf(icons_size, "%dx%d/apps/%s", size, size, cstring(base.path()).c_str());
+    fullpath = joinPath(dir, icons_size);
+    if (fullpath.fileExists())
+        return fullpath;
+
+    sprintf(icons_size, "%dx%d/apps/%s.png", size, size, cstring(base.path()).c_str());
+    fullpath = joinPath(dir, icons_size);
+    if (fullpath.fileExists())
+        return fullpath;
+
+    sprintf(icons_size, "%dx%d/apps/%s.xpm", size, size, cstring(base.path()).c_str());
+    fullpath = joinPath(dir, icons_size);
+    if (fullpath.fileExists())
+        return fullpath;
+
+    sprintf(icons_size, "%s_%dx%d.png", cstring(base.path()).c_str(), size, size);
+    fullpath = joinPath(dir, icons_size);
+    if (fullpath.fileExists())
+        return fullpath;
+
     return 0;
 }
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin