[empathy] update toggle buttons when the camera state is changed because of radio buttons
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] update toggle buttons when the camera state is changed because of radio buttons
- Date: Fri, 27 Nov 2009 16:41:28 +0000 (UTC)
commit 015746e131559133730f2112777d26c581c6ac50
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Nov 25 11:26:29 2009 +0000
update toggle buttons when the camera state is changed because of radio buttons
src/empathy-call-window.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index b94f679..171894a 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]