SF.net SVN: geany: [507] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Thu Jun 29 19:08:27 UTC 2006


Revision: 507
Author:   eht16
Date:     2006-06-29 12:08:21 -0700 (Thu, 29 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/geany/?rev=507&view=rev

Log Message:
-----------
Create a new tm_source_file object if a file is renamed, otherwise tagmanager won't work correctly.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/callbacks.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-06-29 18:22:11 UTC (rev 506)
+++ trunk/ChangeLog	2006-06-29 19:08:21 UTC (rev 507)
@@ -20,6 +20,9 @@
  * src/utils.c: Added function is_opening_brace().
  * src/sci_cb.c:
    Use is_opening_brace() for better handling of calltips.
+ * src/callbacks.c:
+   Create a new tm_source_file object if a file is renamed, otherwise
+   tagmanager won't work correctly.
 
 
 2006-06-28  Enrico Tröger  <enrico.troeger at uvena.de>

Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c	2006-06-29 18:22:11 UTC (rev 506)
+++ trunk/src/callbacks.c	2006-06-29 19:08:21 UTC (rev 507)
@@ -892,7 +892,12 @@
 		}
 		gtk_widget_hide(app->save_filesel);
 
-		if (doc_list[idx].file_name) g_free(doc_list[idx].file_name);
+		if (doc_list[idx].file_name)
+		{	// create a new tm_source_file object otherwise tagmanager won't work correctly
+			tm_workspace_remove_object(doc_list[idx].tm_file, TRUE);
+			doc_list[idx].tm_file = NULL;
+			g_free(doc_list[idx].file_name);
+		}
 		doc_list[idx].file_name = new_filename;
 
 		utils_replace_filename(idx);


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