commit-gnue
[Top][All Lists]
Advanced

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

gnue/designer/src/forms/LayoutEditor LayoutEdit...


From: James Thompson
Subject: gnue/designer/src/forms/LayoutEditor LayoutEdit...
Date: Tue, 02 Apr 2002 15:32:55 -0500

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     James Thompson <address@hidden> 02/04/02 15:32:55

Modified files:
        designer/src/forms/LayoutEditor: LayoutEditor.py 

Log message:
        Fixed bug I introduced yesterday (mods used before defined)

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/designer/src/forms/LayoutEditor/LayoutEditor.py.diff?tr1=1.16&tr2=1.17&r1=text&r2=text

Patches:
Index: gnue/designer/src/forms/LayoutEditor/LayoutEditor.py
diff -c gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.16 
gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.17
*** gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.16   Mon Apr  1 
19:17:58 2002
--- gnue/designer/src/forms/LayoutEditor/LayoutEditor.py        Tue Apr  2 
15:32:55 2002
***************
*** 179,194 ****
        return
  
      # TODO: adjust label width to match new length...this shouldn't be here   
      if object._type == 'GFLabel':
-       mods = []
        for modification in modifications:
-         mods.append(modification)
          field, value = modification
          if field=='text':
!             #TODO: this will butcher align=center setups
!             if (not hasattr(object,'alignment')) or ( object.alignment == 
'left'):
!               object.width=len(value)
!               mods.append( ('width',len(value)) )
  
      self.propBar.onModifyObject(object, handler, mods)
  
--- 179,195 ----
        return
  
      # TODO: adjust label width to match new length...this shouldn't be here   
+     mods = []
+     for modification in modifications:
+       mods.append(modification)
+ 
      if object._type == 'GFLabel':
        for modification in modifications:
          field, value = modification
          if field=='text':
!           if (not hasattr(object,'alignment')) or ( object.alignment == 
'left'):
!             object.width=len(value)
!             mods.append( ('width',len(value)) )
  
      self.propBar.onModifyObject(object, handler, mods)
  



reply via email to

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