Fix broken window maximization.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2008 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
bceb2ce942
commit
dba689edf2
@ -1,6 +1,7 @@
|
||||
2007-11-02 Enrico Tröger <enrico.troeger@uvena.de>
|
||||
|
||||
* src/build.c, src/makefile.win32: Add exit code detection for Windows.
|
||||
* src/keyfile.c: Fix broken window maximization.
|
||||
|
||||
|
||||
2007-11-01 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
@ -641,11 +641,15 @@ static void load_ui_prefs(GKeyFile *config)
|
||||
ui_prefs.geometry[3] = geo[3];
|
||||
ui_prefs.geometry[4] = geo[4];
|
||||
|
||||
// don't use insane values
|
||||
for (i = 0; i < 4; i++)
|
||||
// don't use insane values but when main windows was maximized last time, pos might be
|
||||
// negative at least on Windows for some reason
|
||||
if (ui_prefs.geometry[4] != 1)
|
||||
{
|
||||
if (ui_prefs.geometry[i] < -1)
|
||||
ui_prefs.geometry[i] = -1;
|
||||
for (i = 0; i < 4; i++)
|
||||
{
|
||||
if (ui_prefs.geometry[i] < -1)
|
||||
ui_prefs.geometry[i] = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
hpan_position = utils_get_setting_integer(config, PACKAGE, "treeview_position", 156);
|
||||
|
Loading…
x
Reference in New Issue
Block a user