]> git.0d.be Git - empathy.git/blobdiff - src/empathy-call-window.c
empathy-call-window.c: update priv->sending_video *before* changing widget's state
[empathy.git] / 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;
 
   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);
 
   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
 }
 
 static void
@@ -1183,11 +1183,11 @@ empathy_call_window_send_video_toggled_cb (GtkToggleAction *toggle,
 
   if (priv->sending_video == active)
     return;
 
   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);
 
   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
 }
 
 static void