]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-individual-linker.h
Use gtk_list_store_insert_with_values ()
[empathy.git] / libempathy-gtk / empathy-individual-linker.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2010 Collabora Ltd.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
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.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18  * Boston, MA  02110-1301  USA
19  *
20  * Authors: Philip Withnall <philip.withnall@collabora.co.uk>
21  */
22
23 #ifndef __EMPATHY_INDIVIDUAL_LINKER_H__
24 #define __EMPATHY_INDIVIDUAL_LINKER_H__
25
26 #include <gtk/gtk.h>
27
28 #include <folks/folks.h>
29
30 G_BEGIN_DECLS
31
32 #define EMPATHY_TYPE_INDIVIDUAL_LINKER (empathy_individual_linker_get_type ())
33 #define EMPATHY_INDIVIDUAL_LINKER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), \
34     EMPATHY_TYPE_INDIVIDUAL_LINKER, EmpathyIndividualLinker))
35 #define EMPATHY_INDIVIDUAL_LINKER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), \
36     EMPATHY_TYPE_INDIVIDUAL_LINKER, EmpathyIndividualLinkerClass))
37 #define EMPATHY_IS_INDIVIDUAL_LINKER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
38     EMPATHY_TYPE_INDIVIDUAL_LINKER))
39 #define EMPATHY_IS_INDIVIDUAL_LINKER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), \
40     EMPATHY_TYPE_INDIVIDUAL_LINKER))
41 #define EMPATHY_INDIVIDUAL_LINKER_GET_CLASS(o) ( \
42     G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_INDIVIDUAL_LINKER, \
43         EmpathyIndividualLinkerClass))
44
45 typedef struct {
46         GtkBox parent;
47
48         /*<private>*/
49         gpointer priv;
50 } EmpathyIndividualLinker;
51
52 typedef struct {
53         GtkBoxClass parent_class;
54 } EmpathyIndividualLinkerClass;
55
56 GType empathy_individual_linker_get_type (void) G_GNUC_CONST;
57 GtkWidget * empathy_individual_linker_new (FolksIndividual *start_individual);
58
59 FolksIndividual * empathy_individual_linker_get_start_individual (
60     EmpathyIndividualLinker *self);
61 void empathy_individual_linker_set_start_individual (
62     EmpathyIndividualLinker *self,
63     FolksIndividual *individual);
64
65 GeeSet * empathy_individual_linker_get_linked_personas (
66     EmpathyIndividualLinker *self);
67
68 gboolean empathy_individual_linker_get_has_changed (
69     EmpathyIndividualLinker *self);
70
71 void empathy_individual_linker_set_search_text (EmpathyIndividualLinker *self,
72     const gchar *search_text);
73
74 G_END_DECLS
75
76 #endif /* __EMPATHY_INDIVIDUAL_LINKER_H__ */