diff options
author | Arturo Espinosa Aldama <arturo@nuclecu.unam.mx> | 1998-04-15 10:40:24 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-15 10:40:24 +0800 |
commit | 0e5cfe78a5161e1c98e69f4670552e0d381b3d30 (patch) | |
tree | 058ef3f23121fbd5c87361a951c02b611c384529 /calendar/year-view.h | |
parent | 3161696e57f03b5ebc859907725f6836f4220667 (diff) | |
download | gsoc2013-evolution-0e5cfe78a5161e1c98e69f4670552e0d381b3d30.tar.gz gsoc2013-evolution-0e5cfe78a5161e1c98e69f4670552e0d381b3d30.tar.zst gsoc2013-evolution-0e5cfe78a5161e1c98e69f4670552e0d381b3d30.zip |
New widget for the year view. added required compilation of the new files.
1998-04-14 Arturo Espinosa Aldama <arturo@nuclecu.unam.mx>
* gncal-year-view.[hc]: New widget for the year view.
* Makefile.am: added required compilation of the new files.
svn path=/trunk/; revision=134
Diffstat (limited to 'calendar/year-view.h')
-rw-r--r-- | calendar/year-view.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/calendar/year-view.h b/calendar/year-view.h new file mode 100644 index 0000000000..1aedf41299 --- /dev/null +++ b/calendar/year-view.h @@ -0,0 +1,52 @@ +/* Week view composite widget for gncal + * + * Copyright (C) 1998 The Free Software Foundation + * + * Author: Arturo Espinosa <arturo@nuclecu.unam.mx> + * + * Heavily based on Federico Mena's week view. + * + */ + +#ifndef YEAR_VIEW_H +#define YEAR_VIEW_H + + +#include <gtk/gtktable.h> +#include <libgnome/gnome-defs.h> +#include <libgnomeui/gtkcalendar.h> +#include "gnome-cal.h" + +BEGIN_GNOME_DECLS + + +#define GNCAL_YEAR_VIEW(obj) GTK_CHECK_CAST (obj, gncal_year_view_get_type (), GncalYearView) +#define GNCAL_YEAR_VIEW_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gncal_year_view_get_type (), GncalYearViewClass) +#define GNCAL_IS_YEAR_VIEW(obj) GTK_CHECK_TYPE (obj, gncal_year_view_get_type ()) + + +typedef struct _GncalYearView GncalYearView; +typedef struct _GncalYearViewClass GncalYearViewClass; + +struct _GncalYearView { + GtkTable table; + + GtkWidget *calendar[12]; /* one calendar per month */ + guint handler[12]; /* for (un)blocking the calendars */ + gint year; +}; + +struct _GncalYearViewClass { + GtkTableClass parent_class; +}; + + +guint gncal_year_view_get_type (void); +GtkWidget *gncal_year_view_new (int year); + +void gncal_year_view_set (GncalYearView *yview, int year); + + +END_GNOME_DECLS + +#endif |