SF.net SVN: geany: [2639] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Tue Jun 3 18:16:52 UTC 2008


Revision: 2639
          http://geany.svn.sourceforge.net/geany/?rev=2639&view=rev
Author:   eht16
Date:     2008-06-03 11:15:52 -0700 (Tue, 03 Jun 2008)

Log Message:
-----------
When quitting, prevent inconsistent GUI elements when cancelling on an unsaved file.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/dialogs.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-06-03 17:26:22 UTC (rev 2638)
+++ trunk/ChangeLog	2008-06-03 18:15:52 UTC (rev 2639)
@@ -23,6 +23,9 @@
 
  * src/main.c:
    Fix slightly wrong preprocessor checks.
+ * src/dialogs.c:
+   When quitting, prevent inconsistent GUI elements when cancelling on
+   an unsaved file.
 
 
 2008-06-02  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/src/dialogs.c
===================================================================
--- trunk/src/dialogs.c	2008-06-03 17:26:22 UTC (rev 2638)
+++ trunk/src/dialogs.c	2008-06-03 18:15:52 UTC (rev 2639)
@@ -54,6 +54,7 @@
 #include "keybindings.h"
 #include "encodings.h"
 #include "build.h"
+#include "main.h"
 
 
 enum
@@ -668,8 +669,10 @@
 	gint ret;
 
 	/* display the file tab to remind the user of the document */
+	main_status.quitting = FALSE;
 	gtk_notebook_set_current_page(GTK_NOTEBOOK(main_widgets.notebook),
 		document_get_notebook_page(idx));
+	main_status.quitting = TRUE;
 
 	if (documents[idx]->file_name != NULL)
 	{


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list