Browse Source

fix r45489: define layerOptions

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@45491 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 years ago
parent
commit
d2180029b3
2 changed files with 4 additions and 2 deletions
  1. 2 2
      gui/wxpython/gui_modules/layertree.py
  2. 2 0
      gui/wxpython/icons/icon.py

+ 2 - 2
gui/wxpython/gui_modules/layertree.py

@@ -730,7 +730,7 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
             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 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
         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)

+ 2 - 0
gui/wxpython/icons/icon.py

@@ -234,6 +234,8 @@ Icons = {
                                 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'],