~ucl-cs-study-devs/activityfinder/thunar-vivid-ptsd

« back to all changes in this revision

Viewing changes to thunar/thunar-chooser-model.h

  • Committer: Steve Dodier-Lazaro
  • Date: 2015-09-03 02:01:48 UTC
  • Revision ID: sidnioulz@gmail.com-20150903020148-i44kbe7u0nfwq2hl
Adding the UCL events

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* vi:set et ai sw=2 sts=2 ts=2: */
 
2
/*-
 
3
 * Copyright (c) 2005-2006 Benedikt Meurer <benny@xfce.org>
 
4
 * Copyright (c) 2009 Jannis Pohlmann <jannis@xfce.org>
 
5
 *
 
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)
 
9
 * any later version.
 
10
 *
 
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
 
14
 * more details.
 
15
 *
 
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
 
19
 */
 
20
 
 
21
#ifndef __THUNAR_CHOOSER_MODEL_H__
 
22
#define __THUNAR_CHOOSER_MODEL_H__
 
23
 
 
24
#include <gtk/gtk.h>
 
25
 
 
26
G_BEGIN_DECLS;
 
27
 
 
28
typedef struct _ThunarChooserModelClass ThunarChooserModelClass;
 
29
typedef struct _ThunarChooserModel      ThunarChooserModel;
 
30
 
 
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))
 
37
 
 
38
/**
 
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.
 
45
 *
 
46
 * The identifiers for the columns provided by the #ThunarChooserModel.
 
47
 **/
 
48
typedef enum
 
49
{
 
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;
 
57
 
 
58
GType               thunar_chooser_model_get_type         (void) G_GNUC_CONST;
 
59
 
 
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,
 
63
                                                           GtkTreeIter        *iter,
 
64
                                                           GError            **error);
 
65
 
 
66
G_END_DECLS;
 
67
 
 
68
#endif /* !__THUNAR_CHOOSER_MODEL_H__ */