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: Jason Cater
Subject: gnue/designer/src/forms/LayoutEditor LayoutEdit...
Date: Thu, 18 Apr 2002 10:53:21 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    02/04/18 10:53:21

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

Log message:
        [ticket #27] fixed label editing issue

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

Patches:
Index: gnue/designer/src/forms/LayoutEditor/LayoutEditor.py
diff -c gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.19 
gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.20
*** gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.19   Wed Apr 17 
15:09:18 2002
--- gnue/designer/src/forms/LayoutEditor/LayoutEditor.py        Thu Apr 18 
10:53:20 2002
***************
*** 181,193 ****
  
      # TODO: adjust label width to match new length...this shouldn't be here
      if object._type == 'GFLabel':
        for modification in modifications:
          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)) )
      else:
        mods = modifications
  
--- 181,194 ----
  
      # TODO: adjust label width to match new length...this shouldn't be here
      if object._type == 'GFLabel':
+       mods = []
        for modification in modifications:
          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)) )
      else:
        mods = modifications
  



reply via email to

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