From 015746e131559133730f2112777d26c581c6ac50 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 25 Nov 2009 11:26:29 +0000 Subject: update toggle buttons when the camera state is changed because of radio buttons --- src/empathy-call-window.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/empathy-call-window.c') 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); -- cgit v1.2.3