[empathy: 88/99] Change the page before showing the sidebar



commit 0d4971e462c733f212443c44d53690e9a6d41bc6
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Tue Jun 7 11:20:11 2011 +0100

    Change the page before showing the sidebar
    
    To avoid showing it without the dialpad, which would cause
    the dialpad menu callback to be called to hide it before
    the page was changed, causing the sidebar to be hidden again!

 src/empathy-call-window.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index d9bab64..ba7d2d4 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -3125,12 +3125,12 @@ empathy_call_window_dialpad_cb (GtkToggleAction *menu,
 
   active = gtk_toggle_action_get_active (menu);
 
-  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->sidebar_button),
-      active);
-
   if (active)
     empathy_sidebar_set_page (EMPATHY_SIDEBAR (priv->sidebar),
         priv->dtmf_panel);
+
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->sidebar_button),
+      active);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]