diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-05-13 18:54:49 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-05-13 19:14:41 +0800 |
commit | 8e3f9e7514cc2284496e0f1db23180e20be4bea0 (patch) | |
tree | 61e5f8e9749a16747c07dd74f8c6e7b35eed41e3 /libempathy-gtk | |
parent | 7c8875356d589a24e9c6c46b4baa2da93c326c67 (diff) | |
download | gsoc2013-empathy-8e3f9e7514cc2284496e0f1db23180e20be4bea0.tar gsoc2013-empathy-8e3f9e7514cc2284496e0f1db23180e20be4bea0.tar.gz gsoc2013-empathy-8e3f9e7514cc2284496e0f1db23180e20be4bea0.tar.bz2 gsoc2013-empathy-8e3f9e7514cc2284496e0f1db23180e20be4bea0.tar.lz gsoc2013-empathy-8e3f9e7514cc2284496e0f1db23180e20be4bea0.tar.xz gsoc2013-empathy-8e3f9e7514cc2284496e0f1db23180e20be4bea0.tar.zst gsoc2013-empathy-8e3f9e7514cc2284496e0f1db23180e20be4bea0.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.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c index 5324c5013..8b1ed66a7 100644 --- a/libempathy-gtk/empathy-individual-menu.c +++ b/libempathy-gtk/empathy-individual-menu.c @@ -690,10 +690,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; } |