dabo Commit
Revision 2479
Date: 2006-11-19 07:01:44 -0800 (Sun, 19 Nov 2006)
Author: paul

Changed:
U   branches/stable/dabo/ui/uiwx/__init__.py
U   branches/stable/dabo/ui/uiwx/dSplitter.py

Log:
Merged Ed's bugfix for dSplitter to the stable branch so it makes it into 
the next release. Original log message:

Fixed a problem on Gtk wherein changing the splitter position might cause a 
segfault. This may be tied to the 100%CPU problem reported in Tracker #0230.



Diff:
Modified: branches/stable/dabo/ui/uiwx/__init__.py
===================================================================
--- branches/stable/dabo/ui/uiwx/__init__.py    2006-11-19 14:30:52 UTC (rev 
2478)
+++ branches/stable/dabo/ui/uiwx/__init__.py    2006-11-19 15:01:44 UTC (rev 
2479)
@@ -403,7 +403,7 @@
                        ed["sashPosition"] = wxEvt.GetSashPosition()
                except:
                        ed["sashPosition"] = wxEvt.GetEventObject().SashPosition
-               if hasattr(wxEvt, "GetWindowBeingRemoved"):
+               if wxEvt.GetEventType() == wx.EVT_SPLITTER_UNSPLIT.evtType[0]:
                        try:
                                ed["windowRemoved"] = 
wxEvt.GetWindowBeingRemoved()
                        except:

Modified: branches/stable/dabo/ui/uiwx/dSplitter.py
===================================================================
--- branches/stable/dabo/ui/uiwx/dSplitter.py   2006-11-19 14:30:52 UTC (rev 
2478)
+++ branches/stable/dabo/ui/uiwx/dSplitter.py   2006-11-19 15:01:44 UTC (rev 
2479)
@@ -434,7 +434,7 @@
                
 
        def onSashDoubleClick(self, evt):
-               if not dabo.ui.areYouSure("Remove the sash?"):
+               if not dabo.ui.areYouSure("Remove the sash?", 
cancelButton=False):
                        evt.stop()
 
 




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to