Revision: 2008 http://geany.svn.sourceforge.net/geany/?rev=2008&view=rev Author: eht16 Date: 2007-11-02 06:03:54 -0700 (Fri, 02 Nov 2007)
Log Message: ----------- Fix broken window maximization.
Modified Paths: -------------- trunk/ChangeLog trunk/src/keyfile.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-11-02 12:58:38 UTC (rev 2007) +++ trunk/ChangeLog 2007-11-02 13:03:54 UTC (rev 2008) @@ -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>
Modified: trunk/src/keyfile.c =================================================================== --- trunk/src/keyfile.c 2007-11-02 12:58:38 UTC (rev 2007) +++ trunk/src/keyfile.c 2007-11-02 13:03:54 UTC (rev 2008) @@ -641,11 +641,15 @@ 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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.