aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-05-13 18:54:49 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-12 17:11:14 +0800
commit4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc (patch)
tree47ee7ffc36635cba9905d69a6c6575998b28153b /libempathy-gtk
parentc463ca2f1aa7ba43248b8f07879c4268cb536670 (diff)
downloadgsoc2013-empathy-4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc.tar
gsoc2013-empathy-4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc.tar.gz
gsoc2013-empathy-4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc.tar.bz2
gsoc2013-empathy-4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc.tar.lz
gsoc2013-empathy-4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc.tar.xz
gsoc2013-empathy-4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc.tar.zst
gsoc2013-empathy-4305ae9d96e4a6b3fb749b64d6d0c4b0045ab1fc.zip
Only follow available cameras if the contact can do Video calls
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-individual-menu.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c
index 4ae727c9a..6131bfdfd 100644
--- a/libempathy-gtk/empathy-individual-menu.c
+++ b/libempathy-gtk/empathy-individual-menu.c
@@ -700,10 +700,15 @@ 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);
+ /* Only follow available cameras if the contact can do Video calls */
+ if (gtk_widget_get_sensitive (item))
+ {
+ 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;
}