mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-09-13 13:01:25 +00:00
bookmark: Clean up get_is_builtin
Now that we don't check for icons on desktop, there is no need for a separate "if" block. Instead, make it closer to equivalent code in gtk/gtkbookmarksmanager.c
This commit is contained in:
parent
ef6068adf4
commit
f73c771a02
|
@ -212,12 +212,9 @@ nautilus_bookmark_get_is_builtin (NautilusBookmark *bookmark)
|
|||
}
|
||||
|
||||
/* exclude XDG locations which are not in our builtin list */
|
||||
if (xdg_type == G_USER_DIRECTORY_DESKTOP)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return (xdg_type != G_USER_DIRECTORY_TEMPLATES) && (xdg_type != G_USER_DIRECTORY_PUBLIC_SHARE);
|
||||
return (xdg_type != G_USER_DIRECTORY_DESKTOP) &&
|
||||
(xdg_type != G_USER_DIRECTORY_TEMPLATES) &&
|
||||
(xdg_type != G_USER_DIRECTORY_PUBLIC_SHARE);
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
|
Loading…
Reference in a new issue