diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-09-06 19:00:31 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-09-08 19:26:25 +0800 |
commit | 309ca0453965d145bfeec6d9a497330833c76b7b (patch) | |
tree | 4d9e20c022f409843730cac5e5936ffddf53a06f | |
parent | 3f30f0aac8ec4f21acb84e4b5b9afa6acd131b99 (diff) | |
download | gsoc2013-empathy-309ca0453965d145bfeec6d9a497330833c76b7b.tar gsoc2013-empathy-309ca0453965d145bfeec6d9a497330833c76b7b.tar.gz gsoc2013-empathy-309ca0453965d145bfeec6d9a497330833c76b7b.tar.bz2 gsoc2013-empathy-309ca0453965d145bfeec6d9a497330833c76b7b.tar.lz gsoc2013-empathy-309ca0453965d145bfeec6d9a497330833c76b7b.tar.xz gsoc2013-empathy-309ca0453965d145bfeec6d9a497330833c76b7b.tar.zst gsoc2013-empathy-309ca0453965d145bfeec6d9a497330833c76b7b.zip |
Resize the hangup button in ::realize
So that it's not resized many times.
https://bugzilla.gnome.org/show_bug.cgi?id=580794
-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); |