1
/* vi:set et ai sw=2 sts=2 ts=2: */
3
* Copyright (c) 2005-2006 Benedikt Meurer <benny@xfce.org>
4
* Copyright (c) 2009 Jannis Pohlmann <jannis@xfce.org>
6
* This program is free software; you can redistribute it and/or modify it
7
* under the terms of the GNU General Public License as published by the Free
8
* Software Foundation; either version 2 of the License, or (at your option)
11
* This program is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16
* You should have received a copy of the GNU General Public License along with
17
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
18
* Place, Suite 330, Boston, MA 02111-1307 USA
21
#ifndef __THUNAR_CHOOSER_MODEL_H__
22
#define __THUNAR_CHOOSER_MODEL_H__
28
typedef struct _ThunarChooserModelClass ThunarChooserModelClass;
29
typedef struct _ThunarChooserModel ThunarChooserModel;
31
#define THUNAR_TYPE_CHOOSER_MODEL (thunar_chooser_model_get_type ())
32
#define THUNAR_CHOOSER_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), THUNAR_TYPE_CHOOSER_MODEL, ThunarChooserModel))
33
#define THUNAR_CHOOSER_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), THUNAR_TYPE_CHOOSER_MODEL, ThunarChooserModelClass))
34
#define THUNAR_IS_CHOOSER_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THUNAR_TYPE_CHOOSER_MODEL))
35
#define THUNAR_IS_CHOOSER_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), THUNAR_TYPE_CHOOSER_MODEL))
36
#define THUNAR_CHOOSER_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), THUNAR_TYPE_CHOOSER_MODEL, ThunarChooserModelClass))
39
* ThunarChooserModelColumn:
40
* @THUNAR_CHOOSER_MODEL_COLUMN_NAME : the name of the application.
41
* @THUNAR_CHOOSER_MODEL_COLUMN_ICON : the name or absolute path of the application's icon.
42
* @THUNAR_CHOOSER_MODEL_COLUMN_APPLICATION : the #GAppInfo object.
43
* @THUNAR_CHOOSER_MODEL_COLUMN_STYLE : custom font style.
44
* @THUNAR_CHOOSER_MODEL_N_COLUMNS : the number of columns in #ThunarChooserModel.
46
* The identifiers for the columns provided by the #ThunarChooserModel.
50
THUNAR_CHOOSER_MODEL_COLUMN_NAME,
51
THUNAR_CHOOSER_MODEL_COLUMN_ICON,
52
THUNAR_CHOOSER_MODEL_COLUMN_APPLICATION,
53
THUNAR_CHOOSER_MODEL_COLUMN_STYLE,
54
THUNAR_CHOOSER_MODEL_COLUMN_WEIGHT,
55
THUNAR_CHOOSER_MODEL_N_COLUMNS,
56
} ThunarChooserModelColumn;
58
GType thunar_chooser_model_get_type (void) G_GNUC_CONST;
60
ThunarChooserModel *thunar_chooser_model_new (const gchar *content_type) G_GNUC_MALLOC;
61
const gchar *thunar_chooser_model_get_content_type (ThunarChooserModel *model);
62
gboolean thunar_chooser_model_remove (ThunarChooserModel *model,
68
#endif /* !__THUNAR_CHOOSER_MODEL_H__ */