[GRASS-SVN] r46593 - in grass/trunk/gui/wxpython: . gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jun 7 14:07:46 EDT 2011
Author: martinl
Date: 2011-06-07 11:07:46 -0700 (Tue, 07 Jun 2011)
New Revision: 46593
Modified:
grass/trunk/gui/wxpython/gui_modules/toolbars.py
grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI: no menu in workspace toolbar
Modified: grass/trunk/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/toolbars.py 2011-06-07 18:03:36 UTC (rev 46592)
+++ grass/trunk/gui/wxpython/gui_modules/toolbars.py 2011-06-07 18:07:46 UTC (rev 46593)
@@ -1575,13 +1575,16 @@
"""!Toolbar data
"""
self.newdisplay = wx.NewId()
+ self.workspaceNew = wx.NewId()
self.workspaceOpen = wx.NewId()
self.workspaceSave = wx.NewId()
icons = Icons['layerManager']
return self._getToolbarData(((self.newdisplay, 'newdisplay', icons["newdisplay"],
- self.parent.OnNewMenu),
+ self.parent.OnNewDisplay),
(None, ),
+ (self.workspaceNew, 'workspaceNew', icons["workspaceNew"],
+ self.parent.OnWorkspaceNew),
(self.workspaceOpen, 'workspaceOpen', icons["workspaceOpen"],
self.parent.OnWorkspaceOpen),
(self.workspaceSave, 'workspaceSave', icons["workspaceSave"],
Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py 2011-06-07 18:03:36 UTC (rev 46592)
+++ grass/trunk/gui/wxpython/wxgui.py 2011-06-07 18:07:46 UTC (rev 46593)
@@ -641,12 +641,6 @@
self.PopupMenu(menu)
menu.Destroy()
- def OnNewMenu(self, event):
- """!New display/workspace menu
- """
- self._popupMenu((('newdisplay', self.OnNewDisplay),
- ('workspaceNew', self.OnWorkspaceNew)))
-
def OnImportMenu(self, event):
"""!Import maps menu (import, link)
"""
More information about the grass-commit
mailing list