2 * Copyright (C) 2008 Collabora Ltd.
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.
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.
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
18 * Authors: Elliot Fairweather <elliot.fairweather@collabora.co.uk>
21 #ifndef __EMPATHY_CONTACT_SELECTOR_H__
22 #define __EMPATHY_CONTACT_SELECTOR_H__
26 #include <glib-object.h>
29 #include <libempathy/empathy-contact.h>
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))
43 typedef struct _EmpathyContactSelector EmpathyContactSelector;
44 typedef struct _EmpathyContactSelectorClass EmpathyContactSelectorClass;
46 struct _EmpathyContactSelector
51 struct _EmpathyContactSelectorClass
53 GtkComboBoxClass parent_class;
56 GType empathy_contact_selector_get_type (void) G_GNUC_CONST;
57 EmpathyContactSelector *
58 empathy_contact_selector_new (EmpathyContactListStore *store);
61 empathy_contact_selector_get_selected (EmpathyContactSelector *selector);
65 #endif /* __EMPATHY_CONTACT_SELECTOR_H__ */