aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-17 23:37:53 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-18 01:35:48 +0800
commit499b394d0033da606c04e13afae4052818d9a431 (patch)
treea69bafeccc50503429e304ec7f0ec4bb17080bd1
parent3860bc951676c103e145a4a9403eb750f73e84c7 (diff)
downloadgsoc2013-empathy-499b394d0033da606c04e13afae4052818d9a431.tar
gsoc2013-empathy-499b394d0033da606c04e13afae4052818d9a431.tar.gz
gsoc2013-empathy-499b394d0033da606c04e13afae4052818d9a431.tar.bz2
gsoc2013-empathy-499b394d0033da606c04e13afae4052818d9a431.tar.lz
gsoc2013-empathy-499b394d0033da606c04e13afae4052818d9a431.tar.xz
gsoc2013-empathy-499b394d0033da606c04e13afae4052818d9a431.tar.zst
gsoc2013-empathy-499b394d0033da606c04e13afae4052818d9a431.zip
Display the audio or video icon in incoming call dialog
This is more useful than the question mark icon as it can be used to easily see if we are receiving an audio or video call.
-rw-r--r--src/empathy-event-manager.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index 80d3e6d6d..72708b6b5 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -336,12 +336,28 @@ event_channel_process_voip_func (EventPriv *event)
dialog = gtk_message_dialog_new (NULL, 0,
GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE,
video ? _("Incoming video call"): _("Incoming call"));
+
gtk_message_dialog_format_secondary_text (
GTK_MESSAGE_DIALOG (dialog), video ?
_("%s is video calling you, do you want to answer?"):
_("%s is calling you, do you want to answer?"),
empathy_contact_get_name (event->approval->contact));
+ /* Set image of the dialog */
+ if (video)
+ {
+ image = gtk_image_new_from_icon_name (EMPATHY_IMAGE_VIDEO_CALL,
+ GTK_ICON_SIZE_DIALOG);
+ }
+ else
+ {
+ image = gtk_image_new_from_icon_name (EMPATHY_IMAGE_VOIP,
+ GTK_ICON_SIZE_DIALOG);
+ }
+
+ gtk_message_dialog_set_image (GTK_MESSAGE_DIALOG (dialog), image);
+ gtk_widget_show (image);
+
gtk_dialog_set_default_response (GTK_DIALOG (dialog),
GTK_RESPONSE_OK);