diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-25 01:51:26 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-28 00:33:44 +0800 |
commit | 90c8334a4a0c8e84fdd430c44fffb54fa8623b7c (patch) | |
tree | 699b385f6de7d51f850e0ece90194e834a4f78ae /src/empathy-call-window.c | |
parent | 21c54ffdc6d8ff5c47a7a7768aca6bc213075f7f (diff) | |
download | gsoc2013-empathy-90c8334a4a0c8e84fdd430c44fffb54fa8623b7c.tar gsoc2013-empathy-90c8334a4a0c8e84fdd430c44fffb54fa8623b7c.tar.gz gsoc2013-empathy-90c8334a4a0c8e84fdd430c44fffb54fa8623b7c.tar.bz2 gsoc2013-empathy-90c8334a4a0c8e84fdd430c44fffb54fa8623b7c.tar.lz gsoc2013-empathy-90c8334a4a0c8e84fdd430c44fffb54fa8623b7c.tar.xz gsoc2013-empathy-90c8334a4a0c8e84fdd430c44fffb54fa8623b7c.tar.zst gsoc2013-empathy-90c8334a4a0c8e84fdd430c44fffb54fa8623b7c.zip |
update radio actions when a button is pressed
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r-- | src/empathy-call-window.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index eca91d299..8f657f626 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -129,6 +129,7 @@ struct _EmpathyCallWindowPriv GtkWidget *pane; GtkAction *redial; GtkAction *menu_fullscreen; + GtkAction *action_camera; GtkWidget *tool_button_camera_off; GtkWidget *tool_button_camera_preview; GtkWidget *tool_button_camera_on; @@ -744,6 +745,9 @@ disable_camera (EmpathyCallWindow *self) priv->tool_button_camera_on), FALSE); gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON ( priv->tool_button_camera_preview), FALSE); + + gtk_radio_action_set_current_value (GTK_RADIO_ACTION (priv->action_camera), + CAMERA_STATE_OFF); unblock_camera_control_signals (self); priv->camera_state = CAMERA_STATE_OFF; @@ -791,6 +795,9 @@ enable_preview (EmpathyCallWindow *self) priv->tool_button_camera_off), FALSE); gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON ( priv->tool_button_camera_on), FALSE); + + gtk_radio_action_set_current_value (GTK_RADIO_ACTION (priv->action_camera), + CAMERA_STATE_PREVIEW); unblock_camera_control_signals (self); priv->camera_state = CAMERA_STATE_PREVIEW; @@ -834,6 +841,9 @@ enable_camera (EmpathyCallWindow *self) priv->tool_button_camera_off), FALSE); gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON ( priv->tool_button_camera_preview), FALSE); + + gtk_radio_action_set_current_value (GTK_RADIO_ACTION (priv->action_camera), + CAMERA_STATE_ON); unblock_camera_control_signals (self); priv->camera_state = CAMERA_STATE_ON; @@ -894,6 +904,7 @@ empathy_call_window_init (EmpathyCallWindow *self) "camera_off", &priv->tool_button_camera_off, "camera_preview", &priv->tool_button_camera_preview, "camera_on", &priv->tool_button_camera_on, + "action_camera_off", &priv->action_camera, NULL); g_free (filename); |