1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2
/* e-source-combo-box.h
4
* Copyright (C) 2007 Novell, Inc.
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;
49
struct _ESourceComboBox {
52
ESourceComboBoxPrivate *priv;
55
struct _ESourceComboBoxClass {
56
GtkComboBoxClass parent_class;
59
GType e_source_combo_box_get_type (void);
60
GtkWidget * e_source_combo_box_new (ESourceList *source_list);
61
ESourceList * e_source_combo_box_get_source_list
62
(ESourceComboBox *source_combo_box);
63
void e_source_combo_box_set_source_list
64
(ESourceComboBox *source_combo_box,
65
ESourceList *source_list);
66
ESource * e_source_combo_box_get_active
67
(ESourceComboBox *source_combo_box);
68
void e_source_combo_box_set_active
69
(ESourceComboBox *source_combo_box,
71
const gchar * e_source_combo_box_get_active_uid
72
(ESourceComboBox *source_combo_box);
73
void e_source_combo_box_set_active_uid
74
(ESourceComboBox *source_combo_box,
79
#endif /* _E_SOURCE_COMBO_BOX_H_ */