[dia] GLib deprecations: s/g_dirname/g_path_get_dirname/
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Subject: [dia] GLib deprecations: s/g_dirname/g_path_get_dirname/
- Date: Sun, 28 Jun 2009 17:57:55 +0000 (UTC)
commit 9d01d70a019efbc79a9a7313440113ba7b31f288
Author: Hans Breuer <hans breuer org>
Date: Sun Jun 28 19:57:26 2009 +0200
GLib deprecations: s/g_dirname/g_path_get_dirname/
plug-ins/xslt/xslt.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/xslt/xslt.c b/plug-ins/xslt/xslt.c
index 976ecc8..dff91d1 100644
--- a/plug-ins/xslt/xslt.c
+++ b/plug-ins/xslt/xslt.c
@@ -79,7 +79,9 @@ xslt_ok(void)
char *params[] = { "directory", NULL, NULL };
xsltStylesheetPtr style, codestyle;
xmlDocPtr doc, res;
- gchar *uri = g_filename_to_uri (g_dirname(filename), NULL, NULL);
+ gchar *directory = g_path_get_dirname(filename);
+ gchar *uri = g_filename_to_uri (directory, NULL, NULL);
+ g_free (directory);
/* strange: requires an uri, but the last char is platform specifc?! */
params[1] = g_strconcat("'", uri, G_DIR_SEPARATOR_S, "'", NULL);
@@ -237,7 +239,7 @@ static PluginInitResult read_configuration(const char *config)
return DIA_PLUGIN_INIT_ERROR;
}
- path = g_dirname(config);
+ path = g_path_get_dirname(config);
/* We don't care about the top level element's name */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]