~ubuntu-branches/ubuntu/karmic/xfce4-session/karmic

« back to all changes in this revision

Viewing changes to settings/xfae-model.h

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2009-04-19 18:13:45 UTC
  • mfrom: (1.2.1 upstream)
  • mto: (4.2.1 squeeze) (1.1.16 upstream)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: james.westby@ubuntu.com-20090419181345-o1rev68obla00xef
ImportĀ upstreamĀ versionĀ 4.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: xfae-model.h 28142 2008-10-11 11:10:44Z kelnos $ */
 
2
/*-
 
3
 * Copyright (c) 2005 Benedikt Meurer <benny@xfce.org>
 
4
 * All rights reserved.
 
5
 *
 
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)
 
9
 * any later version.
 
10
 *                                                                              
 
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.
 
15
 *                                                                              
 
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
 
19
 * 02111-1307, USA.
 
20
 */
 
21
 
 
22
#ifndef __XFAE_MODEL_H__
 
23
#define __XFAE_MODEL_H__
 
24
 
 
25
#include <libxfcegui4/libxfcegui4.h>
 
26
 
 
27
G_BEGIN_DECLS;
 
28
 
 
29
typedef struct _XfaeModelClass XfaeModelClass;
 
30
typedef struct _XfaeModel      XfaeModel;
 
31
 
 
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))
 
38
 
 
39
/**
 
40
 * XfaeModelColumn:
 
41
 *
 
42
 * Columns exported by the #XfaeModelColumn using
 
43
 * the #GtkTreeModel interface.
 
44
 **/
 
45
typedef enum
 
46
{
 
47
  XFAE_MODEL_COLUMN_ICON,
 
48
  XFAE_MODEL_COLUMN_NAME,
 
49
  XFAE_MODEL_COLUMN_ENABLED,
 
50
  XFAE_MODEL_COLUMN_REMOVABLE,
 
51
  XFAE_MODEL_N_COLUMNS,
 
52
} XfaeModelColumn;
 
53
 
 
54
GType         xfae_model_get_type (void) G_GNUC_CONST;
 
55
 
 
56
GtkTreeModel *xfae_model_new      (void);
 
57
 
 
58
gboolean      xfae_model_add      (XfaeModel   *model,
 
59
                                   const gchar *name,
 
60
                                   const gchar *description,
 
61
                                   const gchar *command,
 
62
                                   GError     **error);
 
63
 
 
64
gboolean      xfae_model_remove   (XfaeModel   *model,
 
65
                                   GtkTreeIter *iter,
 
66
                                   GError     **error);
 
67
 
 
68
gboolean      xfae_model_toggle   (XfaeModel   *model,
 
69
                                   GtkTreeIter *iter,
 
70
                                   GError     **error);
 
71
 
 
72
G_END_DECLS;
 
73
 
 
74
#endif /* !__XFAE_MODEL_H__ */