From d83d55fef8ce02fa47402cc57850448e05c3b92c Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 21 Apr 2008 14:18:31 +0000 Subject: Fix warning when changing send video button before accepting the call. svn path=/trunk/; revision=1024 --- src/empathy-call-window.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3