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 593054 - By default, the display name of an account should be set to the username.
By default, the display name of an account should be set to the username.
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Accounts
2.27.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
Depends on:
Blocks:
 
 
Reported: 2009-08-25 18:50 UTC by Jonathan Tellier
Modified: 2009-08-31 13:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Branch containing the proposed fix: http://git.collabora.co.uk/?p=user/jtellier/empathy.git;a=shortlog;h=refs/heads/set-account-name (3.48 KB, patch)
2009-08-25 18:50 UTC, Jonathan Tellier
reviewed Details | Review
Updated patch (3.56 KB, patch)
2009-08-26 18:46 UTC, Jonathan Tellier
none Details | Review
Updated patch (4.36 KB, patch)
2009-08-26 19:42 UTC, Jonathan Tellier
reviewed Details | Review
Fixed patch (5.13 KB, patch)
2009-08-27 13:21 UTC, Jonathan Tellier
committed Details | Review
Branch containing the proposed fix: http://git.collabora.co.uk/?p=user/jtellier/empathy.git;a=shortlog;h=refs/heads/set-account-name-translator-hint (869 bytes, patch)
2009-08-27 17:37 UTC, Jonathan Tellier
committed Details | Review

Description Jonathan Tellier 2009-08-25 18:50:01 UTC
When an account has been successfully created, its display name in the account list and in the dialog title should be set to the account username.
Comment 1 Jonathan Tellier 2009-08-25 18:50:55 UTC
Created attachment 141670 [details] [review]
Branch containing the proposed fix: http://git.collabora.co.uk/?p=user/jtellier/empathy.git;a=shortlog;h=refs/heads/set-account-name

 src/empathy-accounts-dialog.c |   55 ++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 54 insertions(+), 1 deletions(-)
Comment 2 Cosimo Cecchi 2009-08-26 18:16:23 UTC
Comment on attachment 141670 [details] [review]
Branch containing the proposed fix: http://git.collabora.co.uk/?p=user/jtellier/empathy.git;a=shortlog;h=refs/heads/set-account-name


>+  default_display_name = empathy_account_settings_get_string (settings,
>+      "account");

I'm not sure every CM has its login name in the "account" parameter; for instance Salut does not.
Maybe you should only set that if |default_display_name| is not NULL.

Otherwise the patch looks good to me.
Comment 3 Sjoerd Simons 2009-08-26 18:41:14 UTC
Correct not every protocol has an account name, also on irc your account name is your username, but that will be the same on every network.. Imho we should do the following

* If irc use "[account] on [server]"
* If there is an account property use "[account]"
* If there is no account property use "[protocol] Account"


Note that we should special case salut and don't allow people to create a second one, while the first one should always be called "People Nearby", but that's for another set of patches ;)
Comment 4 Jonathan Tellier 2009-08-26 18:46:02 UTC
Created attachment 141776 [details] [review]
Updated patch

 src/empathy-accounts-dialog.c |   59 ++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 58 insertions(+), 1 deletions(-)
Comment 5 Jonathan Tellier 2009-08-26 18:47:20 UTC
Discard my last patch. I've posted it right before Sjoerd commented :)
Comment 6 Jonathan Tellier 2009-08-26 19:42:48 UTC
Created attachment 141786 [details] [review]
Updated patch

 src/empathy-accounts-dialog.c |   88 ++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 87 insertions(+), 1 deletions(-)
Comment 7 Cosimo Cecchi 2009-08-26 20:46:48 UTC
Comment on attachment 141786 [details] [review]
Updated patch

>+          default_display_name =
>+              g_strdup_printf (_("%s on %s"), login_id, server);

>+  else if (protocol != NULL)
>+    {
>+      default_display_name = g_strdup_printf (_("%s Account"), protocol);

It would probably be good to have comments for translators before these strings.

>+  empathy_account_settings_set_display_name_async (settings,
>+      get_default_display_name (settings), NULL, NULL);
>+

The string returned by get_default_display_name() is leaked.

Apart from that, it looks good to me.
Comment 8 Jonathan Tellier 2009-08-27 13:21:48 UTC
Created attachment 141851 [details] [review]
Fixed patch

 src/empathy-accounts-dialog.c |  100 ++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 98 insertions(+), 2 deletions(-)
Comment 9 Cosimo Cecchi 2009-08-27 13:47:12 UTC
Comment on attachment 141851 [details] [review]
Fixed patch

Looks good, please commit to master.
Comment 10 Cosimo Cecchi 2009-08-27 15:09:37 UTC
Merged to master.
Comment 11 Jonathan Tellier 2009-08-27 17:37:41 UTC
Created attachment 141871 [details] [review]
Branch containing the proposed fix: http://git.collabora.co.uk/?p=user/jtellier/empathy.git;a=shortlog;h=refs/heads/set-account-name-translator-hint

Added additional informations intended to translators.

 src/empathy-accounts-dialog.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
Comment 12 Cosimo Cecchi 2009-08-28 08:55:39 UTC
Comment on attachment 141871 [details] [review]
Branch containing the proposed fix: http://git.collabora.co.uk/?p=user/jtellier/empathy.git;a=shortlog;h=refs/heads/set-account-name-translator-hint

Looks good to commit once you have the string freeze break approved.
Comment 13 Jonathan Tellier 2009-08-28 19:56:03 UTC
This bug should probably be re-opened since the additional informations intended to translators have not been merged.
Comment 14 Cosimo Cecchi 2009-08-31 13:54:42 UTC
Comment on attachment 141871 [details] [review]
Branch containing the proposed fix: http://git.collabora.co.uk/?p=user/jtellier/empathy.git;a=shortlog;h=refs/heads/set-account-name-translator-hint

Pushed to master, as we got the acks from the i18n team.