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 766513 - Introduce the new Search Locations dialog
Introduce the new Search Locations dialog
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Search
git master
Other Linux
: Normal normal
: ---
Assigned To: Cosimo Cecchi
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-05-16 13:40 UTC by Felipe Borges
Modified: 2016-05-30 13:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
search: introduce the new Search Locations dialog (19.21 KB, patch)
2016-05-16 13:41 UTC, Felipe Borges
none Details | Review
screencast (105.29 KB, video/webm)
2016-05-16 13:46 UTC, Felipe Borges
  Details
search: introduce the new Search Locations dialog (19.62 KB, patch)
2016-05-27 13:03 UTC, Felipe Borges
none Details | Review
search: introduce the new Search Locations dialog (23.83 KB, patch)
2016-05-30 12:42 UTC, Felipe Borges
committed Details | Review

Description Felipe Borges 2016-05-16 13:40:46 UTC
Considering the new mockups at https://wiki.gnome.org/Design/SystemSettings/Search
Comment 1 Felipe Borges 2016-05-16 13:41:11 UTC
Created attachment 327977 [details] [review]
search: introduce the new Search Locations dialog

https://wiki.gnome.org/Design/SystemSettings/Search
Comment 2 Felipe Borges 2016-05-16 13:46:29 UTC
Created attachment 327979 [details]
screencast
Comment 3 Bastien Nocera 2016-05-26 13:18:26 UTC
Review of attachment 327977 [details] [review]:

You seem to have lost the sorting, is that expected?

::: panels/search/cc-search-locations-dialog.c
@@ +614,2 @@
   gtk_widget_show (list_box);
+  /* FIXME: do not query for places everytime */

Want to fix that before pushing?
Comment 4 Felipe Borges 2016-05-26 13:31:43 UTC
(In reply to Bastien Nocera from comment #3)
> Review of attachment 327977 [details] [review] [review]:
> 
> You seem to have lost the sorting, is that expected?

Yes, I guess we don't want that for the XDG locations. What do you think?

> 
> ::: panels/search/cc-search-locations-dialog.c
> @@ +614,2 @@
>    gtk_widget_show (list_box);
> +  /* FIXME: do not query for places everytime */
> 
> Want to fix that before pushing?

I will do it.
Comment 5 Felipe Borges 2016-05-27 13:03:57 UTC
Created attachment 328639 [details] [review]
search: introduce the new Search Locations dialog

https://wiki.gnome.org/Design/SystemSettings/Search
Comment 6 Bastien Nocera 2016-05-27 13:18:42 UTC
(In reply to Felipe Borges from comment #4)
> (In reply to Bastien Nocera from comment #3)
> > Review of attachment 327977 [details] [review] [review] [review]:
> > 
> > You seem to have lost the sorting, is that expected?
> 
> Yes, I guess we don't want that for the XDG locations. What do you think?

Not sure. Is that sorted in the nautilus/file-chooser sidebars? We'd want to do the same. Is that what you implemented?
Comment 7 Felipe Borges 2016-05-27 13:34:10 UTC
(In reply to Bastien Nocera from comment #6)
> (In reply to Felipe Borges from comment #4)
> > (In reply to Bastien Nocera from comment #3)
> > > Review of attachment 327977 [details] [review] [review] [review] [review]:
> > > 
> > > You seem to have lost the sorting, is that expected?
> > 
> > Yes, I guess we don't want that for the XDG locations. What do you think?
> 
> Not sure. Is that sorted in the nautilus/file-chooser sidebars? We'd want to
> do the same. Is that what you implemented?

Yes, I forgot to mention that. Nautilus doesn't sort them (it appends new items), but it allows the user to reorder the rows by drag & drop.
Comment 8 Bastien Nocera 2016-05-27 17:00:51 UTC
Review of attachment 328639 [details] [review]:

I still don't see the sorting, did you upload an older version?

::: panels/search/cc-search-locations-dialog.c
@@ +619,3 @@
+  places = get_places_list ();
+
+  list_box = GTK_WIDGET (gtk_builder_get_object (dialog_builder, "places-list"));

Do you want to use templates instead?

@@ +634,2 @@
   widget = GTK_WIDGET (gtk_builder_get_object (dialog_builder, "locations_add"));
+

Whitespace change.
Comment 9 Felipe Borges 2016-05-30 12:42:45 UTC
Created attachment 328725 [details] [review]
search: introduce the new Search Locations dialog

https://wiki.gnome.org/Design/SystemSettings/Search
Comment 10 Bastien Nocera 2016-05-30 12:55:02 UTC
Review of attachment 328725 [details] [review]:

Looks good otherwise.

::: panels/search/cc-search-locations-dialog.c
@@ +560,2 @@
   place->cancellable = g_cancellable_new ();
+  g_file_query_info_async (place->location, "standard::display-name",

G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME

@@ +575,2 @@
   places = get_places_list ();
+

Whitespace change. Try adding:
[color]
        ui = auto
to your ~/.gitconfig, which will show those trailing whitespaces.
Comment 11 Felipe Borges 2016-05-30 13:29:14 UTC
(In reply to Bastien Nocera from comment #10)
> Review of attachment 328725 [details] [review] [review]:
> 
> @@ +575,2 @@
>    places = get_places_list ();
> +
> 
> Whitespace change. Try adding:
> [color]
>         ui = auto
> to your ~/.gitconfig, which will show those trailing whitespaces.

Thanks for the tip.

Attachment 328725 [details] pushed as f473ec4 - search: introduce the new Search Locations dialog