SF.net SVN: geany: [2490] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Wed Apr 16 12:00:35 UTC 2008


Revision: 2490
          http://geany.svn.sourceforge.net/geany/?rev=2490&view=rev
Author:   ntrel
Date:     2008-04-16 05:00:27 -0700 (Wed, 16 Apr 2008)

Log Message:
-----------
Fix geany_debug() warnings with Close All.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-04-16 11:41:36 UTC (rev 2489)
+++ trunk/ChangeLog	2008-04-16 12:00:27 UTC (rev 2490)
@@ -5,6 +5,8 @@
    Group toolbar GtkEntry escape key checks into a common callback.
  * src/main.c:
    Refactor handle_cl_filename() from open_cl_files().
+ * src/callbacks.c:
+   Fix geany_debug() warnings with Close All.
 
 
 2008-04-15  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c	2008-04-16 11:41:36 UTC (rev 2489)
+++ trunk/src/callbacks.c	2008-04-16 12:00:27 UTC (rev 2490)
@@ -150,10 +150,8 @@
 			doc_list[i].changed = FALSE;
 		}
 	}
-	for (i = 0; i < len; i++)
+	while (gtk_notebook_get_n_pages(GTK_NOTEBOOK(app->notebook)) > 0)
 	{
-		/* we don't need to check here for whether doc_list[i] is valid,
-		 * it's done in document_remove(). */
 		document_remove(0);
 	}
 


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