[GRASS-SVN] r51089 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 17 10:21:01 EDT 2012


Author: annakrat
Date: 2012-03-17 07:21:01 -0700 (Sat, 17 Mar 2012)
New Revision: 51089

Modified:
   grass/trunk/gui/wxpython/gui_core/goutput.py
   grass/trunk/gui/wxpython/gui_core/prompt.py
Log:
wxGUI: attempt to get rid of CGContextRestoreGState on Mac (see wxWidgets ticket 4272)

Modified: grass/trunk/gui/wxpython/gui_core/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/goutput.py	2012-03-17 10:57:36 UTC (rev 51088)
+++ grass/trunk/gui/wxpython/gui_core/goutput.py	2012-03-17 14:21:01 UTC (rev 51089)
@@ -1058,7 +1058,7 @@
         """!Copy selected text to clipboard and skip event.
         The same function is in TextCtrlAutoComplete class (prompt.py).
         """
-        self.Copy()
+        wx.CallAfter(self.Copy)
         event.Skip()
         
     def SetStyle(self):

Modified: grass/trunk/gui/wxpython/gui_core/prompt.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/prompt.py	2012-03-17 10:57:36 UTC (rev 51088)
+++ grass/trunk/gui/wxpython/gui_core/prompt.py	2012-03-17 14:21:01 UTC (rev 51089)
@@ -728,7 +728,7 @@
         """!Copy selected text to clipboard and skip event.
         The same function is in GMStc class (goutput.py).
         """
-        self.Copy()
+        wx.CallAfter(self.Copy)
         event.Skip()
         
     def OnItemChanged(self, event):



More information about the grass-commit mailing list