openbsd-ports/x11/xdg-user-dirs-gtk/patches/patch-parse_c
ajacoutot a77597f147 Import xdg-user-dirs-gtk-0.8
xdg-user-dirs-gtk is a companion to xdg-user-dirs that integrates it
into the GNOME desktop and Gtk+ applications.

It gets run during login and does two things:
* Tracks changes of locale and prompts the user so the directories can
  be changed.
* Creates a default gtk bookmarks file if there is none, based on a set
  of xdg user dirs.

Thanks to landry@ for figuring out the weird way this was supposed to
work.
2009-06-12 16:01:30 +00:00

49 lines
1.5 KiB
Plaintext

$OpenBSD: patch-parse_c,v 1.1.1.1 2009/06/12 16:01:30 ajacoutot Exp $
--- parse.c.orig Fri Apr 10 11:18:27 2009
+++ parse.c Fri Apr 10 11:19:21 2009
@@ -9,7 +9,7 @@ parse_xdg_dirs_locale (void)
locale = NULL;
file = g_build_filename (g_get_user_config_dir (),
- "user-dirs.locale", NULL);
+ "user-dirs.locale", (char *)NULL);
if (g_file_get_contents (file, &content, NULL, NULL))
locale = g_strchug (g_strchomp (content));
g_free (file);
@@ -35,7 +35,7 @@ parse_xdg_dirs (const char *config_file)
if (config_file == NULL)
{
config_file_free = g_build_filename (g_get_user_config_dir (),
- "user-dirs.dirs", NULL);
+ "user-dirs.dirs", (char *)NULL);
config_file = (const char *)config_file_free;
}
@@ -94,7 +94,7 @@ parse_xdg_dirs (const char *config_file)
dir.type = g_strdup (type_start);
if (relative)
{
- dir.path = g_build_filename (g_get_home_dir (), unescaped, NULL);
+ dir.path = g_build_filename (g_get_home_dir (), unescaped, (char *)NULL);
g_free (unescaped);
}
else
@@ -126,7 +126,7 @@ parse_gtk_bookmarks (const char *filename)
{
filename_free = g_build_filename (g_get_home_dir (),
".gtk-bookmarks",
- NULL);
+ (char *)NULL);
filename = (const char *)filename_free;
}
@@ -180,7 +180,7 @@ save_gtk_bookmarks (const char *filename,
{
filename_free = g_build_filename (g_get_home_dir (),
".gtk-bookmarks",
- NULL);
+ (char *)NULL);
filename = (const char *)filename_free;
}