aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2012-06-07 17:23:00 -0500
committerDavid Barksdale <amatus.amongus@gmail.com>2012-06-07 17:23:00 -0500
commita9441b7390d9afd6dc02b3dc81187ec9e0f3be47 (patch)
treef1cce016e97f939746c4e4d9e942772697c11a42
parent02b5e3bf59db5c0d66276b375964f5a3f04b039d (diff)
Fixed invalid use of gtk_widget_get_allocation.
-rw-r--r--hildon/hildon-pannable-area.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hildon/hildon-pannable-area.c b/hildon/hildon-pannable-area.c
index c6d7038..c58937f 100644
--- a/hildon/hildon-pannable-area.c
+++ b/hildon/hildon-pannable-area.c
@@ -1036,7 +1036,7 @@ hildon_pannable_area_realize (GtkWidget * widget)
gint attributes_mask;
gint border_width;
HildonPannableAreaPrivate *priv;
- GtkAllocation *allocation = NULL;
+ GtkAllocation allocation;
priv = HILDON_PANNABLE_AREA (widget)->priv;
@@ -1044,10 +1044,10 @@ hildon_pannable_area_realize (GtkWidget * widget)
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
- gtk_widget_get_allocation (widget, allocation);
+ gtk_widget_get_allocation (widget, &allocation);
- attributes.x = allocation->x + border_width;
- attributes.y = allocation->y + border_width;
+ attributes.x = allocation.x + border_width;
+ attributes.y = allocation.y + border_width;
attributes.width = MAX (gtk_widget_get_allocated_width (widget) - 2 * border_width, 0);
attributes.height = MAX (gtk_widget_get_allocated_height (widget) - 2 * border_width, 0);
attributes.window_type = GDK_WINDOW_CHILD;