aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/month-view.h
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-08-11 12:22:05 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-08-11 12:22:05 +0800
commit1596825b7da24002e23d90a236d6def417d7dd58 (patch)
tree9f1ec2b869985e722c230ec2589440aedf44d2bd /calendar/month-view.h
parentf91ebfeae9cdbc0d4866e08fc538f7e466ab70f8 (diff)
downloadgsoc2013-evolution-1596825b7da24002e23d90a236d6def417d7dd58.tar
gsoc2013-evolution-1596825b7da24002e23d90a236d6def417d7dd58.tar.gz
gsoc2013-evolution-1596825b7da24002e23d90a236d6def417d7dd58.tar.bz2
gsoc2013-evolution-1596825b7da24002e23d90a236d6def417d7dd58.tar.lz
gsoc2013-evolution-1596825b7da24002e23d90a236d6def417d7dd58.tar.xz
gsoc2013-evolution-1596825b7da24002e23d90a236d6def417d7dd58.tar.zst
gsoc2013-evolution-1596825b7da24002e23d90a236d6def417d7dd58.zip
Start of the month view widget. This will use the generic month item and
1998-08-10 Federico Mena Quintero <federico@nuclecu.unam.mx> * month-view.[ch]: Start of the month view widget. This will use the generic month item and extend it to have the semantics desired for the gnomecal month view. * gnome-month-item.[ch]: New generic canvas item for the month view and the "small calendars". This is intended to be a high-level display engine for monthly calendars. This is a work in progress. * gnome-cal.h (GnomeCalendar): Added a month_view field. * gnome-cal.c (setup_widgets): Create the month view and insert it into the notebook. * Makefile.am: Added month-view.[ch] and gnome-month-item.[ch] to the sources. svn path=/trunk/; revision=307
Diffstat (limited to 'calendar/month-view.h')
-rw-r--r--calendar/month-view.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/calendar/month-view.h b/calendar/month-view.h
new file mode 100644
index 0000000000..0f35817d78
--- /dev/null
+++ b/calendar/month-view.h
@@ -0,0 +1,51 @@
+/* Month view display for gncal
+ *
+ * Copyright (C) 1998 Red Hat Software, Inc.
+ *
+ * Author: Federico Mena <federico@nuclecu.unam.mx>
+ */
+
+#ifndef MONTH_VIEW_H
+#define MONTH_VIEW_H
+
+#include <libgnome/gnome-defs.h>
+#include "gnome-cal.h"
+#include "gnome-month-item.h"
+
+
+BEGIN_GNOME_DECLS
+
+
+#define TYPE_MONTH_VIEW (month_view_get_type ())
+#define MONTH_VIEW(obj) (GTK_CHECK_CAST ((obj), TYPE_MONTH_VIEW, MonthView))
+#define MONTH_VIEW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), TYPE_MONTH_VIEW, MonthViewClass))
+#define IS_MONTH_VIEW(obj) (GTK_CHECK_TYPE ((obj), TYPE_MONTH_VIEW))
+#define IS_MONTH_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), TYPE_MONTH_VIEW))
+
+
+typedef struct _MonthView MonthView;
+typedef struct _MonthViewClass MonthViewClass;
+
+struct _MonthView {
+ GnomeCanvas canvas;
+
+ GnomeCalendar *calendar; /* The calendar we are associated to */
+
+ GnomeCanvasItem *mitem; /* The canvas month item used by this month view */
+};
+
+struct _MonthViewClass {
+ GnomeCanvasClass parent_class;
+};
+
+
+/* Standard Gtk function */
+GtkType month_view_get_type (void);
+
+/* Creates a new month view widget associated to the specified calendar */
+GtkWidget *month_view_new (GnomeCalendar *calendar);
+
+
+END_GNOME_DECLS
+
+#endif