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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 1 14:00:59 EDT 2008


Author: martinl
Date: 2008-04-01 14:00:59 -0400 (Tue, 01 Apr 2008)
New Revision: 30836

Modified:
   grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
Log:
wxGUI (wxgui_utils): DeleteLayer renamed to OnDeleteLayer

Modified: grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py	2008-04-01 17:33:24 UTC (rev 30835)
+++ grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py	2008-04-01 18:00:59 UTC (rev 30836)
@@ -183,7 +183,7 @@
         """Key pressed"""
         key = event.GetKeyCode()
         if key == wx.WXK_DELETE and self.gismgr:
-            self.gismgr.DeleteLayer(None)
+            self.gismgr.OnDeleteLayer(None)
 
         event.Skip()
 
@@ -219,7 +219,7 @@
         self.popupMenu = wx.Menu()
         # general item
         self.popupMenu.Append(self.popupID1, text=_("Remove"))
-        self.Bind(wx.EVT_MENU, self.gismgr.DeleteLayer, id=self.popupID1)
+        self.Bind(wx.EVT_MENU, self.gismgr.OnDeleteLayer, id=self.popupID1)
 
         if ltype != "command": # rename
             self.popupMenu.Append(self.popupID2, text=_("Rename"))



More information about the grass-commit mailing list