SF.net SVN: geany:[3568] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sun Feb 8 19:52:43 UTC 2009


Revision: 3568
          http://geany.svn.sourceforge.net/geany/?rev=3568&view=rev
Author:   eht16
Date:     2009-02-08 19:52:43 +0000 (Sun, 08 Feb 2009)

Log Message:
-----------
Don't follow the path of the document if the document has not an absolute file path.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-02-08 19:52:21 UTC (rev 3567)
+++ trunk/ChangeLog	2009-02-08 19:52:43 UTC (rev 3568)
@@ -13,6 +13,9 @@
    Make document_get_status_color() returning a const GdkColor.
    Add editor_get_word_at_pos() and document_get_status_color() to the
    plugin API.
+ * src/vte.c, plugins/filebrowser.c:
+   Don't follow the path of the document if the document has not an
+   absolute file path.
 
 
 2009-02-08  Frank Lanitz  <frank(at)frank(dot)uvena(dot)de>

Modified: trunk/plugins/filebrowser.c
===================================================================
--- trunk/plugins/filebrowser.c	2009-02-08 19:52:21 UTC (rev 3567)
+++ trunk/plugins/filebrowser.c	2009-02-08 19:52:43 UTC (rev 3568)
@@ -949,7 +949,7 @@
 {
 	gchar *new_dir;
 
-	if (! fb_follow_path || doc->file_name == NULL)
+	if (! fb_follow_path || doc->file_name == NULL || ! g_path_is_absolute(doc->file_name))
 		return;
 
 	new_dir = g_path_get_dirname(doc->file_name);

Modified: trunk/src/vte.c
===================================================================
--- trunk/src/vte.c	2009-02-08 19:52:21 UTC (rev 3567)
+++ trunk/src/vte.c	2009-02-08 19:52:43 UTC (rev 3568)
@@ -646,7 +646,8 @@
  */
 void vte_cwd(const gchar *filename, gboolean force)
 {
-	if (vte_info.have_vte && (vc->follow_path || force) && filename != NULL)
+	if (vte_info.have_vte && (vc->follow_path || force) &&
+		filename != NULL && g_path_is_absolute(filename))
 	{
 		gchar *path;
 


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