After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 785176 - Add an item for favorite files in the GtkPlacesSidebar
Add an item for favorite files in the GtkPlacesSidebar
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 786367
 
 
Reported: 2017-07-20 15:35 UTC by Alexandru Pandelea
Modified: 2017-11-05 20:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
placessidebar: add starred location item (8.84 KB, patch)
2017-07-20 15:36 UTC, Alexandru Pandelea
none Details | Review
placessidebar: add starred location item (8.86 KB, patch)
2017-08-17 08:59 UTC, Alexandru Pandelea
none Details | Review
placessidebar: add starred location item (8.86 KB, patch)
2017-08-18 13:17 UTC, Alexandru Pandelea
none Details | Review
placessidebar: add starred location item (8.73 KB, patch)
2017-08-18 13:22 UTC, Alexandru Pandelea
none Details | Review
The patch, updated to gtk-3-22 git. (8.77 KB, patch)
2017-11-05 16:01 UTC, Carlos Garnacho
committed Details | Review

Description Alexandru Pandelea 2017-07-20 15:35:33 UTC
see patch.
Comment 1 Alexandru Pandelea 2017-07-20 15:36:06 UTC
Created attachment 356054 [details] [review]
placessidebar: add starred location item

Add an item for showing all files marked as favorite. This item will
open all files that have the nao:preddefined-tag-favorite tag
Comment 2 Matthias Clasen 2017-08-16 17:49:21 UTC
Review of attachment 356054 [details] [review]:

Is it really preddefined-tag-favorite, or i the duplicate d a typo ?
Comment 3 Alexandru Pandelea 2017-08-17 08:58:59 UTC
(In reply to Matthias Clasen from comment #2)
> Review of attachment 356054 [details] [review] [review]:
> 
> Is it really preddefined-tag-favorite, or i the duplicate d a typo ?

it is a typo in the commit message
Comment 4 Alexandru Pandelea 2017-08-17 08:59:52 UTC
Created attachment 357775 [details] [review]
placessidebar: add starred location item

Add an item for showing all files marked as favorite. This item will
open all files that have the nao:predefined-tag-favorite tag
Comment 5 Matthias Clasen 2017-08-18 12:48:24 UTC
Review of attachment 357775 [details] [review]:

Just minor fixes needed, looks fine to me in general.

::: gtk/gtkplacessidebar.c
@@ +4492,3 @@
+   * files have nao:predefined-tag-favorite
+   *
+   * Since: ...

the last sentence appears a bit incomplete. It should probably say something like:

In GNOME, starred files are implemented by setting the nao:predefined-tag-favorite tag
in the tracker database.

Since: should state the precise version in this case, e.g. 3.22.19

@@ +5331,3 @@
+ * Sets whether the @sidebar should show an item for entering a location;
+ * this is off by default. An application may want to turn this on if manually
+ * entering URLs is an expected user action.

Looks like a copy-pasted text from a different property - what does stars have to do with entering urls ?

@@ +5336,3 @@
+ * #GtkPlacesSidebar::show-starred-location signal.
+ *
+ * Since: ...

Since: 3.22.19

@@ +5361,3 @@
+ * Returns: %TRUE if the sidebar will display a Starred item.
+ *
+ * Since: ...

3.22.19

::: gtk/gtkplacessidebar.h
@@ +151,3 @@
 gboolean             gtk_places_sidebar_get_show_other_locations (GtkPlacesSidebar   *sidebar);
 
+//GDK_AVAILABLE_IN_3_...

This needs to be uncommented, and should probably just be 3_22, since we don't have more precise macros
Comment 6 Alexandru Pandelea 2017-08-18 13:17:13 UTC
Created attachment 357896 [details] [review]
placessidebar: add starred location item

Add an item for showing all files marked as favorite. This item will
open all files that have the nao:predefined-tag-favorite tag
Comment 7 Alexandru Pandelea 2017-08-18 13:22:19 UTC
Created attachment 357897 [details] [review]
placessidebar: add starred location item

Add an item for showing all files marked as favorite. This item will
open all files that have the nao:predefined-tag-favorite tag
Comment 8 Matthias Clasen 2017-08-18 21:51:27 UTC
Review of attachment 357897 [details] [review]:

thanks for the cleanups, looks ok now.
Comment 9 Carlos Garnacho 2017-11-05 16:01:37 UTC
Created attachment 363018 [details] [review]
The patch, updated to gtk-3-22 git.

placessidebar: add starred location item

Add an item for showing all files marked as favorite. This item will
open all files that have the nao:predefined-tag-favorite tag
Comment 10 Carlos Garnacho 2017-11-05 20:08:41 UTC
Pushed to gtk-3-22 and master