SF.net SVN: geany:[3733] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Fri Apr 24 19:31:23 UTC 2009


Revision: 3733
          http://geany.svn.sourceforge.net/geany/?rev=3733&view=rev
Author:   eht16
Date:     2009-04-24 19:31:23 +0000 (Fri, 24 Apr 2009)

Log Message:
-----------
Use the startup path as the initial directory for the filebrowser plugin when no project and no files are opened
(patch by Matias Gea, thanks; closes #2780521).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/plugins/filebrowser.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-04-24 19:31:00 UTC (rev 3732)
+++ trunk/ChangeLog	2009-04-24 19:31:23 UTC (rev 3733)
@@ -17,6 +17,10 @@
    Increase the amount of highlighted build error messages to 100.
    At least for LaTeX we need higher values as there is a lot of
    informative output before any errors are reported.
+ * src/filebrowser.c:
+   Use the startup path as the initial directory for the filebrowser
+   plugin when no project and no files are opened
+   (patch by Matias Gea, thanks; closes #2780521).
 
 
 2009-04-21  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/plugins/filebrowser.c
===================================================================
--- trunk/plugins/filebrowser.c	2009-04-24 19:31:00 UTC (rev 3732)
+++ trunk/plugins/filebrowser.c	2009-04-24 19:31:23 UTC (rev 3733)
@@ -281,6 +281,9 @@
 
 	if (project)
 		dir = project->base_path;
+	else
+		dir = geany->prefs->default_open_path;
+
 	if (NZV(dir))
 		return utils_get_locale_from_utf8(dir);
 


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