From ef8ecf96d13fc3765c6074791778c0717a51bda9 Mon Sep 17 00:00:00 2001 From: George Lebl Date: Thu, 14 Sep 2000 23:44:02 +0000 Subject: use g_path_get_dirname instead of g_dirname Thu Sep 14 18:45:00 2000 George Lebl * gnome-ditem.c: use g_path_get_dirname instead of g_dirname --- libgnome-desktop/gnome-desktop-item.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgnome-desktop/gnome-desktop-item.c b/libgnome-desktop/gnome-desktop-item.c index b2258754..38b9ac61 100644 --- a/libgnome-desktop/gnome-desktop-item.c +++ b/libgnome-desktop/gnome-desktop-item.c @@ -391,7 +391,7 @@ ditem_gnome_load (const char *data_file, GnomeDesktopItemLoadFlags flags, FILE *fh; char *dn; - dn = g_dirname(data_file); + dn = g_path_get_dirname(data_file); g_snprintf(confpath, sizeof(confpath), "%s/.order", dn); g_free(dn); @@ -689,7 +689,7 @@ gnome_desktop_item_save (GnomeDesktopItem *item, const char *under) if(item->item_flags & GNOME_DESKTOP_ITEM_IS_DIRECTORY && item->item_format == GNOME_DESKTOP_ITEM_GNOME) { FILE *fh; - char *dir = g_dirname(item->location); + char *dir = g_path_get_dirname(item->location); g_snprintf(fnbuf, sizeof(fnbuf), "%s/.order", dir); -- cgit v1.2.1