diff options
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r-- | src/empathy-call-window.c | 11 |
1 files changed, 6 insertions, 5 deletions
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); |