~ubuntu-branches/ubuntu/karmic/tasks/karmic

« back to all changes in this revision

Viewing changes to libkoto/koto-group-store.h

  • Committer: Bazaar Package Importer
  • Author(s): Ross Burton
  • Date: 2007-08-13 21:23:04 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070813212304-lygqq9gtx4g548w9
Tags: 0.11-1
* New upstream release
  - Fix crash when deleting tasks (Fixes: #437097)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include <libecal/e-cal-view.h>
23
23
#include <gtk/gtkliststore.h>
 
24
#include "koto-group.h"
24
25
 
25
26
G_BEGIN_DECLS
26
27
 
46
47
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
47
48
  KOTO_TYPE_GROUP_STORE, KotoGroupStoreClass))
48
49
 
49
 
typedef enum {
50
 
  GROUP_TYPE_NONE,
51
 
  GROUP_TYPE_ALL,
52
 
  GROUP_TYPE_UNMATCHED,
53
 
  GROUP_TYPE_SEPARATOR_PRE,
54
 
  GROUP_TYPE_CATEGORY,
55
 
  GROUP_TYPE_SEPARATOR_POST,
56
 
  GROUP_TYPE_NEW,
57
 
} KotoGroupType;
58
 
 
59
50
enum {
60
 
  COL_TYPE, /* int, type */
61
 
  COL_NAME, /* string, the label */
 
51
  COL_GROUP, /* KotoGroup */
62
52
};
63
53
 
64
 
typedef enum {
65
 
  KOTO_GROUP_STORE_TYPE_FILTER,
66
 
  KOTO_GROUP_STORE_TYPE_SELECTOR,
67
 
} KotoGroupStoreType;
68
 
 
69
54
typedef struct {
70
55
  GtkListStore parent;
71
56
} KotoGroupStore;
76
61
 
77
62
GType koto_group_store_get_type (void);
78
63
 
79
 
GtkTreeModel* koto_group_store_new (KotoGroupStoreType type, ECalView *view);
 
64
GtkTreeModel* koto_group_store_new (ECalView *view);
80
65
 
81
66
void koto_group_store_set_view (KotoGroupStore *store, ECalView *view);
82
67
 
83
 
void koto_group_store_add_new_group (KotoGroupStore *store, GtkTreeIter *iter, const char *name);
 
68
void koto_group_store_add_new_category (KotoGroupStore *store, GtkTreeIter *iter, const char *name);
 
69
 
 
70
void koto_group_store_add_group (KotoGroupStore *store, KotoGroup *group);
84
71
 
85
72
gboolean koto_group_store_get_iter_for_group (KotoGroupStore *store, const char *group, GtkTreeIter *iter);
86
73