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().
This commit is contained in:
parent
e6a81811f9
commit
c92959a448
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2005-08-15 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtksizegroup.c: Use object data to mark widgets and
|
* gtk/gtksizegroup.c: Use object data to mark widgets and
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2005-08-15 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtksizegroup.c: Use object data to mark widgets and
|
* gtk/gtksizegroup.c: Use object data to mark widgets and
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2005-08-15 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtksizegroup.c: Use object data to mark widgets and
|
* gtk/gtksizegroup.c: Use object data to mark widgets and
|
||||||
|
@ -33,7 +33,6 @@
|
|||||||
#else
|
#else
|
||||||
#include <utime.h>
|
#include <utime.h>
|
||||||
#endif
|
#endif
|
||||||
#include <libgen.h>
|
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
@ -343,12 +342,13 @@ follow_links (const gchar *path)
|
|||||||
|
|
||||||
if (target)
|
if (target)
|
||||||
{
|
{
|
||||||
if (target[0] == '/')
|
if (g_path_is_absolute (target))
|
||||||
path2 = target;
|
path2 = target;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
d = dirname (path2);
|
d = g_path_get_dirname (path2);
|
||||||
s = g_build_path ("/", d, target, NULL);
|
s = g_build_filename (d, target, NULL);
|
||||||
|
g_free (d);
|
||||||
g_free (target);
|
g_free (target);
|
||||||
g_free (path2);
|
g_free (path2);
|
||||||
path2 = s;
|
path2 = s;
|
||||||
|
Loading…
Reference in New Issue
Block a user