SF.net SVN: geany: [2527] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Fri Apr 25 11:47:04 UTC 2008


Revision: 2527
          http://geany.svn.sourceforge.net/geany/?rev=2527&view=rev
Author:   ntrel
Date:     2008-04-25 04:47:01 -0700 (Fri, 25 Apr 2008)

Log Message:
-----------
Add/reorder a recent file item when closing a document.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-04-24 14:33:12 UTC (rev 2526)
+++ trunk/ChangeLog	2008-04-25 11:47:01 UTC (rev 2527)
@@ -1,3 +1,9 @@
+2008-04-25  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>
+
+ * src/document.c:
+   Add/reorder a recent file item when closing a document.
+
+
 2008-04-24  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
 
  * data/filetypes.xml, data/filetypes.javascript, src/highlighting.c:

Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c	2008-04-24 14:33:12 UTC (rev 2526)
+++ trunk/src/document.c	2008-04-25 11:47:01 UTC (rev 2527)
@@ -534,6 +534,10 @@
 		{
 			return FALSE;
 		}
+		/* TODO: check g_file_test(doc_list[idx].real_name, G_FILE_TEST_EXISTS) */
+		if (! main_status.closing_all && g_path_is_absolute(DOC_FILENAME(idx)))
+			ui_add_recent_file(doc_list[idx].file_name);
+
 		notebook_remove_page(page_num);
 		treeviews_remove_document(idx);
 		navqueue_remove_file(doc_list[idx].file_name);


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