Commit f73c771a authored by António Fernandes's avatar António Fernandes 🐚

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
parent ef6068ad
......@@ -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
......
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