From 309ca0453965d145bfeec6d9a497330833c76b7b Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Tue, 6 Sep 2011 12:00:31 +0100 Subject: Resize the hangup button in ::realize So that it's not resized many times. https://bugzilla.gnome.org/show_bug.cgi?id=580794 --- src/empathy-call-window.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/empathy-call-window.c') diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index c8d17c00e..e53521dcb 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -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); -- cgit v1.2.3