[nautilus/wip/antoniof/bookmarking-clean] bookmark: Clean up get_is_builtin
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/bookmarking-clean] bookmark: Clean up get_is_builtin
- Date: Thu, 4 Jan 2018 02:09:15 +0000 (UTC)
commit 8517cbf3904b35d3e082414c7e7944793ab2516d
Author: António Fernandes <antoniof gnome org>
Date: Thu Jan 4 01:48:50 2018 +0000
bookmark: Clean up get_is_builtin
Now that we don't check for icons on desktop, there is no need for an
separate "if" block.
Instead, make it closer to equivalent code in gtk/gtkbookmarksmanager.c
src/nautilus-bookmark.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/nautilus-bookmark.c b/src/nautilus-bookmark.c
index 1b2e58003..6c731d42b 100644
--- a/src/nautilus-bookmark.c
+++ b/src/nautilus-bookmark.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]