Commit 7ca24091 authored by Christian Dywan's avatar Christian Dywan Committed by Tristan Van Berkom

Only show Desktop in file chooser button if there is one

parent d2b64a1d
......@@ -1685,7 +1685,10 @@ model_add_special (GtkFileChooserButton *button)
desktopdir = g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP);
if (desktopdir)
/* "To disable a directory, point it to the homedir."
* See
if (g_strcmp0 (desktopdir, g_get_home_dir ()) != 0)
GtkTreePath *tree_path;
GCancellable *cancellable;
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