]> git.saurik.com Git - wxWidgets.git/commitdiff
wx.lib.customtreectrl patches from Andrea Gavana.
authorRobin Dunn <robin@alldunn.com>
Mon, 18 Dec 2006 23:18:07 +0000 (23:18 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 18 Dec 2006 23:18:07 +0000 (23:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/CustomTreeCtrl.py
wxPython/docs/CHANGES.txt
wxPython/wx/lib/customtreectrl.py

index 9d816036da0c4697e7bbe6bfd9ad98f9389d177b..25214d52faee9fe6871b32e1e1f23a160c7fe47a 100644 (file)
@@ -1816,7 +1816,6 @@ class CustomTreeCtrl(CT.CustomTreeCtrl):
             self.log.write("Beginning Drag..." + "\n")
 
             event.Allow()
-            event.Skip()
 
 
     def OnBeginRDrag(self, event):
@@ -1826,7 +1825,6 @@ class CustomTreeCtrl(CT.CustomTreeCtrl):
             self.log.write("Beginning Right Drag..." + "\n")
 
             event.Allow()
-            event.Skip()
         
 
     def OnEndDrag(self, event):
index 150779f304369eb4a6e5f702cca592f173d16292..977754eed0e97a46aadcd70ece3a61520f0d60df 100644 (file)
@@ -1,6 +1,18 @@
 Recent Changes for wxPython
 =====================================================================
 
+2.8.0.2
+-------
+* 
+
+wxGTK: Fix for controls on a toolbar being the full height of the
+toolbar instead of their natural height.
+
+wx.lib.customtreectrl patches from Andrea Gavana.
+
+
+
+
 
 2.8.0.1
 -------
index d987320ca0995015256b3904ff7a91206e085ebe..7bfed72f48e72bdcc45977bff07925b2e9a8c8f1 100644 (file)
@@ -4855,7 +4855,7 @@ class CustomTreeCtrl(wx.PyScrolledWindow):
                         current = self.GetItemParent(current)
                         if current:
                             next = self.GetNextSibling(current)
-                            if not self.IsEnabled(next):
+                            if not next or not self.IsEnabled(next):
                                 next = None
 
                 else:
@@ -5130,7 +5130,7 @@ class CustomTreeCtrl(wx.PyScrolledWindow):
         underMouse = thisItem
         underMouseChanged = underMouse != self._underMouse
 
-        if underMouse and (flags & TREE_HITTEST_ONITEMBUTTON) and not event.LeftIsDown() and \
+        if underMouse and (flags & TREE_HITTEST_ONITEM) and not event.LeftIsDown() and \
            not self._isDragging and (not self._renameTimer or not self._renameTimer.IsRunning()):
             underMouse = underMouse
         else: