4
* Copyright (C) 2010 Stefan Walter
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU Lesser General Public License as
8
* published by the Free Software Foundation; either version 2.1 of
9
* the License, or (at your option) any later version.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22
#ifndef __GCR_COMBO_SELECTOR_H__
23
#define __GCR_COMBO_SELECTOR_H__
25
#include "gcr-types.h"
31
#define GCR_TYPE_COMBO_SELECTOR (gcr_combo_selector_get_type ())
32
#define GCR_COMBO_SELECTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_COMBO_SELECTOR, GcrComboSelector))
33
#define GCR_COMBO_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_COMBO_SELECTOR, GcrComboSelectorClass))
34
#define GCR_IS_COMBO_SELECTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_COMBO_SELECTOR))
35
#define GCR_IS_COMBO_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_COMBO_SELECTOR))
36
#define GCR_COMBO_SELECTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_COMBO_SELECTOR, GcrComboSelectorClass))
38
typedef struct _GcrComboSelector GcrComboSelector;
39
typedef struct _GcrComboSelectorClass GcrComboSelectorClass;
40
typedef struct _GcrComboSelectorPrivate GcrComboSelectorPrivate;
42
struct _GcrComboSelector {
46
GcrComboSelectorPrivate *pv;
49
struct _GcrComboSelectorClass {
51
GtkComboBoxClass parent_class;
54
GType gcr_combo_selector_get_type (void);
56
GcrComboSelector* gcr_combo_selector_new (GcrCollection *collection);
58
GcrCollection* gcr_combo_selector_get_collection (GcrComboSelector *self);
60
const GcrColumn* gcr_combo_selector_get_columns (GcrComboSelector *self);
62
GObject* gcr_combo_selector_get_selected (GcrComboSelector *self);
64
void gcr_combo_selector_set_selected (GcrComboSelector *self,
69
#endif /* __GCR_COMBO_SELECTOR_H__ */