[GRASS-SVN] r44607 - in grass/trunk/gui/wxpython: . gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Dec 15 16:39:25 EST 2010
Author: martinl
Date: 2010-12-15 13:39:25 -0800 (Wed, 15 Dec 2010)
New Revision: 44607
Modified:
grass/trunk/gui/wxpython/gui_modules/preferences.py
grass/trunk/gui/wxpython/wxgui.py
Log:
quick fix, #1233 (layer manager and mapdisplay - startup position)
Modified: grass/trunk/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/preferences.py 2010-12-15 14:21:20 UTC (rev 44606)
+++ grass/trunk/gui/wxpython/gui_modules/preferences.py 2010-12-15 21:39:25 UTC (rev 44607)
@@ -56,7 +56,7 @@
# key/value separator
#
self.sep = ';'
-
+
try:
projFile = utils.PathJoin(os.environ["GRASS_PROJSHARE"], 'epsg')
except KeyError:
@@ -590,6 +590,11 @@
},
},
}
+
+ # quick fix, http://trac.osgeo.org/grass/ticket/1233
+ # TODO
+ if sys.platform == 'darwin':
+ self.defaultSettings['general']['defWindowPos']['enabled'] = False
#
# user settings
Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py 2010-12-15 14:21:20 UTC (rev 44606)
+++ grass/trunk/gui/wxpython/wxgui.py 2010-12-15 21:39:25 UTC (rev 44607)
@@ -151,7 +151,7 @@
wx.CallAfter(self.notebook.SetSelection, 0)
# use default window layout ?
- if UserSettings.Get(group='general', key='defWindowPos', subkey='enabled') is True:
+ if UserSettings.Get(group='general', key='defWindowPos', subkey='enabled'):
dim = UserSettings.Get(group='general', key='defWindowPos', subkey='dim')
try:
x, y = map(int, dim.split(',')[0:2])
@@ -1101,7 +1101,7 @@
self.curr_page.maptree.Layout()
# use default window layout
- if UserSettings.Get(group='general', key='defWindowPos', subkey='enabled') is True:
+ if UserSettings.Get(group='general', key='defWindowPos', subkey='enabled'):
dim = UserSettings.Get(group='general', key='defWindowPos', subkey='dim')
idx = 4 + self.disp_idx * 4
try:
More information about the grass-commit
mailing list