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 627948 - Avatar option for irc superfous
Avatar option for irc superfous
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Accounts
unspecified
Other All
: Normal enhancement
: ---
Assigned To: empathy-maint
Depends on:
Blocks:
 
 
Reported: 2010-08-25 14:51 UTC by nubae
Modified: 2012-06-28 09:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Accounts dialog for an IRC account, showing useless avatar button (42.83 KB, image/png)
2012-06-27 09:38 UTC, Will Thompson
  Details
EmpathyChatView: add vfunc for showing/hiding avatars (2.36 KB, patch)
2012-06-27 09:45 UTC, Will Thompson
committed Details | Review
EmpathyChat: tell view to show/hide avatars based on connection interfaces (1.37 KB, patch)
2012-06-27 09:45 UTC, Will Thompson
committed Details | Review
Adium themes: implement set_show_avatars() (2.46 KB, patch)
2012-06-27 09:45 UTC, Will Thompson
committed Details | Review
Boxes theme: implement set_show_avatars (2.02 KB, patch)
2012-06-27 09:45 UTC, Will Thompson
committed Details | Review
accounts-dialog: don't show the avatar button if avatars are not supported (1.80 KB, patch)
2012-06-28 09:08 UTC, Guillaume Desmottes
committed Details | Review

Description nubae 2010-08-25 14:51:08 UTC
Since IRC doesnt have avatars, but its quite enticing when it comes up to add an image, it would make sense either to take it out altogether for irc users, or have a special place for it just for users that use empathy with IRC.

The former seems more likely... but much more boring...
Comment 1 Guillaume Desmottes 2010-09-01 12:38:29 UTC
I'm not sure to understand. Are you talking about the dialog to set your user avatar or the avatar in contacts list?
Comment 2 nubae 2010-09-01 17:52:59 UTC
Well I'm talking about the generic avatar that comes up when u add your irc contact. Its the same as all the others (msn, icq, jabber, etc) where adding an avatar works, and shows up when u send a message to another user, but for IRC, since its not understood by it, it ignores the avatar. I guess its not a massive deal, but at the time, I spent the time to upload an image for my irc avatar, when clicking on the blank avatar image (the general avatar for contacts), which then did nothing. I guess since IRC in general doesn't have the option for avatars, perhaps it should be taken out, though it would be nicer for users of empathy who use irc to see the other user's contact avatar.

Hope that makes more sense

kind regards,
David Van Assche
Comment 3 Will Thompson 2012-06-27 09:38:22 UTC
Created attachment 217363 [details]
Accounts dialog for an IRC account, showing useless avatar button

So I think the reporter was referring to the Personal Information dialog, now merged with the accounts dialog. The attached screenshot shows the accounts dialog for one of my IRC accounts, with the avatar selector circled in red. It's misleading to have that there, because setting an avatar for IRC has no effect whatsoever.
Comment 4 Will Thompson 2012-06-27 09:45:13 UTC
Personally, I'm more irritated by the big column of default avatars which shows up in IRC channels. Patches to fix the chat themes to only show avatars if the connection supports avatars to follow!
Comment 5 Will Thompson 2012-06-27 09:45:49 UTC
Created attachment 217370 [details] [review]
EmpathyChatView: add vfunc for showing/hiding avatars
Comment 6 Will Thompson 2012-06-27 09:45:51 UTC
Created attachment 217371 [details] [review]
EmpathyChat: tell view to show/hide avatars based on connection interfaces

I believe that by the time we get here the EmpathyTpChat's TpConnection
should be prepared enough to know its interfaces? It seems to be in my
brief testing.
Comment 7 Will Thompson 2012-06-27 09:45:54 UTC
Created attachment 217372 [details] [review]
Adium themes: implement set_show_avatars()
Comment 8 Will Thompson 2012-06-27 09:45:57 UTC
Created attachment 217373 [details] [review]
Boxes theme: implement set_show_avatars
Comment 9 Will Thompson 2012-06-27 09:49:44 UTC
These patches are against the gnome-3-4 branch, and I have tested them briefly. In my testing, avatars show up in freshly-launched XMPP chats and MUCs, and not in IRC privmsgs and channels, with both the “clean” theme and with the “minimal_mod” Adium theme.

Guillaume, I imagine you'll want to see how this interacts with your work to show cat pictures in preferences? I made both ThemeBoxes and ThemeAdium default to showing avatars just like they do now, so it should be fine.

I don't deal with the case where, after reconnecting, a connection miraculously starts/stops supporting avatars. And I'm not 100% sure that the connection is guaranteed to know its interfaces at the moment I check. Maybe Xavier knows?
Comment 10 Guillaume Desmottes 2012-06-28 08:59:23 UTC
Review of attachment 217370 [details] [review]:

++
Comment 11 Guillaume Desmottes 2012-06-28 08:59:31 UTC
Review of attachment 217371 [details] [review]:

++
Comment 12 Guillaume Desmottes 2012-06-28 08:59:39 UTC
Review of attachment 217372 [details] [review]:

++
Comment 13 Guillaume Desmottes 2012-06-28 08:59:49 UTC
Review of attachment 217373 [details] [review]:

++
Comment 14 Guillaume Desmottes 2012-06-28 09:00:42 UTC
Attachment 217370 [details] pushed as 36dc063 - EmpathyChatView: add vfunc for showing/hiding avatars
Attachment 217371 [details] pushed as 13a16f0 - EmpathyChat: tell view to show/hide avatars based on connection interfaces
Attachment 217372 [details] pushed as db4d160 - Adium themes: implement set_show_avatars()
Attachment 217373 [details] pushed as 847a2ea - Boxes theme: implement set_show_avatars
Comment 15 Guillaume Desmottes 2012-06-28 09:06:07 UTC
Thanks for the patches; they applied nicely on top of master.

While we're on it, let's remove the avatar widget from the accounts dialog.
Comment 16 Guillaume Desmottes 2012-06-28 09:08:09 UTC
Created attachment 217486 [details] [review]
accounts-dialog: don't show the avatar button if avatars are not supported
Comment 17 Guillaume Desmottes 2012-06-28 09:14:17 UTC
Attachment 217486 [details] pushed as a711c1e - accounts-dialog: don't show the avatar button if avatars are not supported