SF.net SVN: geany-plugins:[1056] trunk/geany-plugins/codenav/src
funto66 at users.sourceforge.net
funto66 at xxxxx
Mon Nov 23 10:31:46 UTC 2009
Revision: 1056
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1056&view=rev
Author: funto66
Date: 2009-11-23 10:31:45 +0000 (Mon, 23 Nov 2009)
Log Message:
-----------
Bugfix : CodeNav : when creating a file with "switch file/impl", the file was not in the correct directory.
Modified Paths:
--------------
trunk/geany-plugins/codenav/src/codenavigation.h
trunk/geany-plugins/codenav/src/switch_head_impl.c
Modified: trunk/geany-plugins/codenav/src/codenavigation.h
===================================================================
--- trunk/geany-plugins/codenav/src/codenavigation.h 2009-11-12 12:44:23 UTC (rev 1055)
+++ trunk/geany-plugins/codenav/src/codenavigation.h 2009-11-23 10:31:45 UTC (rev 1056)
@@ -46,7 +46,7 @@
#include "geanyfunctions.h" /* this wraps geany_functions function pointers */
/* Debug flag */
-#define CODE_NAVIGATION_DEBUG
+/*#define CODE_NAVIGATION_DEBUG*/
#define CODE_NAVIGATION_VERSION "0.1"
Modified: trunk/geany-plugins/codenav/src/switch_head_impl.c
===================================================================
--- trunk/geany-plugins/codenav/src/switch_head_impl.c 2009-11-12 12:44:23 UTC (rev 1055)
+++ trunk/geany-plugins/codenav/src/switch_head_impl.c 2009-11-23 10:31:45 UTC (rev 1056)
@@ -358,8 +358,12 @@
gtk_window_set_title(GTK_WINDOW(dialog), "Geany");
if(gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK)
{
- document_new_file(p_str, current_doc->file_type, NULL);
+ p_str2 = g_strdup_printf( "%s" G_DIR_SEPARATOR_S "%s", dirname, p_str);
+
+ document_new_file(p_str2, current_doc->file_type, NULL);
document_set_text_changed(document_get_current(), TRUE);
+
+ g_free(p_str2);
}
log_debug("DESTROY");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list