empathy-call-window.c: update priv->sending_video *before* changing widget's state
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 24 Apr 2009 14:03:34 +0000 (15:03 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 24 Apr 2009 14:03:34 +0000 (15:03 +0100)
src/empathy-call-window.c

index 01c2c4f5ccec6bc07e88a71c19befc69ff1f4bee..49ad14142278ea78f6a3f2f5314475944992a61e 100644 (file)
@@ -1166,10 +1166,10 @@ empathy_call_window_camera_toggled_cb (GtkToggleToolButton *toggle,
 
   if (priv->sending_video == active)
     return;
+  priv->sending_video = active;
 
   empathy_call_window_set_send_video (window, active);
   gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (priv->send_video), active);
-  priv->sending_video = active;
 }
 
 static void
@@ -1183,11 +1183,11 @@ empathy_call_window_send_video_toggled_cb (GtkToggleAction *toggle,
 
   if (priv->sending_video == active)
     return;
+  priv->sending_video = active;
 
   empathy_call_window_set_send_video (window, active);
   gtk_toggle_tool_button_set_active (
       GTK_TOGGLE_TOOL_BUTTON (priv->camera_button), active);
-  priv->sending_video = active;
 }
 
 static void