Revision: 3695 http://geany.svn.sourceforge.net/geany/?rev=3695&view=rev Author: eht16 Date: 2009-04-07 22:08:19 +0000 (Tue, 07 Apr 2009)
Log Message: ----------- Fix setting a wrong default window size when starting without an existing configuration.
Modified Paths: -------------- trunk/ChangeLog trunk/src/main.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2009-04-07 15:42:24 UTC (rev 3694) +++ trunk/ChangeLog 2009-04-07 22:08:19 UTC (rev 3695) @@ -1,3 +1,10 @@ +2009-04-07 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * src/main.c: + Fix setting a wrong default window size when starting without an + existing configuration. + + 2009-04-07 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/editor.c:
Modified: trunk/src/main.c =================================================================== --- trunk/src/main.c 2009-04-07 15:42:24 UTC (rev 3694) +++ trunk/src/main.c 2009-04-07 22:08:19 UTC (rev 3695) @@ -153,7 +153,7 @@ static void setup_window_position(void) { /* interprets the saved window geometry */ - if (prefs.save_winpos) + if (prefs.save_winpos && ui_prefs.geometry[0] != -1) { gtk_window_move(GTK_WINDOW(main_widgets.window), ui_prefs.geometry[0], ui_prefs.geometry[1]); gtk_window_set_default_size(GTK_WINDOW(main_widgets.window), ui_prefs.geometry[2], ui_prefs.geometry[3]);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.