aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-04-24 00:44:50 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-04-24 00:44:50 +0800
commit055e2787d98e48a51eb4345c6e375776ec615072 (patch)
tree13168006ee347db6f33dfa95b61cf1b56be21384
parentae2ee225492fe6a8834401cb17523dd81a3c7cea (diff)
parente8bd8ee536f3dbcb53855aeaec6403e7ae7a8a9b (diff)
downloadgsoc2013-empathy-055e2787d98e48a51eb4345c6e375776ec615072.tar
gsoc2013-empathy-055e2787d98e48a51eb4345c6e375776ec615072.tar.gz
gsoc2013-empathy-055e2787d98e48a51eb4345c6e375776ec615072.tar.bz2
gsoc2013-empathy-055e2787d98e48a51eb4345c6e375776ec615072.tar.lz
gsoc2013-empathy-055e2787d98e48a51eb4345c6e375776ec615072.tar.xz
gsoc2013-empathy-055e2787d98e48a51eb4345c6e375776ec615072.tar.zst
gsoc2013-empathy-055e2787d98e48a51eb4345c6e375776ec615072.zip
Merge branch 'send-video-576394'
-rw-r--r--src/empathy-call-window.c17
-rw-r--r--src/empathy-call-window.ui1
2 files changed, 18 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index d7d79df90..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;
}
@@ -1157,20 +1159,35 @@ static void
empathy_call_window_camera_toggled_cb (GtkToggleToolButton *toggle,
EmpathyCallWindow *window)
{
+ EmpathyCallWindowPriv *priv = GET_PRIV (window);
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
empathy_call_window_send_video_toggled_cb (GtkToggleAction *toggle,
EmpathyCallWindow *window)
{
+ EmpathyCallWindowPriv *priv = GET_PRIV (window);
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
diff --git a/src/empathy-call-window.ui b/src/empathy-call-window.ui
index 00b8ffa88..ce3d85b56 100644
--- a/src/empathy-call-window.ui
+++ b/src/empathy-call-window.ui
@@ -14,6 +14,7 @@
<object class="GtkToggleAction" id="send_video">
<property name="name">send_video</property>
<property name="label" translatable="yes">Send video</property>
+ <property name="sensitive">False</property>
</object>
</child>
<child>