1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
3
* Copyright 2009-2010 Red Hat, Inc,
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 3 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
* Written by: Matthias Clasen <mclasen@redhat.com>
22
#ifndef _UM_EDITABLE_COMBO_H
23
#define _UM_EDITABLE_COMBO_H
29
#define UM_TYPE_EDITABLE_COMBO um_editable_combo_get_type()
31
#define UM_EDITABLE_COMBO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UM_TYPE_EDITABLE_COMBO, UmEditableCombo))
32
#define UM_EDITABLE_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UM_TYPE_EDITABLE_COMBO, UmEditableComboClass))
33
#define UM_IS_EDITABLE_COMBO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UM_TYPE_EDITABLE_COMBO))
34
#define UM_IS_EDITABLE_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UM_TYPE_EDITABLE_COMBO))
35
#define UM_EDITABLE_COMBO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UM_TYPE_EDITABLE_COMBO, UmEditableComboClass))
37
typedef struct _UmEditableCombo UmEditableCombo;
38
typedef struct _UmEditableComboClass UmEditableComboClass;
39
typedef struct _UmEditableComboPrivate UmEditableComboPrivate;
41
struct _UmEditableCombo
45
UmEditableComboPrivate *priv;
48
struct _UmEditableComboClass
50
GtkAlignmentClass parent_class;
52
void (* editing_done) (UmEditableCombo *combo);
55
GType um_editable_combo_get_type (void) G_GNUC_CONST;
56
GtkWidget *um_editable_combo_new (void);
57
void um_editable_combo_set_editable (UmEditableCombo *combo,
59
gboolean um_editable_combo_get_editable (UmEditableCombo *combo);
60
void um_editable_combo_set_model (UmEditableCombo *combo,
62
GtkTreeModel *um_editable_combo_get_model (UmEditableCombo *combo);
63
void um_editable_combo_set_text_column (UmEditableCombo *combo,
65
gint um_editable_combo_get_text_column (UmEditableCombo *combo);
66
gint um_editable_combo_get_active (UmEditableCombo *combo);
67
void um_editable_combo_set_active (UmEditableCombo *combo,
69
gboolean um_editable_combo_get_active_iter (UmEditableCombo *combo,
71
void um_editable_combo_set_active_iter (UmEditableCombo *combo,
76
#endif /* _UM_EDITABLE_COMBO_H_ */