aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-calendar.c
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-04-16 05:43:05 +0800
committerHans Petter <hansp@src.gnome.org>2003-04-16 05:43:05 +0800
commitdb8f0cbfbccccab53f43872307079eb43625726d (patch)
tree7ca45a79fa94671fd9658481c3e67436321d737f /widgets/misc/e-calendar.c
parentbd5da6d3e16a9a5076ce6fd61b7abe9f7ecaf811 (diff)
downloadgsoc2013-evolution-db8f0cbfbccccab53f43872307079eb43625726d.tar
gsoc2013-evolution-db8f0cbfbccccab53f43872307079eb43625726d.tar.gz
gsoc2013-evolution-db8f0cbfbccccab53f43872307079eb43625726d.tar.bz2
gsoc2013-evolution-db8f0cbfbccccab53f43872307079eb43625726d.tar.lz
gsoc2013-evolution-db8f0cbfbccccab53f43872307079eb43625726d.tar.xz
gsoc2013-evolution-db8f0cbfbccccab53f43872307079eb43625726d.tar.zst
gsoc2013-evolution-db8f0cbfbccccab53f43872307079eb43625726d.zip
Unref the metrics. (e_calendar_item_draw): Re-use the widget's context
2003-04-15 Hans Petter Jansson <hpj@ximian.com> * e-calendar-item.c (e_calendar_item_update): Unref the metrics. (e_calendar_item_draw): Re-use the widget's context instead of creating a new one. Unref the metrics. (e_calendar_item_draw_month): Unref the metrics. Don't create the layout where it might be leaked by an early return. Unref the layout before returning if we're outside the clip area. (e_calendar_item_draw_day_numbers): Unref the metrics. (e_calendar_item_recalc_sizes): Unref the metrics. (e_calendar_item_convert_position_to_day): Unref the metrics. * e-calendar.c (e_calendar_size_allocate): Unref the metrics. svn path=/trunk/; revision=20855
Diffstat (limited to 'widgets/misc/e-calendar.c')
-rw-r--r--widgets/misc/e-calendar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/widgets/misc/e-calendar.c b/widgets/misc/e-calendar.c
index 73ddd421cc..ec720e9047 100644
--- a/widgets/misc/e-calendar.c
+++ b/widgets/misc/e-calendar.c
@@ -358,6 +358,8 @@ e_calendar_size_allocate (GtkWidget *widget,
"width", arrow_button_size,
"height", arrow_button_size,
NULL);
+
+ pango_font_metrics_unref (font_metrics);
}
void