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 #if !defined (__LIBEDATASERVERUI_H_INSIDE__) && !defined (LIBEDATASERVERUI_COMPILATION)
22 #error "Only <libedataserverui/libedataserverui.h> should be included directly."
25 #ifndef E_SOURCE_COMBO_BOX_H
26 #define E_SOURCE_COMBO_BOX_H
29 #include <libedataserver/libedataserver.h>
31 #define E_TYPE_SOURCE_COMBO_BOX \
32 (e_source_combo_box_get_type ())
33 #define E_SOURCE_COMBO_BOX(obj) \
34 (G_TYPE_CHECK_INSTANCE_CAST \
35 ((obj), E_TYPE_SOURCE_COMBO_BOX, ESourceComboBox))
36 #define E_SOURCE_COMBO_BOX_CLASS(cls) \
37 (G_TYPE_CHECK_CLASS_CAST \
38 ((cls), E_TYPE_SOURCE_COMBO_BOX, ESourceComboBoxClass))
39 #define E_IS_SOURCE_COMBO_BOX(obj) \
40 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_SOURCE_COMBO_BOX))
41 #define E_IS_SOURCE_COMBO_BOX_CLASS(cls) \
42 (G_TYPE_CHECK_CLASS_TYPE ((cls), E_TYPE_SOURCE_COMBO_BOX))
43 #define E_SOURCE_COMBO_BOX_GET_CLASS(obj) \
44 (G_TYPE_INSTANCE_GET_CLASS \
45 ((obj), E_TYPE_SOURCE_COMBO_BOX, ESourceComboBox))
49 typedef struct _ESourceComboBox ESourceComboBox;
50 typedef struct _ESourceComboBoxClass ESourceComboBoxClass;
51 typedef struct _ESourceComboBoxPrivate ESourceComboBoxPrivate;
58 struct _ESourceComboBox {
60 ESourceComboBoxPrivate *priv;
63 struct _ESourceComboBoxClass {
64 GtkComboBoxClass parent_class;
67 GType e_source_combo_box_get_type (void);
68 GtkWidget * e_source_combo_box_new (ESourceRegistry *registry,
69 const gchar *extension_name);
71 e_source_combo_box_get_registry (ESourceComboBox *combo_box);
72 void e_source_combo_box_set_registry (ESourceComboBox *combo_box,
73 ESourceRegistry *registry);
74 const gchar * e_source_combo_box_get_extension_name
75 (ESourceComboBox *combo_box);
76 void e_source_combo_box_set_extension_name
77 (ESourceComboBox *combo_box,
78 const gchar *extension_name);
79 gboolean e_source_combo_box_get_show_colors
80 (ESourceComboBox *combo_box);
81 void e_source_combo_box_set_show_colors
82 (ESourceComboBox *combo_box,
83 gboolean show_colors);
84 ESource * e_source_combo_box_ref_active (ESourceComboBox *combo_box);
85 void e_source_combo_box_set_active (ESourceComboBox *combo_box,
90 #endif /* E_SOURCE_COMBO_BOX_H */