diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-09-03 13:33:07 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-09-03 13:33:07 +0800 |
commit | de704a7b4576df4f84ed859c7d3337cce0f89e57 (patch) | |
tree | 3a95fc12ba32383476faf9d09abe3ed3ab200aa8 /calendar/gnome-month-item.h | |
parent | 0e94defc997236d4cd07fd101159d2ea063c082c (diff) | |
download | gsoc2013-evolution-de704a7b4576df4f84ed859c7d3337cce0f89e57.tar gsoc2013-evolution-de704a7b4576df4f84ed859c7d3337cce0f89e57.tar.gz gsoc2013-evolution-de704a7b4576df4f84ed859c7d3337cce0f89e57.tar.bz2 gsoc2013-evolution-de704a7b4576df4f84ed859c7d3337cce0f89e57.tar.lz gsoc2013-evolution-de704a7b4576df4f84ed859c7d3337cce0f89e57.tar.xz gsoc2013-evolution-de704a7b4576df4f84ed859c7d3337cce0f89e57.tar.zst gsoc2013-evolution-de704a7b4576df4f84ed859c7d3337cce0f89e57.zip |
Today: we can now configure the colors for the monthly items, courtesy of
Today: we can now configure the colors for the monthly items, courtesy of
the canvas and GnomeColorPicker. Look at the preferences dialog, it is
kind of nice. There are still some bugs to be fixed, nothing major.
1998-09-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* prop.c (create_colors_page): We can now configure the colors of
the monthly calendars! Wheeeeee! There are still some nits to be
fixed, which are listed in the TODO file.
(build_color_spec): New function to build color specifications.
(parse_color_spec): New function to parse color specifications.
* mark.c: Modified all functions to use the configured colors.
* goto.c: Likewise.
* main.c (colors_changed): New function that notifies all
calendars that colors have changed.
* gnome-cal.c (gnome_calendar_colors_changed): New function that
notifies all the views that the colors have changed.
* month-view.c (month_view_colors_changed): New function that
notifies the month view that colors have changed.
* year-view.c (year_view_colors_changed): New function that
notifies the year view that colors have changed.
* gnome-month-item.h (struct _GnomeMonthItem): Added fields for
outline and day box colors.
* gnome-month-item.c (gnome_month_item_set_arg): Added
outline_color, outline_color_gdk, day_box_color, and
day_box_color_gdk arguments to month items. These are convenient
to quickly set the colors of the month item.
(gnome_month_item_get_arg): Likewise.
* main.[ch]: Added a global array of structures for color preferences.
svn path=/trunk/; revision=360
Diffstat (limited to 'calendar/gnome-month-item.h')
-rw-r--r-- | calendar/gnome-month-item.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/calendar/gnome-month-item.h b/calendar/gnome-month-item.h index d117aa85b5..f529d1724c 100644 --- a/calendar/gnome-month-item.h +++ b/calendar/gnome-month-item.h @@ -72,6 +72,10 @@ typedef enum { * 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 + * outline_color string W X color specification for outline (lines and fill of heading boxes) + * outline_color_gdk GdkColor * RW Pointer to an allocated GdkColor for outline + * day_box_color string W X color specification for day boxes + * day_box_color_gdk GdkColor * RW Pointer to an allocated GdkColor for day boxes * 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 */ @@ -112,6 +116,8 @@ struct _GnomeMonthItem { GdkFont *day_font; /* Font for the day numbers */ gulong head_pixel; /* Color for heading labels */ + gulong outline_pixel; /* Color for the outline (lines and heading boxes) */ + gulong day_box_pixel; /* Color for the day boxes */ gulong day_pixel; /* Color for day number labels */ int start_on_monday : 1; /* Start the week on Monday? If false, then start from Sunday */ |