mailr16664 - /branches/uf_redesign/gui/uf_objects.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 05, 2012 - 12:14:
Author: bugman
Date: Tue Jun  5 12:14:17 2012
New Revision: 16664

URL: http://svn.gna.org/viewcvs/relax?rev=16664&view=rev
Log:
Fix for the user function window titles for when 'title_short' is not in the 
definition.

If 'title_short' is missing, 'title' will be used instead.


Modified:
    branches/uf_redesign/gui/uf_objects.py

Modified: branches/uf_redesign/gui/uf_objects.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/uf_objects.py?rev=16664&r1=16663&r2=16664&view=diff
==============================================================================
--- branches/uf_redesign/gui/uf_objects.py (original)
+++ branches/uf_redesign/gui/uf_objects.py Tue Jun  5 12:14:17 2012
@@ -1066,8 +1066,13 @@
 
             # Generate the user functions.
             for name, data in uf_info.uf_loop():
+                # The title.
+                title = data.title_short
+                if not title:
+                    title = data.title
+
                 # Generate a new container.
-                obj = Uf_object(name, title=data.title_short, 
size=data.wizard_size, height_desc=data.wizard_height_desc, 
apply_button=data.wizard_apply_button, sync=data.gui_sync)
+                obj = Uf_object(name, title=title, size=data.wizard_size, 
height_desc=data.wizard_height_desc, apply_button=data.wizard_apply_button, 
sync=data.gui_sync)
 
                 # Store it.
                 self._instance[name] = obj




Related Messages


Powered by MHonArc, Updated Tue Jun 05 13:20:02 2012