[empathy: 6/8] Resize the hangup button in ::realize
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 6/8] Resize the hangup button in ::realize
- Date: Thu, 15 Sep 2011 09:54:29 +0000 (UTC)
commit 309ca0453965d145bfeec6d9a497330833c76b7b
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Tue Sep 6 12:00:31 2011 +0100
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 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index c8d17c0..e53521d 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]