]> git.0d.be Git - empathy.git/commitdiff
Resize the hangup button in ::realize
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Tue, 6 Sep 2011 11:00:31 +0000 (12:00 +0100)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 8 Sep 2011 11:26:25 +0000 (12:26 +0100)
So that it's not resized many times.

https://bugzilla.gnome.org/show_bug.cgi?id=580794

src/empathy-call-window.c

index c8d17c00e03b0465d2eb51895368e16b5c22dea5..e53521dcbe7169117ce3c5be7e157df87b7f32c8 100644 (file)
@@ -3400,11 +3400,6 @@ empathy_call_window_connect_handler (EmpathyCallWindow *self)
 {
   EmpathyCallWindowPriv *priv = GET_PRIV (self);
   TpyCallChannel *call;
-  gint width;
-
-  /* Make the hangup button twice as wide */
-  width = gtk_widget_get_allocated_width (priv->hangup_button);
-  gtk_widget_set_size_request (priv->hangup_button, width * 2, -1);
 
   g_signal_connect (priv->handler, "state-changed",
     G_CALLBACK (empathy_call_window_state_changed_cb), self);
@@ -3440,6 +3435,12 @@ static void
 empathy_call_window_realized_cb (GtkWidget *widget,
     EmpathyCallWindow *self)
 {
+  gint width;
+
+  /* Make the hangup button twice as wide */
+  width = gtk_widget_get_allocated_width (self->priv->hangup_button);
+  gtk_widget_set_size_request (self->priv->hangup_button, width * 2, -1);
+
   empathy_call_window_connect_handler (self);
 
   gst_element_set_state (self->priv->pipeline, GST_STATE_PAUSED);