Update Greek translation
[empathy-mirror.git] / libempathy-gtk / empathy-contact-widget.h
blob5f44adb6bff949198d14860ee3be424a276fcbda
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * Copyright (C) 2007-2008 Collabora Ltd.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library 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 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 * Authors: Xavier Claessens <xclaesse@gmail.com>
22 #ifndef __EMPATHY_CONTACT_WIDGET_H__
23 #define __EMPATHY_CONTACT_WIDGET_H__
25 #include <gtk/gtk.h>
27 #include "empathy-account-chooser.h"
28 #include "empathy-contact.h"
30 G_BEGIN_DECLS
32 typedef struct _EmpathyContactWidget EmpathyContactWidget;
33 typedef struct _EmpathyContactWidgetClass EmpathyContactWidgetClass;
34 typedef struct _EmpathyContactWidgetPriv EmpathyContactWidgetPriv;
36 struct _EmpathyContactWidgetClass
38 /*<private>*/
39 GtkBoxClass parent_class;
42 struct _EmpathyContactWidget
44 /*<private>*/
45 GtkBox parent;
46 EmpathyContactWidgetPriv *priv;
49 GType empathy_contact_widget_get_type (void);
51 /* TYPE MACROS */
52 #define EMPATHY_TYPE_CONTACT_WIDGET \
53 (empathy_contact_widget_get_type ())
54 #define EMPATHY_CONTACT_WIDGET(obj) \
55 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
56 EMPATHY_TYPE_CONTACT_WIDGET, \
57 EmpathyContactWidget))
58 #define EMPATHY_CONTACT_WIDGET_CLASS(klass) \
59 (G_TYPE_CHECK_CLASS_CAST((klass), \
60 EMPATHY_TYPE_CONTACT_WIDGET, \
61 EmpathyContactWidgetClass))
62 #define EMPATHY_IS_CONTACT_WIDGET(obj) \
63 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
64 EMPATHY_TYPE_CONTACT_WIDGET))
65 #define EMPATHY_IS_CONTACT_WIDGET_CLASS(klass) \
66 (G_TYPE_CHECK_CLASS_TYPE((klass), \
67 EMPATHY_TYPE_CONTACT_WIDGET))
68 #define EMPATHY_CONTACT_WIDGET_GET_CLASS(obj) \
69 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
70 EMPATHY_TYPE_CONTACT_WIDGET, \
71 EmpathyContactWidgetClass))
73 GtkWidget * empathy_contact_widget_new (EmpathyContact *contact);
74 EmpathyContact *empathy_contact_widget_get_contact (GtkWidget *widget);
75 void empathy_contact_widget_set_contact (GtkWidget *widget,
76 EmpathyContact *contact);
77 void empathy_contact_widget_set_account_filter (GtkWidget *widget,
78 EmpathyAccountChooserFilterFunc filter, gpointer user_data);
79 const gchar *empathy_contact_widget_get_alias (GtkWidget *widget);
81 G_END_DECLS
83 #endif /* __EMPATHY_CONTACT_WIDGET_H__ */