Index: main-menu/src/main-menu-ui.c
===================================================================
--- main-menu/src/main-menu-ui.c	(Revision 560)
+++ main-menu/src/main-menu-ui.c	(Arbeitskopie)
@@ -2316,7 +2316,7 @@
 		if (GTK_WIDGET (button) == priv->more_buttons [APPS_PAGE])
 			ditem_id = libslab_get_gconf_value (APP_BROWSER_GCONF_KEY);
 		else if (GTK_WIDGET (button) == priv->more_buttons [DOCS_PAGE]) {
-			dir = g_build_filename (g_get_home_dir (), "Documents", NULL);
+			dir = g_get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS);

 			if (! g_file_test (dir, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR))
 				dir = g_strdup (g_get_home_dir ());
Index: ChangeLog
===================================================================
--- ChangeLog	(Revision 560)
+++ ChangeLog	(Arbeitskopie)
@@ -1,3 +1,10 @@
+2009-04-08  Julian Andres Klode <jak@debian.org>
+
+	* main-menu/src/main-menu-ui.c
+	* libslab/bookmark-agent:
+	Use g_get_user_special_dir() instead of hard coding paths like Desktop
+	or Documents. This means it can now integrate with xdg-user-dirs.
+
 2009-01-26  Magnus Boman  <captain.magnus@gmail.com>

 	* application-browser/etc/application-browser.desktop.in.in:
Index: libslab/bookmark-agent.c
===================================================================
--- libslab/bookmark-agent.c	(Revision 560)
+++ libslab/bookmark-agent.c	(Arbeitskopie)
@@ -1070,7 +1070,7 @@


 	if (! (strcmp (uri, "BLANK_SPREADSHEET") && strcmp (uri, "BLANK_DOCUMENT"))) {
-		dir = g_build_filename (g_get_home_dir (), "Documents", NULL);
+		dir = g_get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS);

 		if (! strcmp (uri, "BLANK_SPREADSHEET")) {
 			g_bookmark_file_set_title (priv->store, uri, "BLANK_SPREADSHEET");
@@ -1136,13 +1136,13 @@
 		icon    = "gnome-fs-home";
 	}
 	else if (! strcmp (uri, "DOCUMENTS")) {
-		path = g_build_filename (g_get_home_dir (), "Documents", NULL);
+		path = g_get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS);
 		name = _("Documents");
 		uri_new = g_filename_to_uri (path, NULL, NULL);
 		g_free (path);
 	}
 	else if (! strcmp (uri, "DESKTOP")) {
-		path = g_build_filename (g_get_home_dir (), "Desktop", NULL);
+		path = g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP);
 		name = _("Desktop");
 		uri_new = g_filename_to_uri (path, NULL, NULL);
 		icon = "gnome-fs-desktop";
