diff options
author | Hans Petter Jansson <hpj@ximian.com> | 2003-02-02 16:02:27 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2003-02-02 16:02:27 +0800 |
commit | 9c2e592707b4290e72868136163f427da640b684 (patch) | |
tree | 083381717434f8b4a6dca07f25bf3f192d64af7c /widgets/misc/e-calendar-item.h | |
parent | 4a84630875e7aecd49239bd02dc28e0d1cbcb232 (diff) | |
download | gsoc2013-evolution-9c2e592707b4290e72868136163f427da640b684.tar.gz gsoc2013-evolution-9c2e592707b4290e72868136163f427da640b684.tar.zst gsoc2013-evolution-9c2e592707b4290e72868136163f427da640b684.zip |
Use Pango to draw. (e_calendar_item_class_init): Add font_desc and
2003-02-02 Hans Petter Jansson <hpj@ximian.com>
* 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
Diffstat (limited to 'widgets/misc/e-calendar-item.h')
-rw-r--r-- | widgets/misc/e-calendar-item.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |