aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-01-24 23:41:11 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-01-24 23:41:11 +0800
commitf18f2746690b0ceae80c3b362529decc112ca77f (patch)
tree71a768abec5fa98034f79c2a158506fdb435ed04 /src/empathy-call-window.c
parent1cb2462f5793d99ad42decfbcc34bc22474ccbdc (diff)
downloadgsoc2013-empathy-f18f2746690b0ceae80c3b362529decc112ca77f.tar
gsoc2013-empathy-f18f2746690b0ceae80c3b362529decc112ca77f.tar.gz
gsoc2013-empathy-f18f2746690b0ceae80c3b362529decc112ca77f.tar.bz2
gsoc2013-empathy-f18f2746690b0ceae80c3b362529decc112ca77f.tar.lz
gsoc2013-empathy-f18f2746690b0ceae80c3b362529decc112ca77f.tar.xz
gsoc2013-empathy-f18f2746690b0ceae80c3b362529decc112ca77f.tar.zst
gsoc2013-empathy-f18f2746690b0ceae80c3b362529decc112ca77f.zip
call-window: sync the sensitivity of the button and "send video" menu (#637839)
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index e918326f3..d43ac3af1 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -136,6 +136,7 @@ struct _EmpathyCallWindowPriv
GtkAction *redial;
GtkAction *menu_fullscreen;
GtkAction *action_camera;
+ GtkAction *action_camera_on;
GtkWidget *tool_button_camera_off;
GtkWidget *tool_button_camera_preview;
GtkWidget *tool_button_camera_on;
@@ -1056,6 +1057,7 @@ empathy_call_window_init (EmpathyCallWindow *self)
"camera_preview", &priv->tool_button_camera_preview,
"camera_on", &priv->tool_button_camera_on,
"action_camera_off", &priv->action_camera,
+ "action_camera_on", &priv->action_camera_on,
"details_vbox", &priv->details_vbox,
"vcodec_encoding_label", &priv->vcodec_encoding_label,
"acodec_encoding_label", &priv->acodec_encoding_label,
@@ -1947,6 +1949,7 @@ empathy_call_window_disconnected (EmpathyCallWindow *self,
/* Unsensitive the camera and mic button */
gtk_widget_set_sensitive (priv->tool_button_camera_on, FALSE);
+ gtk_action_set_sensitive (priv->action_camera_on, FALSE);
gtk_widget_set_sensitive (priv->mic_button, FALSE);
/* Be sure that the mic button is enabled */
@@ -2485,6 +2488,7 @@ empathy_call_window_connected (gpointer user_data)
GTK_TOGGLE_TOOL_BUTTON (priv->tool_button_camera_on),
priv->sending_video && priv->video_input != NULL);
gtk_widget_set_sensitive (priv->tool_button_camera_on, can_send_video);
+ gtk_action_set_sensitive (priv->action_camera_on, can_send_video);
gtk_action_set_sensitive (priv->redial, FALSE);
gtk_widget_set_sensitive (priv->redial_button, FALSE);
@@ -2686,6 +2690,7 @@ empathy_call_window_remove_video_input (EmpathyCallWindow *self)
priv->video_preview = NULL;
gtk_widget_set_sensitive (priv->tool_button_camera_on, FALSE);
+ gtk_action_set_sensitive (priv->action_camera_on, FALSE);
gtk_widget_set_sensitive (priv->tool_button_camera_preview, FALSE);
}