mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Only show Desktop in file chooser button if there is one
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=632894
This commit is contained in:
parent
6e6b82abb9
commit
6a80d40154
@ -1709,7 +1709,10 @@ model_add_special (GtkFileChooserButton *button)
|
|||||||
|
|
||||||
desktopdir = g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP);
|
desktopdir = g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP);
|
||||||
|
|
||||||
if (desktopdir)
|
/* "To disable a directory, point it to the homedir."
|
||||||
|
* See http://freedesktop.org/wiki/Software/xdg-user-dirs
|
||||||
|
**/
|
||||||
|
if (g_strcmp0 (desktopdir, g_get_home_dir ()) != 0)
|
||||||
{
|
{
|
||||||
GtkTreePath *tree_path;
|
GtkTreePath *tree_path;
|
||||||
GCancellable *cancellable;
|
GCancellable *cancellable;
|
||||||
|
Loading…
Reference in New Issue
Block a user