aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/month-view.c
diff options
context:
space:
mode:
authorSergey I. Panov <sipan@src.gnome.org>1999-02-18 08:05:17 +0800
committerSergey I. Panov <sipan@src.gnome.org>1999-02-18 08:05:17 +0800
commitb681ca2a8137816dcbc077eeca7d409dc196dd03 (patch)
tree31a5829068f325075ad6803dbe97a306b8e3b57b /calendar/gui/month-view.c
parent28707ca90c94797b88c21bc066d73247390e0eb3 (diff)
downloadgsoc2013-evolution-b681ca2a8137816dcbc077eeca7d409dc196dd03.tar
gsoc2013-evolution-b681ca2a8137816dcbc077eeca7d409dc196dd03.tar.gz
gsoc2013-evolution-b681ca2a8137816dcbc077eeca7d409dc196dd03.tar.bz2
gsoc2013-evolution-b681ca2a8137816dcbc077eeca7d409dc196dd03.tar.lz
gsoc2013-evolution-b681ca2a8137816dcbc077eeca7d409dc196dd03.tar.xz
gsoc2013-evolution-b681ca2a8137816dcbc077eeca7d409dc196dd03.tar.zst
gsoc2013-evolution-b681ca2a8137816dcbc077eeca7d409dc196dd03.zip
will define fonts via fontset. Friendlier to locales that use iso8859-[^1]
* gnome-month-item.c,gnome-month-item.h,goto.c,mark.h, month-view.c,prop.c,quick-view.c,year-view.c: will define fonts via fontset. Friendlier to locales that use iso8859-[^1] and koi8-r encodings. Does not solve problem for Asian languiges --- better solution is needed (e.g. standart GNOME fontstyles defined in gtkrc). Interpol svn path=/trunk/; revision=677
Diffstat (limited to 'calendar/gui/month-view.c')
-rw-r--r--calendar/gui/month-view.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/calendar/gui/month-view.c b/calendar/gui/month-view.c
index 07a92578dd..2759dada2f 100644
--- a/calendar/gui/month-view.c
+++ b/calendar/gui/month-view.c
@@ -22,9 +22,6 @@
/* Padding between day borders and event text */
#define EVENT_PADDING 3
-/* Font for the month view events */
-#define EVENT_FONT "-adobe-helvetica-medium-r-normal--10-*-*-*-p-*-*-*"
-
static void month_view_class_init (MonthViewClass *class);
static void month_view_init (MonthView *mv);
@@ -416,7 +413,7 @@ month_view_init (MonthView *mv)
mv->title = gnome_canvas_item_new (gnome_canvas_root (GNOME_CANVAS (mv)),
gnome_canvas_text_get_type (),
"anchor", GTK_ANCHOR_N,
- "font", HEADING_FONT,
+ "fontset", HEADING_FONTSET,
"fill_color", "black",
NULL);
@@ -429,8 +426,8 @@ month_view_init (MonthView *mv)
"day_anchor", GTK_ANCHOR_NE,
"start_on_monday", week_starts_on_monday,
"heading_padding", 2.0,
- "heading_font", BIG_DAY_HEADING_FONT,
- "day_font", BIG_NORMAL_DAY_FONT,
+ "heading_fontset", BIG_DAY_HEADING_FONTSET,
+ "day_fontset", BIG_NORMAL_DAY_FONTSET,
NULL);
/* Arrows and text items. The arrows start hidden by default; they will be shown as
@@ -473,7 +470,7 @@ month_view_init (MonthView *mv)
mv->text[i] = gnome_canvas_item_new (GNOME_CANVAS_GROUP (day_group),
gnome_canvas_text_get_type (),
- "font", EVENT_FONT,
+ "fontset", EVENT_FONTSET,
"anchor", GTK_ANCHOR_NW,
"fill_color", color_spec_from_prop (COLOR_PROP_DAY_FG),
"clip", TRUE,
@@ -714,7 +711,7 @@ mark_current_day (MonthView *mv)
GNOME_MONTH_ITEM_DAY_LABEL + mv->old_current_index);
gnome_canvas_item_set (item,
"fill_color", color_spec_from_prop (COLOR_PROP_DAY_FG),
- "font", BIG_NORMAL_DAY_FONT,
+ "fontset", BIG_NORMAL_DAY_FONTSET,
NULL);
mv->old_current_index = -1;
@@ -733,7 +730,7 @@ mark_current_day (MonthView *mv)
GNOME_MONTH_ITEM_DAY_LABEL + mv->old_current_index);
gnome_canvas_item_set (item,
"fill_color", color_spec_from_prop (COLOR_PROP_CURRENT_DAY_FG),
- "font", BIG_CURRENT_DAY_FONT,
+ "fontset", BIG_CURRENT_DAY_FONTSET,
NULL);
}
}