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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 6 05:33:09 EDT 2008


Author: martinl
Date: 2008-08-06 05:33:09 -0400 (Wed, 06 Aug 2008)
New Revision: 32562

Modified:
   grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
Log:
wxGUI: drag-and-drop, force edit icon to be 24x24 (merge from devbr6, r32561)

Modified: grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py	2008-08-06 09:31:48 UTC (rev 32561)
+++ grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py	2008-08-06 09:33:09 UTC (rev 32562)
@@ -1022,7 +1022,7 @@
         if self.GetPyData(dragItem)[0]['ctrl']:
             # recreate spin/text control for layer
             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"))
             self.Bind(wx.EVT_BUTTON, self.OnLayerContextMenu, newctrl)
             opacity = self.GetPyData(dragItem)[0]['maplayer'].GetOpacity()



More information about the grass-commit mailing list