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 605309 - Show the status of accounts in the treeview
Show the status of accounts in the treeview
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Accounts
2.29.x
Other Linux
: Normal enhancement
: ---
Assigned To: Felix Kaser
: 607787 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-12-23 15:00 UTC by Guillaume Desmottes
Modified: 2011-08-29 10:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
http://git.collabora.co.uk/?p=user/cassidy/empathy;a=shortlog;h=refs/heads/accounts-status-605309 (6.06 KB, patch)
2010-01-15 13:01 UTC, Guillaume Desmottes
reviewed Details | Review

Description Guillaume Desmottes 2009-12-23 15:00:35 UTC
Now that bug #599153 is fixed when can see the status of an accout by clicking on it.
It would be good to be able to see the status of *all* the accounts at once by adding a status icon in the accounts treeview.
Comment 1 Guillaume Desmottes 2010-01-15 13:01:27 UTC
Created attachment 151467 [details] [review]
http://git.collabora.co.uk/?p=user/cassidy/empathy;a=shortlog;h=refs/heads/accounts-status-605309

 src/empathy-accounts-dialog.c |  130 ++++++++++++++++++++++++++++++++---------
 1 files changed, 103 insertions(+), 27 deletions(-)
Comment 2 Cosimo Cecchi 2010-01-16 01:39:14 UTC
Review of attachment 151467 [details] [review]:

I inlined some comments; other than that, looks good to me.

::: src/empathy-accounts-dialog.c
@@ +801,3 @@
+        return GTK_STOCK_DIALOG_ERROR;
+
+        presence = TP_CONNECTION_PRESENCE_TYPE_OFFLINE;

This line is never reached; either you return the error icon or the offline one I guess (I think the former is better).

@@ +806,3 @@
+    {
+      /* Account is connecting. Display a blinking account alternating between
+       * the offline icon and the requested presence. */

In this case, I think it's better to show a blinking sensitive/insensitive icon for the requested presence, as changing an icon on the fly while blinking does not look very good IMO.
Comment 3 Guillaume Desmottes 2010-01-18 11:18:41 UTC
(In reply to comment #2)
> Review of attachment 151467 [details] [review]:
> ::: src/empathy-accounts-dialog.c
> @@ +801,3 @@
> +        return GTK_STOCK_DIALOG_ERROR;
> +
> +        presence = TP_CONNECTION_PRESENCE_TYPE_OFFLINE;
> 
> This line is never reached; either you return the error icon or the offline one
> I guess (I think the former is better).

Actually it is. If the account is enabled but offline (because your presence is set to offline) we should display the offline icon, not the error one.
But the identation was wrong, I fixed it.
Comment 4 Guillaume Desmottes 2010-01-18 11:18:51 UTC
> @@ +806,3 @@
> +    {
> +      /* Account is connecting. Display a blinking account alternating between
> +       * the offline icon and the requested presence. */
> 
> In this case, I think it's better to show a blinking sensitive/insensitive icon
> for the requested presence, as changing an icon on the fly while blinking does
> not look very good IMO.

I never really like the sensitive/unsensitive blinking of the protocol icon and find it not very easy to see and understand. I tried this approach which seems clearer to me to see how it goes.
But I'm ready to be convinced that's your solution is actually better. What the other people think?
Comment 5 Felix Kaser 2010-01-18 11:55:42 UTC
what about showing a tiny spinner while connecting? Just like its done in the infobar...

(I don't like blinking at all ;) )
Comment 6 Guillaume Desmottes 2010-01-18 12:10:42 UTC
(In reply to comment #5)
> what about showing a tiny spinner while connecting? Just like its done in the
> infobar...

That's currently not possible as there is no widget inheriting from GtkCellRenderer implemeting a spinner.

I discussed IRL with Sjoerd and he agreed that switching icon is clearer than greying.
Comment 7 Guillaume Desmottes 2010-01-18 14:01:24 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 8 Guillaume Desmottes 2010-01-22 17:48:56 UTC
*** Bug 607787 has been marked as a duplicate of this bug. ***
Comment 9 Omer Akram 2010-01-22 17:55:06 UTC
is it fixed in 2.29.5?
Comment 10 Omer Akram 2010-01-22 17:55:59 UTC
I am using 2.29.5 but I don't seem to know where it is fixed
Comment 11 Guillaume Desmottes 2010-01-25 10:32:07 UTC
That will be in 2.29.6 which should be released today.