anjuta r4448 - in trunk: . plugins/file-loader
- From: sgranjoux svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4448 - in trunk: . plugins/file-loader
- Date: Sun, 14 Dec 2008 21:15:38 +0000 (UTC)
Author: sgranjoux
Date: Sun Dec 14 21:15:38 2008
New Revision: 4448
URL: http://svn.gnome.org/viewvc/anjuta?rev=4448&view=rev
Log:
* plugins/file-loader/plugin.c:
Fix a regression due to patch for #564377, files were not reopened
when Anjuta restart
Modified:
trunk/ChangeLog
trunk/plugins/file-loader/plugin.c
Modified: trunk/plugins/file-loader/plugin.c
==============================================================================
--- trunk/plugins/file-loader/plugin.c (original)
+++ trunk/plugins/file-loader/plugin.c Sun Dec 14 21:15:38 2008
@@ -1132,9 +1132,20 @@
strcmp (mime_type, "application/x-anjuta") != 0))
{
/* Then rest of the files */
+ gchar *fragment = strchr (uri, '#');
+
+ if (fragment)
+ *fragment = '\0';
GFile* file = g_file_new_for_uri (uri);
- ianjuta_file_loader_load (IANJUTA_FILE_LOADER (plugin),
+ GObject *loader = ianjuta_file_loader_load (IANJUTA_FILE_LOADER (plugin),
file, FALSE, NULL);
+ if (fragment)
+ {
+ if (IANJUTA_IS_DOCUMENT_MANAGER (loader))
+ {
+ ianjuta_document_manager_goto_file_line (IANJUTA_DOCUMENT_MANAGER (loader), file, atoi(fragment + 1), NULL);
+ }
+ }
g_object_unref (file);
}
g_free (filename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]