Pārlūkot izejas kodu

wxGUI: drag-and-drop, force edit icon to be 24x24 (merge from devbr6, https://trac.osgeo.org/grass/changeset/32561)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32562 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 gadi atpakaļ
vecāks
revīzija
5d01bceb45
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      gui/wxpython/gui_modules/wxgui_utils.py

+ 1 - 1
gui/wxpython/gui_modules/wxgui_utils.py

@@ -1022,7 +1022,7 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
         if self.GetPyData(dragItem)[0]['ctrl']:
         if self.GetPyData(dragItem)[0]['ctrl']:
             # recreate spin/text control for layer
             # recreate spin/text control for layer
             btnbmp = Icons["layeropts"].GetBitmap((16,16))
             btnbmp = Icons["layeropts"].GetBitmap((16,16))
-            newctrl = buttons.GenBitmapButton(self, id=wx.ID_ANY, bitmap=btnbmp)
+            newctrl = buttons.GenBitmapButton(self, id=wx.ID_ANY, bitmap=btnbmp, size=(24, 24))
             newctrl.SetToolTipString(_("Click to edit layer settings"))
             newctrl.SetToolTipString(_("Click to edit layer settings"))
             self.Bind(wx.EVT_BUTTON, self.OnLayerContextMenu, newctrl)
             self.Bind(wx.EVT_BUTTON, self.OnLayerContextMenu, newctrl)
             opacity = self.GetPyData(dragItem)[0]['maplayer'].GetOpacity()
             opacity = self.GetPyData(dragItem)[0]['maplayer'].GetOpacity()