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 612523 - display protocol names for configured accounts in the debug window
display protocol names for configured accounts in the debug window
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: General
2.29.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2010-03-11 00:57 UTC by Danielle Madeley
Modified: 2011-08-29 10:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
simple patch (4.35 KB, patch)
2010-03-11 01:01 UTC, Danielle Madeley
reviewed Details | Review
updated patch (6.78 KB, patch)
2010-05-29 04:16 UTC, Danielle Madeley
reviewed Details | Review

Description Danielle Madeley 2010-03-11 00:57:34 UTC
The CM names: gabble, salut, etc. are not super useful to people who aren't familiar with Telepathy. The names of protocols configured to use those CMs should be retrieved from the Account Manager.
Comment 1 Danielle Madeley 2010-03-11 01:01:48 UTC
Created attachment 155815 [details] [review]
simple patch

http://git.collabora.co.uk/?p=user/danni/empathy.git;a=shortlog;h=refs/heads/debug-get-protocols-612523

This is a simple patch, it adds the protocol name for any account in the AM using that CM for the protocol. It doesn't track new accounts.

Dropdown looks something like:
[                    |v]
 [ Empathy            ]
 [ mission-control    ]
 [ gabble (jabber)    ]
 [ salut (link-local) ]
 [ haze (msn, yahoo)  ]
Comment 2 Guillaume Desmottes 2010-03-11 09:16:37 UTC
Review of attachment 155815 [details] [review]:

I like the idea but this will have to wait as that's an UI change and I'm tired of asking for exceptions. :)

::: src/empathy-debug-window.c
@@ +562,3 @@
 }
 
+static char *

why not gchar * ?
Comment 3 Danielle Madeley 2010-05-29 04:16:25 UTC
Created attachment 162254 [details] [review]
updated patch

This is an updated patch that rebases against Empathy master, fixes the debugger now being a separate process and fixes the review comment. It also moves code from constructor() to constructed() [why wasn't it constructed() in the first place?].
Comment 4 Guillaume Desmottes 2010-06-01 08:45:19 UTC
Posting manually my review comments as the review tool seems to be broken :\

You should include the bug number in your commit message.


get_cm_protocols (const char *cm_name)
Maybe rename it to something like get_cm_display_name or something as it does more than returning the protocols.


TpAccountManager *am = tp_account_manager_dup ();
Why not reuse priv->am ?


g_return_val_if_fail (tp_account_manager_is_prepared (am,
	        TP_ACCOUNT_MANAGER_FEATURE_CORE), NULL);
Isn't that racy?
Comment 5 Danielle Madeley 2010-06-02 01:14:17 UTC
Fixed per comments and merged.