diff options
Diffstat (limited to 'libempathy-gtk/empathy-individual-dialogs.c')
-rw-r--r-- | libempathy-gtk/empathy-individual-dialogs.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-dialogs.c b/libempathy-gtk/empathy-individual-dialogs.c index 2d3c6889f..bfca2e839 100644 --- a/libempathy-gtk/empathy-individual-dialogs.c +++ b/libempathy-gtk/empathy-individual-dialogs.c @@ -179,6 +179,7 @@ contact_pretty_name (TpContact *contact) gboolean empathy_block_individual_dialog_show (GtkWindow *parent, FolksIndividual *individual, + GdkPixbuf *avatar, gboolean *abusive) { EmpathyIndividualManager *manager = @@ -198,6 +199,13 @@ empathy_block_individual_dialog_show (GtkWindow *parent, _("Block %s?"), folks_alias_details_get_alias (FOLKS_ALIAS_DETAILS (individual))); + if (avatar != NULL) + { + GtkWidget *image = gtk_image_new_from_pixbuf (avatar); + gtk_message_dialog_set_image (GTK_MESSAGE_DIALOG (dialog), image); + gtk_widget_show (image); + } + /* build a list of personas that support blocking */ personas = folks_individual_get_personas (individual); |