[alacarte] util: Remove unused for_properties
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [alacarte] util: Remove unused for_properties
- Date: Wed, 23 May 2012 19:00:11 +0000 (UTC)
commit 9c73115fbb5cc38cf44d35741e4a2f7aa3046bf9
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue May 1 15:13:05 2012 -0400
util: Remove unused for_properties
Alacarte/util.py | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/Alacarte/util.py b/Alacarte/util.py
index 626f0ca..49a8132 100644
--- a/Alacarte/util.py
+++ b/Alacarte/util.py
@@ -200,11 +200,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 == None:
- if for_properties:
- return None, None
return None
if isinstance(item, GMenu.TreeDirectory):
@@ -220,8 +218,6 @@ def getIcon(item, for_properties=False):
path = info.get_filename()
except:
if pixbuf is None:
- if for_properties:
- return None, None
if isinstance(item, GMenu.TreeDirectory):
iconName = 'gnome-fs-directory'
else:
@@ -235,6 +231,4 @@ 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]