[kupfer: 3/11] compose: Use indirect object icon if applicable
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer: 3/11] compose: Use indirect object icon if applicable
- Date: Mon, 14 Dec 2009 20:10:36 +0000 (UTC)
commit d1cf5cfc4015883f42481f6b0271e9b06aeee6a1
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Sun Dec 13 22:30:57 2009 +0100
compose: Use indirect object icon if applicable
kupfer/objects.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/objects.py b/kupfer/objects.py
index 695287e..27a777d 100644
--- a/kupfer/objects.py
+++ b/kupfer/objects.py
@@ -1177,5 +1177,9 @@ class ComposedLeaf (RunnableLeaf):
return action.activate(*args)
def get_gicon(self):
- return icons.ComposedIcon(self.object[0].get_icon(),
- self.object[1].get_icon())
+ obj, action, iobj = self.object
+ if iobj is None:
+ return icons.ComposedIcon(obj.get_icon(), action.get_icon())
+ else:
+ return icons.ComposedIcon(obj.get_icon(), iobj.get_icon())
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]