aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gncal-todo.h
blob: 1102e32d779026c8b97d7f9969db53dc6175a069 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* To-do widget for gncal
 *
 * Copyright (C) 1998 The Free Software Foundation
 *
 * Author: Federico Mena <quartic@gimp.org>
 */

#ifndef GNCAL_TODO_H
#define GNCAL_TODO_H

#include <gtk/gtkclist.h>
#include <gtk/gtkvbox.h>
#include <libgnome/gnome-defs.h>
#include "gnome-cal.h"


BEGIN_GNOME_DECLS


#define GNCAL_TODO(obj)         GTK_CHECK_CAST (obj, gncal_todo_get_type (), GncalTodo)
#define GNCAL_TODO_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gncal_todo_get_type (), GncalTodoClass)
#define GNCAL_IS_TODO(obj)      GTK_CHECK_TYPE (obj, gncal_todo_get_type ())


typedef struct _GncalTodo GncalTodo;
typedef struct _GncalTodoClass GncalTodoClass;

struct _GncalTodo {
    GtkVBox vbox;

    GnomeCalendar *calendar;    /* the calendar we are associated to */

    GtkCList *clist;

    GtkWidget *edit_button;
    GtkWidget *delete_button;
    GSList *data_ptrs;
};

struct _GncalTodoClass {
    GtkVBoxClass parent_class;
};


guint      gncal_todo_get_type (void);
GtkWidget *gncal_todo_new      (GnomeCalendar *calendar);

void       gncal_todo_update   (GncalTodo *todo, CalComponent *comp, int flags);

void       gncal_todo_edit     (CalClient *client, CalComponent *comp);

END_GNOME_DECLS

#endif