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 678091 - [new roster] Display favorites in the top of the roster
[new roster] Display favorites in the top of the roster
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Contact List
2.33.x
Other Linux
: Normal enhancement
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2012-06-14 11:31 UTC by Guillaume Desmottes
Modified: 2012-06-15 11:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
roster-view: sort top contacts alphabetically (2.35 KB, patch)
2012-06-14 15:43 UTC, Guillaume Desmottes
committed Details | Review
roster-view: display favorite contacts at the top of the roster as well (4.65 KB, patch)
2012-06-14 15:43 UTC, Guillaume Desmottes
committed Details | Review
roster-view: display the favorite icon for the 'top' group (5.36 KB, patch)
2012-06-14 15:43 UTC, Guillaume Desmottes
committed Details | Review

Description Guillaume Desmottes 2012-06-14 11:31:21 UTC
My initial implementation doesn't support favorite contacts. Those should be displayed to the top of the roster with the most used contacts (even if I suspect they will already be there in most cases).
Comment 1 Guillaume Desmottes 2012-06-14 15:43:31 UTC
Created attachment 216425 [details] [review]
roster-view: sort top contacts alphabetically

We just want them to be on top but they should be sorted alphabetically
together, not by popularity. This makes the 'top' contacts more stable.
Comment 2 Guillaume Desmottes 2012-06-14 15:43:34 UTC
Created attachment 216426 [details] [review]
roster-view: display favorite contacts at the top of the roster as well

I renamed the group to 'Top Contacts' but I'm open to a better suggestion.
Comment 3 Guillaume Desmottes 2012-06-14 15:43:36 UTC
Created attachment 216427 [details] [review]
roster-view: display the favorite icon for the 'top' group
Comment 4 Danielle Madeley 2012-06-15 03:14:11 UTC
Review of attachment 216425 [details] [review]:

::: libempathy-gtk/empathy-roster-view.c
@@ +542,1 @@
+  if (top_a == top_b)

This took me a second to parse. Consider a comment?
Comment 5 Danielle Madeley 2012-06-15 03:16:26 UTC
Review of attachment 216426 [details] [review]:

++
Comment 6 Danielle Madeley 2012-06-15 03:18:15 UTC
Review of attachment 216427 [details] [review]:

::: libempathy-gtk/empathy-roster-group.c
@@ +97,3 @@
+
+  /* Icon, if any */
+  if (self->priv->icon_name)

Be explicit. Probably warrants a tp_str_empty() even.
Comment 7 Danielle Madeley 2012-06-15 03:19:01 UTC
Did we want to have a group for People Nearby still? They're not really part of your "contact list" per se.
Comment 8 Guillaume Desmottes 2012-06-15 11:06:51 UTC
(In reply to comment #4)
> Review of attachment 216425 [details] [review]:
> 
> ::: libempathy-gtk/empathy-roster-view.c
> @@ +542,1 @@
> +  if (top_a == top_b)
> 
> This took me a second to parse. Consider a comment?

added.

(In reply to comment #6)
> Review of attachment 216427 [details] [review]:
> 
> ::: libempathy-gtk/empathy-roster-group.c
> @@ +97,3 @@
> +
> +  /* Icon, if any */
> +  if (self->priv->icon_name)
> 
> Be explicit. Probably warrants a tp_str_empty() even.

good point. done.

(In reply to comment #7)
> Did we want to have a group for People Nearby still? They're not really part of
> your "contact list" per se.

I think so, I opened bug #678156.
Comment 9 Guillaume Desmottes 2012-06-15 11:19:29 UTC
Attachment 216425 [details] pushed as bed1c1b - roster-view: sort top contacts alphabetically
Attachment 216426 [details] pushed as a1e8643 - roster-view: display favorite contacts at the top of the roster as well
Attachment 216427 [details] pushed as 094e058 - roster-view: display the favorite icon for the 'top' group