[empathy] CallWindow: hide the audio/video call buttons on _init()



commit 3066f837ec3c22d46382914111bd152b94f3f61e
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Mon Jul 25 19:24:53 2011 +0100

    CallWindow: hide the audio/video call buttons on _init()
    
    When we create a new window it's because there's an incoming
    call, so hide the audio/video call buttons.

 src/empathy-call-window.c  |    2 ++
 src/empathy-call-window.ui |    2 --
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index a732990..8ba25a7 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1219,6 +1219,8 @@ empathy_call_window_init (EmpathyCallWindow *self)
 
   priv->sound_mgr = empathy_sound_manager_dup_singleton ();
 
+  empathy_call_window_show_hangup_button (self, TRUE);
+
   empathy_geometry_bind (GTK_WINDOW (self), "call-window");
   /* These signals are used to track the window position and save it
    * when the window is destroyed. We need to do this as we don't want
diff --git a/src/empathy-call-window.ui b/src/empathy-call-window.ui
index 850d0e6..205b666 100644
--- a/src/empathy-call-window.ui
+++ b/src/empathy-call-window.ui
@@ -108,7 +108,6 @@
             </child>
             <child>
               <object class="GtkToolButton" id="videocall">
-                <property name="visible">True</property>
                 <property name="label" translatable="yes">Video call</property>
                 <property name="icon_name">camera-web</property>
                 <property name="tooltip_text" translatable="yes">Start a video call</property>
@@ -119,7 +118,6 @@
             </child>
             <child>
               <object class="GtkToolButton" id="audiocall">
-                <property name="visible">True</property>
                 <property name="label" translatable="yes">Call</property>
                 <property name="icon_name">call-start</property>
                 <property name="tooltip_text" translatable="yes">Start an audio call</property>



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