1
/* $Id: xfae-model.h 28142 2008-10-11 11:10:44Z kelnos $ */
3
* Copyright (c) 2005 Benedikt Meurer <benny@xfce.org>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2, or (at your option)
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22
#ifndef __XFAE_MODEL_H__
23
#define __XFAE_MODEL_H__
25
#include <libxfcegui4/libxfcegui4.h>
29
typedef struct _XfaeModelClass XfaeModelClass;
30
typedef struct _XfaeModel XfaeModel;
32
#define XFAE_TYPE_MODEL (xfae_model_get_type ())
33
#define XFAE_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFAE_TYPE_MODEL, XfaeModel))
34
#define XFAE_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XFAE_TYPE_MODEL, XfaeModelClass))
35
#define XFAE_IS_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XFAE_TYPE_MODEL))
36
#define XFAE_IS_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XFAE_TYPE_MODEL))
37
#define XFAE_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XFAE_TYPE_MODEL, XfaeModelClass))
42
* Columns exported by the #XfaeModelColumn using
43
* the #GtkTreeModel interface.
47
XFAE_MODEL_COLUMN_ICON,
48
XFAE_MODEL_COLUMN_NAME,
49
XFAE_MODEL_COLUMN_ENABLED,
50
XFAE_MODEL_COLUMN_REMOVABLE,
54
GType xfae_model_get_type (void) G_GNUC_CONST;
56
GtkTreeModel *xfae_model_new (void);
58
gboolean xfae_model_add (XfaeModel *model,
60
const gchar *description,
64
gboolean xfae_model_remove (XfaeModel *model,
68
gboolean xfae_model_toggle (XfaeModel *model,
74
#endif /* !__XFAE_MODEL_H__ */