[GRASS-SVN] r45491 - in grass/trunk/gui/wxpython: gui_modules icons
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 28 16:25:50 EST 2011
Author: martinl
Date: 2011-02-28 13:25:50 -0800 (Mon, 28 Feb 2011)
New Revision: 45491
Modified:
grass/trunk/gui/wxpython/gui_modules/layertree.py
grass/trunk/gui/wxpython/icons/icon.py
Log:
fix r45489: define layerOptions
Modified: grass/trunk/gui/wxpython/gui_modules/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/layertree.py 2011-02-28 20:38:53 UTC (rev 45490)
+++ grass/trunk/gui/wxpython/gui_modules/layertree.py 2011-02-28 21:25:50 UTC (rev 45491)
@@ -730,7 +730,7 @@
grouptext = _('Layer group:') + str(self.groupnode)
self.groupnode += 1
else:
- btnbmp = icons["layeropts"].GetBitmap((16,16))
+ btnbmp = Icons['layerManager']["layerOptions"].GetBitmap((16,16))
ctrl = buttons.GenBitmapButton(self, id = wx.ID_ANY, bitmap = btnbmp, size = (24,24))
ctrl.SetToolTipString(_("Click to edit layer settings"))
self.Bind(wx.EVT_BUTTON, self.OnLayerContextMenu, ctrl)
@@ -1284,7 +1284,7 @@
text = self.GetItemText(dragItem)
if self.GetPyData(dragItem)[0]['ctrl']:
# recreate data layer
- btnbmp = icons["layeropts"].GetBitmap((16,16))
+ btnbmp = Icons['layerManager']["layerOptions"].GetBitmap((16,16))
newctrl = buttons.GenBitmapButton(self, id = wx.ID_ANY, bitmap = btnbmp, size = (24, 24))
newctrl.SetToolTipString(_("Click to edit layer settings"))
self.Bind(wx.EVT_BUTTON, self.OnLayerContextMenu, newctrl)
Modified: grass/trunk/gui/wxpython/icons/icon.py
===================================================================
--- grass/trunk/gui/wxpython/icons/icon.py 2011-02-28 20:38:53 UTC (rev 45490)
+++ grass/trunk/gui/wxpython/icons/icon.py 2011-02-28 21:25:50 UTC (rev 45491)
@@ -234,6 +234,8 @@
label = _('Show GUI settings')),
'modeler' : MetaIcon(img = iconSet['modeler-main'],
label = _('Start Graphical Modeler')),
+ "layerOptions" : MetaIcon(img = iconSet['options'],
+ label = _('Set options')),
},
'vdigit' : {
'addPoint' : MetaIcon(img = iconSet['point-create'],
More information about the grass-commit
mailing list