Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37047482
en ru br
Репозитории ALT

Группа :: Other
Пакет: mate-menu

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: alt-category-without-icon.patch
Скачать


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
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin