From 9c2e592707b4290e72868136163f427da640b684 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Sun, 2 Feb 2003 08:02:27 +0000 Subject: Use Pango to draw. (e_calendar_item_class_init): Add font_desc and 2003-02-02 Hans Petter Jansson * e-calendar-item.[ch]: Use Pango to draw. (e_calendar_item_class_init): Add font_desc and week_number_font_desc args. (e_calendar_item_get_arg): Ditto. (e_calendar_item_set_arg): Ditto. (e_calendar_item_draw_month): Use Pango. (e_calendar_item_draw_day_numbers): Ditto. * e-calendar.c: Use Pango to draw. Specify just the size of the small font to use, instead of all aspects of it. (e_calendar_init): Produce the small font description and pass it to the ECalendarItem. svn path=/trunk/; revision=19705 --- widgets/misc/e-calendar-item.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'widgets/misc/e-calendar-item.h') diff --git a/widgets/misc/e-calendar-item.h b/widgets/misc/e-calendar-item.h index f63282b080..a54cb2e222 100644 --- a/widgets/misc/e-calendar-item.h +++ b/widgets/misc/e-calendar-item.h @@ -199,7 +199,9 @@ struct _ECalendarItem /* Fonts for drawing text. If font isn't set it uses the font from the canvas widget. If week_number_font isn't set it uses font. */ GdkFont *font, *old_font; + PangoFontDescription *font_desc; GdkFont *week_number_font, *old_week_number_font; + PangoFontDescription *week_number_font_desc; ECalendarItemStyleCallback style_callback; gpointer style_callback_data; -- cgit