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 645069 - Show an avatar on the block contact dialog
Show an avatar on the block contact dialog
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: General
2.33.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2011-03-17 20:12 UTC by Emilio Pozuelo Monfort
Modified: 2011-03-21 21:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
show the avatar for the blocked user (6.64 KB, patch)
2011-03-17 20:15 UTC, Emilio Pozuelo Monfort
needs-work Details | Review

Description Emilio Pozuelo Monfort 2011-03-17 20:12:33 UTC
We currently display a GTK_STOCK_QUESTION icon in the block contact dialog. Would be nice to display the avatar when available.
Comment 1 Emilio Pozuelo Monfort 2011-03-17 20:15:27 UTC
Created attachment 183673 [details] [review]
show the avatar for the blocked user

http://git.collabora.co.uk/?p=user/pochu/empathy.git;a=shortlog;h=refs/heads/block-avatar-645069
Comment 2 Danielle Madeley 2011-03-17 23:15:08 UTC
Review of attachment 183673 [details] [review]:

Looks pretty good, but you forgot empathy-contact-dialogs.

Personally though I'd like take the remove dialog, and nuke it from orbit. I feel like it could be better implemented, and wrap all of these bits and pieces up inside itself.

::: libempathy-gtk/empathy-individual-view.c
@@ +2247,3 @@
       GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", message);
 
+  if (avatar)

Be explicit. avatar != NULL
Comment 3 Emilio Pozuelo Monfort 2011-03-18 10:43:06 UTC
(In reply to comment #2)
> Review of attachment 183673 [details] [review]:
> 
> Looks pretty good, but you forgot empathy-contact-dialogs.

I've left out that for now because for incoming authorization requests, the contact is not on your contact list yet, and displaying their photo right away may not be such a good idea.

> Personally though I'd like take the remove dialog, and nuke it from orbit. I
> feel like it could be better implemented, and wrap all of these bits and pieces
> up inside itself.

Not sure what you mean here...

> 
> ::: libempathy-gtk/empathy-individual-view.c
> @@ +2247,3 @@
>        GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", message);
> 
> +  if (avatar)
> 
> Be explicit. avatar != NULL

Fixed.
Comment 4 Emilio Pozuelo Monfort 2011-03-18 11:16:12 UTC
Pushed to master and gnome-2-34.
Comment 5 Emilio Pozuelo Monfort 2011-03-21 17:57:55 UTC
I forgot empathy_block_contact_dialog_show, which you get from a conversation (contact->block) or from an incoming authorization request (here we don't want to show the avatar in case it's offensive).

http://git.collabora.co.uk/?p=user/pochu/empathy.git;a=shortlog;h=refs/heads/block-avatar-645069
Comment 6 Emilio Pozuelo Monfort 2011-03-21 21:05:53 UTC
Merged to gnome-2-34 and master.