From 09e388205e1c9cbcce53aac9b8b0e78dd5343da2 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 23 Apr 2009 15:02:10 +0100 Subject: [PATCH] Sync 'Send Video' button and 'Call -> Send video' menu entry. Fixes #576394 --- src/empathy-call-window.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index d7d79df9..833f67fd 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -1157,20 +1157,25 @@ static void empathy_call_window_camera_toggled_cb (GtkToggleToolButton *toggle, EmpathyCallWindow *window) { + EmpathyCallWindowPriv *priv = GET_PRIV (window); gboolean active; active = (gtk_toggle_tool_button_get_active (toggle)); empathy_call_window_set_send_video (window, active); + gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (priv->send_video), active); } static void empathy_call_window_send_video_toggled_cb (GtkToggleAction *toggle, EmpathyCallWindow *window) { + EmpathyCallWindowPriv *priv = GET_PRIV (window); gboolean active; active = (gtk_toggle_action_get_active (toggle)); empathy_call_window_set_send_video (window, active); + gtk_toggle_tool_button_set_active ( + GTK_TOGGLE_TOOL_BUTTON (priv->camera_button), active); } static void -- 2.39.2