aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-25 19:26:29 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-28 00:33:44 +0800
commit015746e131559133730f2112777d26c581c6ac50 (patch)
tree599c7c1895bb1d59c01de6d85a6509c9e9214016 /src
parent8d1e30bfa8cacadaf2411c03396bd01ad41332c3 (diff)
downloadgsoc2013-empathy-015746e131559133730f2112777d26c581c6ac50.tar
gsoc2013-empathy-015746e131559133730f2112777d26c581c6ac50.tar.gz
gsoc2013-empathy-015746e131559133730f2112777d26c581c6ac50.tar.bz2
gsoc2013-empathy-015746e131559133730f2112777d26c581c6ac50.tar.lz
gsoc2013-empathy-015746e131559133730f2112777d26c581c6ac50.tar.xz
gsoc2013-empathy-015746e131559133730f2112777d26c581c6ac50.tar.zst
gsoc2013-empathy-015746e131559133730f2112777d26c581c6ac50.zip
update toggle buttons when the camera state is changed because of radio buttons
Diffstat (limited to 'src')
-rw-r--r--src/empathy-call-window.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index b94f6796e..171894adb 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -751,6 +751,8 @@ disable_camera (EmpathyCallWindow *self)
gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON (
priv->tool_button_camera_preview), FALSE);
+ gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON (
+ priv->tool_button_camera_off), TRUE);
gtk_radio_action_set_current_value (GTK_RADIO_ACTION (priv->action_camera),
CAMERA_STATE_OFF);
unblock_camera_control_signals (self);
@@ -802,6 +804,8 @@ enable_preview (EmpathyCallWindow *self)
gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON (
priv->tool_button_camera_on), FALSE);
+ gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON (
+ priv->tool_button_camera_preview), TRUE);
gtk_radio_action_set_current_value (GTK_RADIO_ACTION (priv->action_camera),
CAMERA_STATE_PREVIEW);
unblock_camera_control_signals (self);
@@ -849,6 +853,8 @@ enable_camera (EmpathyCallWindow *self)
gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON (
priv->tool_button_camera_preview), FALSE);
+ gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON (
+ priv->tool_button_camera_on), TRUE);
gtk_radio_action_set_current_value (GTK_RADIO_ACTION (priv->action_camera),
CAMERA_STATE_ON);
unblock_camera_control_signals (self);