diff options
author | Jonathan Tellier <jonathan.tellier@gmail.com> | 2009-07-03 00:08:43 +0800 |
---|---|---|
committer | jtellier <jonathan.tellier@collabora.co.uk> | 2009-07-03 00:08:43 +0800 |
commit | 9fe194288e580fcbd79fcae90050ccb8b6380a63 (patch) | |
tree | e852b5515218042a5ac459e68090f3946a618c8e /libempathy-gtk | |
parent | 5dae9d1185b972651a7c7e8d4431f8dcdd2e0cd3 (diff) | |
download | gsoc2013-empathy-9fe194288e580fcbd79fcae90050ccb8b6380a63.tar gsoc2013-empathy-9fe194288e580fcbd79fcae90050ccb8b6380a63.tar.gz gsoc2013-empathy-9fe194288e580fcbd79fcae90050ccb8b6380a63.tar.bz2 gsoc2013-empathy-9fe194288e580fcbd79fcae90050ccb8b6380a63.tar.lz gsoc2013-empathy-9fe194288e580fcbd79fcae90050ccb8b6380a63.tar.xz gsoc2013-empathy-9fe194288e580fcbd79fcae90050ccb8b6380a63.tar.zst gsoc2013-empathy-9fe194288e580fcbd79fcae90050ccb8b6380a63.zip |
Added functions to determine if a contact has video capabilities
Activating the "Video Call" button only if the remote contact support
video.
The call window's "Send Video" is only sensitive if the contact has
video capabilities.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-contact-menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c index 2bad5c9fe..0f98bbdce 100644 --- a/libempathy-gtk/empathy-contact-menu.c +++ b/libempathy-gtk/empathy-contact-menu.c @@ -167,7 +167,7 @@ empathy_contact_audio_call_menu_item_new (EmpathyContact *contact) image = gtk_image_new_from_icon_name (EMPATHY_IMAGE_VOIP, GTK_ICON_SIZE_MENU); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image); - gtk_widget_set_sensitive (item, empathy_contact_can_voip (contact)); + gtk_widget_set_sensitive (item, empathy_contact_can_voip_audio (contact)); gtk_widget_show (image); g_signal_connect (item, "activate", @@ -199,7 +199,7 @@ empathy_contact_video_call_menu_item_new (EmpathyContact *contact) image = gtk_image_new_from_icon_name (EMPATHY_IMAGE_VIDEO_CALL, GTK_ICON_SIZE_MENU); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image); - gtk_widget_set_sensitive (item, empathy_contact_can_voip (contact)); + gtk_widget_set_sensitive (item, empathy_contact_can_voip_video (contact)); gtk_widget_show (image); g_signal_connect (item, "activate", |