Revision: 5244 http://geany.svn.sourceforge.net/geany/?rev=5244&view=rev Author: ntrel Date: 2010-09-20 12:19:26 +0000 (Mon, 20 Sep 2010)
Log Message: ----------- Open a new document automatically after closing all documents.
Modified Paths: -------------- trunk/ChangeLog trunk/src/document.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-09-20 12:06:04 UTC (rev 5243) +++ trunk/ChangeLog 2010-09-20 12:19:26 UTC (rev 5244) @@ -5,6 +5,8 @@ * src/interface.c, src/ui_utils.c, geany.glade: Add Search submenu for Find Selected, Find Usage, Go to Tag items, shared with the editor popup menu. + * src/document.c: + Open a new document automatically after closing all documents.
2010-09-16 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/document.c =================================================================== --- trunk/src/document.c 2010-09-20 12:06:04 UTC (rev 5243) +++ trunk/src/document.c 2010-09-20 12:19:26 UTC (rev 5244) @@ -608,6 +608,13 @@ }
+static gboolean on_idle_new_doc(gpointer user_data) +{ + document_new_file_if_non_open(); + return FALSE; +} + + /** * Removes the given notebook tab at @a page_num and clears all related information * in the document list. @@ -677,6 +684,7 @@ ui_document_buttons_update(); build_menu_update(NULL); } + g_idle_add(on_idle_new_doc, NULL); return TRUE; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.