From 5d410b8d4330ea687579595b681ad91090136ea3 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 26 Aug 1998 01:48:53 +0000 Subject: Set the heading color of the month item. 1998-08-25 Federico Mena Quintero * goto.c (create_days): Set the heading color of the month item. * main.c: Use GNOME_STOCK_PIXMAP_JUMP_TO, now that it exists, instead of goto.xpm. Also, removed goto.xpm from cvs. * gnome-month-item.h (struct _GnomeMonthItem): Added fields for the heading and day number fonts. Added fields for heading and day number label colors. * gnome-month-item.c (gnome_month_item_class_init): ARG_DAY_NAMES should be write-only. Also, added arguments for heading and day number fonts. Added arguments for heading and day number colors. svn path=/trunk/; revision=339 --- calendar/gui/gnome-month-item.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'calendar/gui/gnome-month-item.h') diff --git a/calendar/gui/gnome-month-item.h b/calendar/gui/gnome-month-item.h index 03ba0c84a7..405fda3702 100644 --- a/calendar/gui/gnome-month-item.h +++ b/calendar/gui/gnome-month-item.h @@ -59,13 +59,21 @@ typedef enum { * width double RW Width of calendar in canvas units * height double RW Height of calendar in canvas units * anchor GtkAnchorType RW Anchor side for calendar - * head_padding double RW Padding inside heading boxes + * heading_padding double RW Padding inside heading boxes * day_padding double RW Padding inside day boxes - * day_names char ** R Array of strings corresponding to the day names (sun-sat) + * day_names char ** W Array of strings corresponding to the day names (sun-sat) * heading_height double RW Height of headings bar in canvas units * heading_anchor GtkAnchorType RW Anchor side for headings inside heading boxes * day_anchor GtkAnchorType RW Anchor side for day numbers inside day boxes * start_on_monday boolean RW Specifies whether the week starts on Monday or Sunday + * heading_font string W X logical font descriptor for the headings + * heading_font_gdk GdkFont * RW Pointer to GdkFont for the headings + * day_font string W X logical font descriptor for the day numbers + * day_font_gdk GdkFont * RW Pointer to GdkFont for the day numbers + * heading_color string W X color specification for heading labels + * heading_color_gdk GdkColor * RW Pointer to an allocated GdkColor for heading labels + * day_color string W X color specification for day number labels + * day_color_gdk GdkColor * RW Pointer to an allocated GdkColor for day number labels */ #define GNOME_TYPE_MONTH_ITEM (gnome_month_item_get_type ()) @@ -95,12 +103,17 @@ struct _GnomeMonthItem { double head_height; /* Height of the headings row */ GtkAnchorType head_anchor; /* Anchor side for the heading labels */ - GtkAnchorType day_anchor; /* Anchor side for the day number labels */ GnomeCanvasItem **items; /* All the items that make up the calendar */ int day_numbers[42]; /* The numbers of the days */ + GdkFont *head_font; /* Font for the headings */ + GdkFont *day_font; /* Font for the day numbers */ + + gulong head_pixel; /* Color for heading labels */ + gulong day_pixel; /* Color for day number labels */ + int start_on_monday : 1; /* Start the week on Monday? If false, then start from Sunday */ }; -- cgit v1.2.3