commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r8484 - trunk/gnue-common/src/logic


From: reinhard
Subject: [gnue] r8484 - trunk/gnue-common/src/logic
Date: Wed, 24 May 2006 07:40:32 -0500 (CDT)

Author: reinhard
Date: 2006-05-24 07:40:31 -0500 (Wed, 24 May 2006)
New Revision: 8484

Modified:
   trunk/gnue-common/src/logic/usercode.py
Log:
Reuse icon/label/description from action for commanders.


Modified: trunk/gnue-common/src/logic/usercode.py
===================================================================
--- trunk/gnue-common/src/logic/usercode.py     2006-05-24 11:59:53 UTC (rev 
8483)
+++ trunk/gnue-common/src/logic/usercode.py     2006-05-24 12:40:31 UTC (rev 
8484)
@@ -270,7 +270,17 @@
                 parent = parent.getParent()
             self.__action = parent._actions[self.action]
 
+            # Copy icon, label and description from action object if not set
+            # here. We can safely do this here because designer doesn't run
+            # this code.
+            if self.icon is None:
+                self.icon = self.__action.icon
+            if self.label is None:
+                self.label = self.__action.label
+            if self.description is None:
+                self.description = self.__action.description
 
+
     # -------------------------------------------------------------------------
     # Trigger functions
     # -------------------------------------------------------------------------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]