1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4; coding: utf-8 -*- */
5 * Copyright (C) 2011 Sébastien Granjoux
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public
18 * License along with this program; if not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
24 #ifndef _ANJUTA_TREE_COMBO_H_
25 #define _ANJUTA_TREE_COMBO_H_
31 #define ANJUTA_TYPE_TREE_COMBO_BOX (anjuta_tree_combo_box_get_type ())
32 #define ANJUTA_TREE_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_TREE_COMBO_BOX, AnjutaTreeComboBox))
33 #define ANJUTA_TREE_COMBO_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ANJUTA_TYPE_TREE_COMBO_BOX, AnjutaTreeComboBoxClass))
34 #define ANJUTA_IS_TREE_COMBO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ANJUTA_TYPE_TREE_COMBO_BOX))
35 #define ANJUTA_IS_TREE_COMBO_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_TREE_COMBO_BOX))
36 #define ANJUTA_TREE_COMBO_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ANJUTA_TYPE_TREE_COMBO_BOX, AnjutaTreeComboBoxClass))
38 typedef struct _AnjutaTreeComboBox AnjutaTreeComboBox
;
39 typedef struct _AnjutaTreeComboBoxPrivate AnjutaTreeComboBoxPrivate
;
40 typedef struct _AnjutaTreeComboBoxClass AnjutaTreeComboBoxClass
;
42 struct _AnjutaTreeComboBox
44 GtkToggleButton parent
;
47 AnjutaTreeComboBoxPrivate
*priv
;
50 struct _AnjutaTreeComboBoxClass
53 GtkToggleButtonClass parent_class
;
56 void (* changed
) (AnjutaTreeComboBox
*combo
);
60 GType
anjuta_tree_combo_box_get_type (void) G_GNUC_CONST
;
61 GtkWidget
* anjuta_tree_combo_box_new (void);
63 void anjuta_tree_combo_box_set_model (AnjutaTreeComboBox
*combo
,
65 GtkTreeModel
* anjuta_tree_combo_box_get_model (AnjutaTreeComboBox
*combo
);
67 void anjuta_tree_combo_box_set_active (AnjutaTreeComboBox
*combo
,
69 void anjuta_tree_combo_box_set_active_iter (AnjutaTreeComboBox
*combo
,
71 gboolean
anjuta_tree_combo_box_get_active_iter (AnjutaTreeComboBox
*combo
,
74 void anjuta_tree_combo_box_set_valid_function(AnjutaTreeComboBox
*combo
,
75 GtkTreeModelFilterVisibleFunc func
,
77 GDestroyNotify destroy
);
78 void anjuta_tree_combo_box_set_invalid_text (AnjutaTreeComboBox
*combo
,
84 #endif /* _ANJUTA_TREE_COMBO_H_ */