anjuta r3570 - in trunk: . plugins/search
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r3570 - in trunk: . plugins/search
- Date: Sat, 2 Feb 2008 08:56:55 +0000 (GMT)
Author: jhs
Date: Sat Feb 2 08:56:54 2008
New Revision: 3570
URL: http://svn.gnome.org/viewvc/anjuta?rev=3570&view=rev
Log:
2008-02-02 Johannes Schmid <jhs gnome org>
* plugins/search/search-replace.c: (on_message_clicked):
Pass and uri ianjuta_document_manager_goto_file_line_mark() to
fix clicking on search result messages
Modified:
trunk/ChangeLog
trunk/plugins/search/search-replace.c
Modified: trunk/plugins/search/search-replace.c
==============================================================================
--- trunk/plugins/search/search-replace.c (original)
+++ trunk/plugins/search/search-replace.c Sat Feb 2 08:56:54 2008
@@ -23,6 +23,7 @@
#include <gnome.h>
#include <glade/glade.h>
+#include <libgnomevfs/gnome-vfs.h>
#include <libanjuta/anjuta-utils.h>
#include <libanjuta/anjuta-plugin.h>
@@ -687,6 +688,7 @@
{
gchar *ptr, *ptr2;
gchar *path, *nline;
+ gchar *uri;
gint line;
if (!(ptr = g_strstr_len(message, strlen(message), ":")) )
@@ -698,8 +700,10 @@
return FALSE;
nline = g_strndup(ptr, ptr2 - ptr);
line = atoi(nline);
-
- ianjuta_document_manager_goto_file_line_mark (sr->docman, path, line, TRUE, NULL);
+
+ uri = gnome_vfs_get_uri_from_local_path (path);
+ ianjuta_document_manager_goto_file_line_mark (sr->docman, uri, line, TRUE, NULL);
+ g_free(uri);
g_free(path);
g_free(nline);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]