Commit c92959a4 authored by Tor Lillqvist's avatar Tor Lillqvist Committed by Tor Lillqvist

Use g_path_get_dirname() instead of the nonportable <libgen.h> and

2005-08-15  Tor Lillqvist  <tml@novell.com>

	* gtk/updateiconcache.c: Use g_path_get_dirname() instead of
	the nonportable <libgen.h> and dirname().
parent e6a81811
2005-08-15 Tor Lillqvist <tml@novell.com>
* gtk/updateiconcache.c: Use g_path_get_dirname() instead of
the nonportable <libgen.h> and dirname().
2005-08-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksizegroup.c: Use object data to mark widgets and
......
2005-08-15 Tor Lillqvist <tml@novell.com>
* gtk/updateiconcache.c: Use g_path_get_dirname() instead of
the nonportable <libgen.h> and dirname().
2005-08-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksizegroup.c: Use object data to mark widgets and
......
2005-08-15 Tor Lillqvist <tml@novell.com>
* gtk/updateiconcache.c: Use g_path_get_dirname() instead of
the nonportable <libgen.h> and dirname().
2005-08-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksizegroup.c: Use object data to mark widgets and
......
......@@ -33,7 +33,6 @@
#else
#include <utime.h>
#endif
#include <libgen.h>
#include <glib.h>
#include <glib/gstdio.h>
......@@ -343,12 +342,13 @@ follow_links (const gchar *path)
if (target)
{
if (target[0] == '/')
path2 = target;
if (g_path_is_absolute (target))
path2 = target;
else
{
d = dirname (path2);
s = g_build_path ("/", d, target, NULL);
d = g_path_get_dirname (path2);
s = g_build_filename (d, target, NULL);
g_free (d);
g_free (target);
g_free (path2);
path2 = s;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment