aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-04-24 00:20:37 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-04-24 00:20:37 +0800
commite8bd8ee536f3dbcb53855aeaec6403e7ae7a8a9b (patch)
tree8791b7a7fd0dae06a8ff7d0e595a88ea94619b5b /src
parent42d2bd52e66ff4233d4e7231ffbe3d5b78714d60 (diff)
downloadgsoc2013-empathy-e8bd8ee536f3dbcb53855aeaec6403e7ae7a8a9b.tar
gsoc2013-empathy-e8bd8ee536f3dbcb53855aeaec6403e7ae7a8a9b.tar.gz
gsoc2013-empathy-e8bd8ee536f3dbcb53855aeaec6403e7ae7a8a9b.tar.bz2
gsoc2013-empathy-e8bd8ee536f3dbcb53855aeaec6403e7ae7a8a9b.tar.lz
gsoc2013-empathy-e8bd8ee536f3dbcb53855aeaec6403e7ae7a8a9b.tar.xz
gsoc2013-empathy-e8bd8ee536f3dbcb53855aeaec6403e7ae7a8a9b.tar.zst
gsoc2013-empathy-e8bd8ee536f3dbcb53855aeaec6403e7ae7a8a9b.zip
empathy-call-window: add priv->sending_video so we don't call empathy_call_window_set_send_video when it's not needed
Diffstat (limited to 'src')
-rw-r--r--src/empathy-call-window.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 833f67fda..01c2c4f5c 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -107,6 +107,7 @@ struct _EmpathyCallWindowPriv
GMutex *lock;
gboolean call_started;
+ gboolean sending_video;
};
#define GET_PRIV(o) \
@@ -757,6 +758,7 @@ empathy_call_window_disconnected (EmpathyCallWindow *self)
gtk_widget_set_sensitive (priv->camera_button, FALSE);
gtk_action_set_sensitive (priv->send_video, FALSE);
+ priv->sending_video = FALSE;
}
@@ -1161,8 +1163,13 @@ empathy_call_window_camera_toggled_cb (GtkToggleToolButton *toggle,
gboolean active;
active = (gtk_toggle_tool_button_get_active (toggle));
+
+ if (priv->sending_video == active)
+ return;
+
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
@@ -1173,9 +1180,14 @@ empathy_call_window_send_video_toggled_cb (GtkToggleAction *toggle,
gboolean active;
active = (gtk_toggle_action_get_active (toggle));
+
+ if (priv->sending_video == active)
+ return;
+
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