anjuta r4096 - in trunk: . libanjuta/interfaces plugins/debug-manager



Author: sgranjoux
Date: Tue Jul 22 20:07:39 2008
New Revision: 4096
URL: http://svn.gnome.org/viewvc/anjuta?rev=4096&view=rev

Log:
	* plugins/debug-manager/plugin.c,
	plugins/debug-manager/breakpoints.c,
	libanjuta/interfaces/libanjuta.idl:
	Fix #544190: Crash double click on item in stack trace


Modified:
   trunk/ChangeLog
   trunk/libanjuta/interfaces/libanjuta.idl
   trunk/plugins/debug-manager/breakpoints.c
   trunk/plugins/debug-manager/plugin.c

Modified: trunk/libanjuta/interfaces/libanjuta.idl
==============================================================================
--- trunk/libanjuta/interfaces/libanjuta.idl	(original)
+++ trunk/libanjuta/interfaces/libanjuta.idl	Tue Jul 22 20:07:39 2008
@@ -4424,14 +4424,14 @@
 	* IAnjutaDebugManager::location_changed:
 	* @obj: Self
 	* @address: program counter address, 0 when unknown
-	* @file: source file where is the program counter, NULL when unknown
+	* @uri: source file where is the program counter, NULL when unknown
 	* @line: line number if file name above is not NULL
 	* 
 	* This signal is emitted when the current location is changed. It is
 	* equal to the program location when the program stops but can be
 	* changed afterward by the user.
 	*/
-	void ::location_changed (gulong address, GFile* file, guint line);	
+	void ::location_changed (gulong address, const gchar* uri, guint line);	
 
 	/**
 	* IAnjutaDebugManager::signal_received:

Modified: trunk/plugins/debug-manager/breakpoints.c
==============================================================================
--- trunk/plugins/debug-manager/breakpoints.c	(original)
+++ trunk/plugins/debug-manager/breakpoints.c	Tue Jul 22 20:07:39 2008
@@ -1596,9 +1596,7 @@
 	{
 		BreakpointItem *bi;
 		gtk_tree_model_get (model, &iter, DATA_COLUMN, &bi, -1);
-		GFile* file = g_file_new_for_uri (bi->uri);
-		g_signal_emit_by_name (bd->plugin, "location-changed", bi->bp.address, file, bi->bp.line);
-		g_object_unref (file);
+		g_signal_emit_by_name (bd->plugin, "location-changed", bi->bp.address, bi->uri, bi->bp.line);
 	}
 }
 

Modified: trunk/plugins/debug-manager/plugin.c
==============================================================================
--- trunk/plugins/debug-manager/plugin.c	(original)
+++ trunk/plugins/debug-manager/plugin.c	Tue Jul 22 20:07:39 2008
@@ -560,16 +560,18 @@
 /* Called when the user want to go to another location */
 
 static void
-dma_plugin_location_changed (DebugManagerPlugin *self, gulong address, GFile* file, guint line)
+dma_plugin_location_changed (DebugManagerPlugin *self, gulong address, const gchar *uri, guint line)
 {
 	/* Go to location in editor */
-	if (file != NULL)
+	if (uri != NULL)
 	{
 		IAnjutaDocumentManager *docman;
         docman = anjuta_shell_get_interface (ANJUTA_PLUGIN(self)->shell, IAnjutaDocumentManager, NULL);
         if (docman)
         {
+			GFile *file = g_file_new_for_uri (uri);
 			ianjuta_document_manager_goto_file_line (docman, file, line, NULL);
+			g_object_unref (file);
         }
 	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]