#include "gtkcalex.h"
+#include <goocanvas.h>
+
enum
{
- PROP_0
+ PROP_0,
+ PROP_VIEW_TYPE,
+ PROP_DATE
};
static void gtk_calex_class_init (GtkCalExClass *klass);
static void gtk_calex_init (GtkCalEx *gtk_calex);
static void gtk_calex_set_property (GObject *object,
- guint property_id,
- const GValue *value,
- GParamSpec *pspec);
+ guint property_id,
+ const GValue *value,
+ GParamSpec *pspec);
static void gtk_calex_get_property (GObject *object,
- guint property_id,
- GValue *value,
- GParamSpec *pspec);
+ guint property_id,
+ GValue *value,
+ GParamSpec *pspec);
#define GTK_CALEX_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_GTK_CALEX, GtkCalExPrivate))
typedef struct _GtkCalExPrivate GtkCalExPrivate;
struct _GtkCalExPrivate
{
+ GtkWidget *scrolledw;
+ GtkWidget *goo_canvas;
+ GooCanvasItem *goo_canvas_root;
};
GType
GtkCalExPrivate *priv = GTK_CALEX_GET_PRIVATE (gtk_calex);
}
-/**
- * gtk_calex_new:
- *
- * Returns: the newly created #GtkCalEx object.
- */
-GtkCalEx
-*gtk_calex_new ()
-{
- GtkCalEx *gtk_calex = GTK_CALEX (g_object_new (gtk_calex_get_type (), NULL));
-
- return gtk_calex;
-}
-
static void
gtk_calex_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
{
switch (property_id)
{
+ case PROP_VIEW_TYPE:
+ break;
+
+ case PROP_DATE:
+ break;
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
switch (property_id)
{
+ case PROP_VIEW_TYPE:
+ break;
+
+ case PROP_DATE:
+ break;
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
}
}
+
+/**
+ * gtk_calex_new:
+ *
+ * Returns: the newly created #GtkCalEx object.
+ */
+GtkCalEx
+*gtk_calex_new ()
+{
+ GtkWidget *viewport;
+
+ GtkCalEx *gtk_calex = GTK_CALEX (g_object_new (gtk_calex_get_type (), NULL));
+
+ GtkCalExPrivate *priv = GTK_CALEX_GET_PRIVATE (gtk_calex);
+
+ priv->scrolledw = gtk_scrolled_window_new (NULL, NULL);
+
+ viewport = gtk_viewport_new ();
+ gtk_container_add (GTK_CONTAINER (priv->scrolledw), viewport);
+
+ priv->goo_canvas = goo_canvas_new ();
+
+ priv->goo_canvas_root = goo_canvas_get_root_item (GOO_CANVAS (priv->goo_canvas));
+
+ return gtk_calex;
+}
+
+GtkCalExViewType
+gtk_calex_get_view_type (GtkCalEx *calex)
+{
+}
+
+void
+gtk_calex_set_view_type (GtkCalEx *calex, GtkCalExTypeView type)
+{
+}
+
+GDate
+*gtk_calex_get_date (GtkCalEx *calex)
+{
+}
+
+void
+gtk_calex_set_date (GetCalEx *calex, GDate *date)
+{
+}
GtkCalEx *gtk_calex_new (void);
+typedef enum {
+ GTK_CALEX_VIEW_TYPE_DAY,
+ GTK_CALEX_VIEW_TYPE_WORK_WEEK,
+ GTK_CALEX_VIEW_TYPE_WEEK,
+ GTK_CALEX_VIEW_TYPE_MONTH
+} GtkCalExViewType;
+
+GtkCalExViewType gtk_calex_get_view_type (GtkCalEx *calex);
+void gtk_calex_set_view_type (GtkCalEx *calex, GtkCalExTypeView type);
+
+GDate *gtk_calex_get_date (GtkCalEx *calex);
+void gtk_calex_set_date (GetCalEx *calex, GDate *date);
G_END_DECLS