[Libreoffice-commits] .: Branch 'feature/gsoc2011_wizards' - wizards/com

Xisco Fauli xfauli at kemper.freedesktop.org
Sun Jul 31 13:10:51 PDT 2011


 wizards/com/sun/star/wizards/agenda/TopicsControl.py |    2 +-
 wizards/com/sun/star/wizards/ui/ControlScroller.py   |   13 -------------
 2 files changed, 1 insertion(+), 14 deletions(-)

New commits:
commit 1d2424fabb44a065a1108f14f7700afc2ad6d5b1
Author: Xisco Fauli <anistenis at gmail.com>
Date:   Sun Jul 31 22:10:27 2011 +0200

    Let's delete it for now

diff --git a/wizards/com/sun/star/wizards/agenda/TopicsControl.py b/wizards/com/sun/star/wizards/agenda/TopicsControl.py
index b5bb082..7ede309 100644
--- a/wizards/com/sun/star/wizards/agenda/TopicsControl.py
+++ b/wizards/com/sun/star/wizards/agenda/TopicsControl.py
@@ -400,7 +400,7 @@ class TopicsControl(ControlScroller):
                         because the last one is always empty...
                         '''
                         while len(ControlScroller.scrollfields) > 1 \
-                                and isRowEmpty(len(ControlScroller.scrollfields) - 2):
+                                and self.isRowEmpty(len(ControlScroller.scrollfields) - 2):
                             removeLastRow()
                         cr = self.ControlGroupVector[
                             ControlScroller.scrollfields.size - ControlScroller.nscrollvalue - 1]
diff --git a/wizards/com/sun/star/wizards/ui/ControlScroller.py b/wizards/com/sun/star/wizards/ui/ControlScroller.py
index 701e494..0a55b55 100644
--- a/wizards/com/sun/star/wizards/ui/ControlScroller.py
+++ b/wizards/com/sun/star/wizards/ui/ControlScroller.py
@@ -182,7 +182,6 @@ class ControlScroller(object):
     @classmethod
     def scrollControls(self):
         try:
-            self.scrollRowsInfo()
             ControlScroller.nscrollvalue = int(Helper.getUnoPropertyValue(
                     ControlScroller.xScrollBar.Model, "ScrollValue"))
             if ControlScroller.nscrollvalue + ControlScroller.nblockincrement \
@@ -193,17 +192,6 @@ class ControlScroller(object):
         except Exception:
             traceback.print_exc()
 
-    @classmethod
-    def scrollRowsInfo(self):
-        if len(ControlScroller.scrollfields) > 0:
-            cols = len(ControlScroller.scrollfields[0])
-        else:
-            cols = 0
-
-        for a in xrange(self.ncurfieldcount):
-            for n in xrange(cols):
-                self.fieldInfo(a, n)
-
     '''
     updates the corresponding data to
     the control in guiRow and column
@@ -261,7 +249,6 @@ class ControlScroller(object):
             return None
 
     def getScrollFieldValues(self):
-        scrollRowsInfo()
         retproperties = [[ControlScroller.scrollfields.size()],[]]
         try:
             i = 0


More information about the Libreoffice-commits mailing list