Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37858131
en ru br
ALT Linux repos
S:22.04.2-alt7

Group :: Other
RPM: mate-menu

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: alt-category-without-icon.patch
Download


diff --git a/mate_menu/plugins/applications.py b/mate_menu/plugins/applications.py
index b5d6b8f..bdcc3c9 100644
--- a/mate_menu/plugins/applications.py
+++ b/mate_menu/plugins/applications.py
@@ -1569,7 +1569,11 @@ class pluginclass( object ):
             for child in get_contents(menu.directory):
                 if isinstance(child, MateMenu.TreeDirectory):
                     name = child.get_name()
-                    icon = child.get_icon().to_string()
+                    icon = child.get_icon()
+                    if ( icon == None ):
+                        icon = "applications-other"
+                    else:
+                        icon = icon.to_string()
                     newCategoryList.append( { "name": name, "icon": icon, "tooltip": name, "filter": name, "index": num } )
             num += 1
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin