1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* e-source-combo-box.h
4 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of version 2 of the GNU Lesser General Public
8 * License as published by the Free Software Foundation.
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 GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef E_SOURCE_COMBO_BOX_H
22 #define E_SOURCE_COMBO_BOX_H
25 #include <libedataserver/e-source-list.h>
27 #define E_TYPE_SOURCE_COMBO_BOX \
28 (e_source_combo_box_get_type ())
29 #define E_SOURCE_COMBO_BOX(obj) \
30 (G_TYPE_CHECK_INSTANCE_CAST \
31 ((obj), E_TYPE_SOURCE_COMBO_BOX, ESourceComboBox))
32 #define E_SOURCE_COMBO_BOX_CLASS(cls) \
33 (G_TYPE_CHECK_CLASS_CAST \
34 ((cls), E_TYPE_SOURCE_COMBO_BOX, ESourceComboBoxClass))
35 #define E_IS_SOURCE_COMBO_BOX(obj) \
36 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_SOURCE_COMBO_BOX))
37 #define E_IS_SOURCE_COMBO_BOX_CLASS(cls) \
38 (G_TYPE_CHECK_CLASS_TYPE ((cls), E_TYPE_SOURCE_COMBO_BOX))
39 #define E_SOURCE_COMBO_BOX_GET_CLASS(obj) \
40 (G_TYPE_INSTANCE_GET_CLASS \
41 ((obj), E_TYPE_SOURCE_COMBO_BOX, ESourceComboBox))
45 typedef struct _ESourceComboBox ESourceComboBox;
46 typedef struct _ESourceComboBoxClass ESourceComboBoxClass;
47 typedef struct _ESourceComboBoxPrivate ESourceComboBoxPrivate;
54 struct _ESourceComboBox {
56 ESourceComboBoxPrivate *priv;
59 struct _ESourceComboBoxClass {
60 GtkComboBoxClass parent_class;
63 GType e_source_combo_box_get_type (void);
64 GtkWidget * e_source_combo_box_new (ESourceList *source_list);
65 ESourceList * e_source_combo_box_get_source_list
66 (ESourceComboBox *combo_box);
67 void e_source_combo_box_set_source_list
68 (ESourceComboBox *combo_box,
69 ESourceList *source_list);
70 ESource * e_source_combo_box_get_active
71 (ESourceComboBox *combo_box);
72 void e_source_combo_box_set_active
73 (ESourceComboBox *combo_box,
75 const gchar * e_source_combo_box_get_active_uid
76 (ESourceComboBox *combo_box);
77 gboolean e_source_combo_box_set_active_uid
78 (ESourceComboBox *combo_box,
83 #endif /* E_SOURCE_COMBO_BOX_H */