[nautilus/189-recent-can-be-bookmarked] bookmark: Clean up get_is_builtin
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/189-recent-can-be-bookmarked] bookmark: Clean up get_is_builtin
- Date: Thu, 4 Jan 2018 18:36:36 +0000 (UTC)
commit f73c771a02c6342f684e6f526aad2ec416a317b4
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 a
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]