aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-04-21 22:18:31 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-04-21 22:18:31 +0800
commitd83d55fef8ce02fa47402cc57850448e05c3b92c (patch)
treec5b2f1bbc177c4d72fdd21c9544a732552071f6f
parent92d12a99a6281dafcfb12ed279e63e8ca77053e9 (diff)
downloadgsoc2013-empathy-d83d55fef8ce02fa47402cc57850448e05c3b92c.tar
gsoc2013-empathy-d83d55fef8ce02fa47402cc57850448e05c3b92c.tar.gz
gsoc2013-empathy-d83d55fef8ce02fa47402cc57850448e05c3b92c.tar.bz2
gsoc2013-empathy-d83d55fef8ce02fa47402cc57850448e05c3b92c.tar.lz
gsoc2013-empathy-d83d55fef8ce02fa47402cc57850448e05c3b92c.tar.xz
gsoc2013-empathy-d83d55fef8ce02fa47402cc57850448e05c3b92c.tar.zst
gsoc2013-empathy-d83d55fef8ce02fa47402cc57850448e05c3b92c.zip
Fix warning when changing send video button before accepting the call.EMPATHY_0_23_1
svn path=/trunk/; revision=1024
-rw-r--r--src/empathy-call-window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 5c42bbe7d..bd052d2af 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -179,12 +179,15 @@ call_window_video_button_toggled_cb (GtkWidget *button,
EmpathyCallWindow *window)
{
gboolean is_sending;
+ guint status;
is_sending = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button));
empathy_debug (DEBUG_DOMAIN, "Send video toggled - %d", is_sending);
- empathy_tp_call_request_video_stream_direction (window->call, is_sending);
+ g_object_get (window->call, "status", &status, NULL);
+ if (status == EMPATHY_TP_CALL_STATUS_ACCEPTED)
+ empathy_tp_call_request_video_stream_direction (window->call, is_sending);
}
static void