]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-contact-selector.h
b2effd148d11f05fa758e251a2dd7426cf53e0f2
[empathy.git] / libempathy-gtk / empathy-contact-selector.h
1 /*
2 *  Copyright (C) 2008 Collabora Ltd.
3 *
4 *  This library is free software; you can redistribute it and/or
5 *  modify it under the terms of the GNU Lesser General Public
6 *  License as published by the Free Software Foundation; either
7 *  version 2.1 of the License, or (at your option) any later version.
8 *
9 *  This library is distributed in the hope that it will be useful,
10 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 *  Lesser General Public License for more details.
13 *
14 *  You should have received a copy of the GNU Lesser General Public
15 *  License along with this library; if not, write to the Free Software
16 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17 *
18 *  Authors: Elliot Fairweather <elliot.fairweather@collabora.co.uk>
19 */
20
21 #ifndef __EMPATHY_CONTACT_SELECTOR_H__
22 #define __EMPATHY_CONTACT_SELECTOR_H__
23
24 G_BEGIN_DECLS
25
26 #include <glib-object.h>
27 #include <gtk/gtk.h>
28
29 #include <libempathy/empathy-contact.h>
30
31 #define EMPATHY_TYPE_CONTACT_SELECTOR (empathy_contact_selector_get_type ())
32 #define EMPATHY_CONTACT_SELECTOR(object) (G_TYPE_CHECK_INSTANCE_CAST \
33         ((object), EMPATHY_TYPE_CONTACT_SELECTOR, EmpathyContactSelector))
34 #define EMPATHY_CONTACT_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \
35         EMPATHY_TYPE_CONTACT_SELECTOR, EmpathyContactSelectorClass))
36 #define EMPATHY_IS_CONTACT_SELECTOR(object) (G_TYPE_CHECK_INSTANCE_TYPE \
37     ((object), EMPATHY_TYPE_CONTACT_SELECTOR))
38 #define EMPATHY_IS_CONTACT_SELECTOR_CLASS(klass) \
39     (G_TYPE_CHECK_CLASS_TYPE ((klass), EMPATHY_TYPE_CONTACT_SELECTOR))
40 #define EMPATHY_CONTACT_SELECTOR_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS \
41     ((object), EMPATHY_TYPE_CONTACT_SELECTOR, EmpathyContactSelectorClass))
42
43 typedef struct _EmpathyContactSelector EmpathyContactSelector;
44 typedef struct _EmpathyContactSelectorClass EmpathyContactSelectorClass;
45
46 struct _EmpathyContactSelector
47 {
48   GtkComboBox parent;
49 };
50
51 struct _EmpathyContactSelectorClass
52 {
53   GtkComboBoxClass parent_class;
54 };
55
56 GType empathy_contact_selector_get_type (void) G_GNUC_CONST;
57 EmpathyContactSelector *
58 empathy_contact_selector_new (EmpathyContactListStore *store);
59
60 EmpathyContact *
61 empathy_contact_selector_get_selected (EmpathyContactSelector *selector);
62
63 G_END_DECLS
64
65 #endif /* __EMPATHY_CONTACT_SELECTOR_H__ */