diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-08-26 09:48:53 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-08-26 09:48:53 +0800 |
commit | 5d410b8d4330ea687579595b681ad91090136ea3 (patch) | |
tree | f4edecbabca9c184a42c69fda320dfa0982ad900 /calendar/gui/gnome-month-item.h | |
parent | f6f316d74484178f136664bdf5380e3ed567ae49 (diff) | |
download | gsoc2013-evolution-5d410b8d4330ea687579595b681ad91090136ea3.tar gsoc2013-evolution-5d410b8d4330ea687579595b681ad91090136ea3.tar.gz gsoc2013-evolution-5d410b8d4330ea687579595b681ad91090136ea3.tar.bz2 gsoc2013-evolution-5d410b8d4330ea687579595b681ad91090136ea3.tar.lz gsoc2013-evolution-5d410b8d4330ea687579595b681ad91090136ea3.tar.xz gsoc2013-evolution-5d410b8d4330ea687579595b681ad91090136ea3.tar.zst gsoc2013-evolution-5d410b8d4330ea687579595b681ad91090136ea3.zip |
Set the heading color of the month item.
1998-08-25 Federico Mena Quintero <federico@nuclecu.unam.mx>
* 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
Diffstat (limited to 'calendar/gui/gnome-month-item.h')
-rw-r--r-- | calendar/gui/gnome-month-item.h | 19 |
1 files changed, 16 insertions, 3 deletions
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 */ }; |