[GRASS-SVN] r46595 - in grass/branches/releasebranch_6_4/gui/wxpython: . gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 7 14:11:54 EDT 2011


Author: martinl
Date: 2011-06-07 11:11:54 -0700 (Tue, 07 Jun 2011)
New Revision: 46595

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbars.py
   grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py
Log:
wxGUI: no menu in workspace toolbar
      (merge r46593 from trunk)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbars.py	2011-06-07 18:10:26 UTC (rev 46594)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbars.py	2011-06-07 18:11:54 UTC (rev 46595)
@@ -1581,13 +1581,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/branches/releasebranch_6_4/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py	2011-06-07 18:10:26 UTC (rev 46594)
+++ grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py	2011-06-07 18:11:54 UTC (rev 46595)
@@ -639,12 +639,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