[GRASS-SVN] r32114 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 15 01:40:48 EDT 2008


Author: cmbarton
Date: 2008-07-15 01:40:48 -0400 (Tue, 15 Jul 2008)
New Revision: 32114

Modified:
   grass/trunk/gui/wxpython/gui_modules/toolbars.py
Log:
Workaround for Mac bug that keeps widgets like combo boxes from showing up in AUI toolbars.

Modified: grass/trunk/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/toolbars.py	2008-07-15 05:39:51 UTC (rev 32113)
+++ grass/trunk/gui/wxpython/gui_modules/toolbars.py	2008-07-15 05:40:48 UTC (rev 32114)
@@ -105,7 +105,7 @@
         self.mapcontent = map
         self.mapdisplay = mapdisplay
 
-	self.toolbar = wx.ToolBar(parent=self.mapdisplay, id=wx.ID_ANY)
+        self.toolbar = wx.ToolBar(parent=self.mapdisplay, id=wx.ID_ANY)
         self.toolbar.SetToolBitmapSize(globalvar.toolbarSize)
 
         self.InitToolbar(self.mapdisplay, self.toolbar, self.ToolbarData())
@@ -119,6 +119,10 @@
 
         # realize the toolbar
         self.toolbar.Realize()
+        
+        #workaround for Mac bug. May be fixed by 2.8.8, but not before then.
+        self.combo.Hide()
+        self.combo.Show()
             
     def ToolbarData(self):
         """Toolbar data"""



More information about the grass-commit mailing list