[anjuta] project manager : replace incorrect g_file_new_for_path
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] project manager : replace incorrect g_file_new_for_path
- Date: Fri, 29 Jul 2011 14:10:39 +0000 (UTC)
commit 2258be0547d80ec103b109194b10da2dac4ce933
Author: Alban Browaeys <prahal yahoo com>
Date: Thu Jul 7 07:33:19 2011 +0200
project manager : replace incorrect g_file_new_for_path
We have an uri so replace g_file_new_for_path by
g_file_new_for_uri.
plugins/project-manager/plugin.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/plugins/project-manager/plugin.c b/plugins/project-manager/plugin.c
index 5679372..21b9a5c 100644
--- a/plugins/project-manager/plugin.c
+++ b/plugins/project-manager/plugin.c
@@ -440,9 +440,9 @@ on_new_group (GtkAction *action, ProjectManagerPlugin *plugin)
if (plugin->current_editor_uri)
{
- gchar *path = g_path_get_dirname (plugin->current_editor_uri);
- default_group = g_file_new_for_path (path);
- g_free (path);
+ gchar *uri = g_path_get_dirname (plugin->current_editor_uri);
+ default_group = g_file_new_for_uri (uri);
+ g_free (uri);
}
group =
@@ -495,9 +495,9 @@ on_new_target (GtkAction *action, ProjectManagerPlugin *plugin)
if (plugin->current_editor_uri)
{
- gchar *path = g_path_get_dirname (plugin->current_editor_uri);
- default_group = g_file_new_for_path (path);
- g_free (path);
+ gchar *uri = g_path_get_dirname (plugin->current_editor_uri);
+ default_group = g_file_new_for_uri (uri);
+ g_free (uri);
}
target =
@@ -517,9 +517,9 @@ on_add_source (GtkAction *action, ProjectManagerPlugin *plugin)
if (plugin->current_editor_uri)
{
- gchar *path = g_path_get_dirname (plugin->current_editor_uri);
- default_group = g_file_new_for_path (path);
- g_free (path);
+ gchar *uri = g_path_get_dirname (plugin->current_editor_uri);
+ default_group = g_file_new_for_uri (uri);
+ g_free (uri);
source_uri = plugin->current_editor_uri;
}
source =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]