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:
António Fernandes 2018-01-04 01:48:50 +00:00
parent ef6068adf4
commit f73c771a02

View file

@ -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