[empathy: 3/14] call-window: use gtk_widget_get_allocation()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 3/14] call-window: use gtk_widget_get_allocation()
- Date: Thu, 8 Jul 2010 12:36:18 +0000 (UTC)
commit 85063c344a4dada140b609c726118a889e4e09ac
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Jul 7 15:41:05 2010 +0200
call-window: use gtk_widget_get_allocation()
src/empathy-call-window.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 5fd232b..a8d1c40 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1247,8 +1247,10 @@ contact_avatar_changed_cb (EmpathyContact *contact,
GParamSpec *pspec, GtkWidget *avatar_widget)
{
int size;
+ GtkAllocation allocation;
- size = avatar_widget->allocation.height;
+ gtk_widget_get_allocation (avatar_widget, &allocation);
+ size = allocation.height;
if (size == 0)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]