]> git.0d.be Git - empathy.git/commitdiff
CallWindow: hide the audio/video call buttons on _init()
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Mon, 25 Jul 2011 18:24:53 +0000 (19:24 +0100)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 28 Jul 2011 08:00:38 +0000 (09:00 +0100)
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
src/empathy-call-window.ui

index a732990359842fd772569e0ea921dfd201991ef2..8ba25a7d337d15bc9c0befec7733a53895ee8566 100644 (file)
@@ -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
index 850d0e652bb606a3c2b9136756202829facb5cde..205b666aca28b245dfb8d0d3a98bb17056ae92dc 100644 (file)
             </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>
             </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>