dabo Commit
Revision 2478
Date: 2006-11-19 06:30:52 -0800 (Sun, 19 Nov 2006)
Author: ed
Changed:
U trunk/dabo/ui/uiwx/__init__.py
U trunk/dabo/ui/uiwx/dSplitter.py
Log:
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: trunk/dabo/ui/uiwx/__init__.py
===================================================================
--- trunk/dabo/ui/uiwx/__init__.py 2006-11-19 06:18:17 UTC (rev 2477)
+++ trunk/dabo/ui/uiwx/__init__.py 2006-11-19 14:30:52 UTC (rev 2478)
@@ -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: trunk/dabo/ui/uiwx/dSplitter.py
===================================================================
--- trunk/dabo/ui/uiwx/dSplitter.py 2006-11-19 06:18:17 UTC (rev 2477)
+++ trunk/dabo/ui/uiwx/dSplitter.py 2006-11-19 14:30:52 UTC (rev 2478)
@@ -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