summaryrefslogtreecommitdiff
path: root/Mozo/util.py
diff options
context:
space:
mode:
authorJasper St. Pierre <[email protected]>2012-05-01 15:13:05 -0400
committerAlexei Sorokin <[email protected]>2016-08-23 00:24:16 +0300
commitc5b00b04b6a9923d72a392063bb3875d4ab8a2e2 (patch)
treed0e2a23a8d3a812b604bc72271ef428154dcc799 /Mozo/util.py
parentc39ea786f9bfff1eef4962b8a8bbb700ffb34de5 (diff)
downloadmozo-c5b00b04b6a9923d72a392063bb3875d4ab8a2e2.tar.bz2
mozo-c5b00b04b6a9923d72a392063bb3875d4ab8a2e2.tar.xz
util: remove unused for_properties
Diffstat (limited to 'Mozo/util.py')
-rw-r--r--Mozo/util.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/Mozo/util.py b/Mozo/util.py
index 49d9d4a..54dcf1f 100644
--- a/Mozo/util.py
+++ b/Mozo/util.py
@@ -130,11 +130,9 @@ def getUserMenuXml(tree):
menu_xml += "<MergeFile type=\"parent\">" + system_file + "</MergeFile>\n</Menu>\n"
return menu_xml
-def getIcon(item, for_properties=False):
+def getIcon(item):
pixbuf, path = None, None
if item is None:
- if for_properties:
- return None, None
return None
if isinstance(item, str):
iconName = item
@@ -154,8 +152,6 @@ def getIcon(item, for_properties=False):
except:
pass
if pixbuf is None:
- if for_properties:
- return None, None
if item.get_type() == matemenu.TYPE_DIRECTORY:
iconName = 'mate-fs-directory'
elif item.get_type() == matemenu.TYPE_ENTRY:
@@ -169,8 +165,6 @@ def getIcon(item, for_properties=False):
return None
if pixbuf.get_width() != 24 or pixbuf.get_height() != 24:
pixbuf = pixbuf.scale_simple(24, 24, GdkPixbuf.InterpType.HYPER)
- if for_properties:
- return pixbuf, path
return pixbuf
def removeWhitespaceNodes(node):