aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-calendar.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-01-13 06:54:29 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-01-14 03:17:42 +0800
commita6d296b998729abc78e634844cc4a3aeda7d0327 (patch)
tree136c24bd250a288f8152cd563969f3954adc75be /widgets/misc/e-calendar.c
parent4d114e022ca38e7aeb6cc2cc3715f7dca69c82a6 (diff)
downloadgsoc2013-evolution-a6d296b998729abc78e634844cc4a3aeda7d0327.tar.gz
gsoc2013-evolution-a6d296b998729abc78e634844cc4a3aeda7d0327.tar.zst
gsoc2013-evolution-a6d296b998729abc78e634844cc4a3aeda7d0327.zip
Baby steps toward GSEAL compliance.
Diffstat (limited to 'widgets/misc/e-calendar.c')
-rw-r--r--widgets/misc/e-calendar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/misc/e-calendar.c b/widgets/misc/e-calendar.c
index 44e4568656..384d4ce664 100644
--- a/widgets/misc/e-calendar.c
+++ b/widgets/misc/e-calendar.c
@@ -308,6 +308,7 @@ e_calendar_size_allocate (GtkWidget *widget,
{
ECalendar *cal;
GtkStyle *style;
+ GtkAllocation old_allocation;
PangoFontDescription *font_desc;
PangoContext *pango_context;
PangoFontMetrics *font_metrics;
@@ -330,8 +331,9 @@ e_calendar_size_allocate (GtkWidget *widget,
/* Set the scroll region to its allocated size, if changed. */
gnome_canvas_get_scroll_region (GNOME_CANVAS (cal),
NULL, NULL, &old_x2, &old_y2);
- new_x2 = widget->allocation.width - 1;
- new_y2 = widget->allocation.height - 1;
+ gtk_widget_get_allocation (widget, &old_allocation);
+ new_x2 = old_allocation.width - 1;
+ new_y2 = old_allocation.height - 1;
if (old_x2 != new_x2 || old_y2 != new_y2)
gnome_canvas_set_scroll_region (GNOME_CANVAS (cal),
0, 0, new_x2, new_y2);