aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-individual-menu.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-05-12 22:19:39 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-12 17:11:11 +0800
commit622469eebd6cee91e1c0a27c3532ecb836fa14fb (patch)
treee0dae4105c355cb2bc228c0e03931967f2d03ec7 /libempathy-gtk/empathy-individual-menu.c
parent11b3e6e941f3407de410308191cbe5088cc074e4 (diff)
downloadgsoc2013-empathy-622469eebd6cee91e1c0a27c3532ecb836fa14fb.tar
gsoc2013-empathy-622469eebd6cee91e1c0a27c3532ecb836fa14fb.tar.gz
gsoc2013-empathy-622469eebd6cee91e1c0a27c3532ecb836fa14fb.tar.bz2
gsoc2013-empathy-622469eebd6cee91e1c0a27c3532ecb836fa14fb.tar.lz
gsoc2013-empathy-622469eebd6cee91e1c0a27c3532ecb836fa14fb.tar.xz
gsoc2013-empathy-622469eebd6cee91e1c0a27c3532ecb836fa14fb.tar.zst
gsoc2013-empathy-622469eebd6cee91e1c0a27c3532ecb836fa14fb.zip
Bind 'Video call' menu items to available cameras
Diffstat (limited to 'libempathy-gtk/empathy-individual-menu.c')
-rw-r--r--libempathy-gtk/empathy-individual-menu.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c
index a92e5bcd9..4ae727c9a 100644
--- a/libempathy-gtk/empathy-individual-menu.c
+++ b/libempathy-gtk/empathy-individual-menu.c
@@ -31,6 +31,7 @@
#include <folks/folks.h>
#include <folks/folks-telepathy.h>
+#include <libempathy/empathy-camera-monitor.h>
#include <libempathy/empathy-request-util.h>
#include <libempathy/empathy-individual-manager.h>
#include <libempathy/empathy-chatroom-manager.h>
@@ -674,6 +675,7 @@ empathy_individual_video_call_menu_item_new (FolksIndividual *individual,
{
GtkWidget *item;
GtkWidget *image;
+ EmpathyCameraMonitor *monitor;
g_return_val_if_fail (FOLKS_IS_INDIVIDUAL (individual) ||
EMPATHY_IS_CONTACT (contact),
@@ -698,6 +700,11 @@ empathy_individual_video_call_menu_item_new (FolksIndividual *individual,
EMPATHY_ACTION_VIDEO_CALL);
}
+ monitor = empathy_camera_monitor_dup_singleton ();
+ g_object_set_data_full (G_OBJECT (item), "monitor", monitor, g_object_unref);
+ g_object_bind_property (monitor, "available", item, "sensitive",
+ G_BINDING_SYNC_CREATE);
+
return item;
}