]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-theme.h
Updated Basque translation.
[empathy.git] / libempathy-gtk / empathy-theme.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2007 Imendio AB
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., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __EMPATHY_THEME_H__
22 #define __EMPATHY_THEME_H__
23
24 #include <glib-object.h>
25 #include <gtk/gtktextbuffer.h>
26
27 G_BEGIN_DECLS
28
29 #define EMPATHY_TYPE_THEME            (empathy_theme_get_type ())
30 #define EMPATHY_THEME(o)              (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_THEME, EmpathyTheme))
31 #define EMPATHY_THEME_CLASS(k)        (G_TYPE_CHECK_CLASS_CAST ((k), EMPATHY_TYPE_THEME, EmpathyThemeClass))
32 #define EMPATHY_IS_THEME(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_THEME))
33 #define EMPATHY_IS_THEME_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_THEME))
34 #define EMPATHY_THEME_GET_CLASS(o)    (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_THEME, EmpathyThemeClass))
35
36 typedef struct _EmpathyTheme      EmpathyTheme;
37 typedef struct _EmpathyThemeClass EmpathyThemeClass;
38
39 #include "empathy-chat-view.h"
40
41 struct _EmpathyTheme {
42         GObject parent;
43         gpointer priv;
44 };
45
46 struct _EmpathyThemeClass {
47         GObjectClass parent_class;
48
49         /* <vtable> */
50         void (*update_view)         (EmpathyTheme    *theme,
51                                      EmpathyChatView *view);
52         void (*append_message)      (EmpathyTheme    *theme,
53                                      EmpathyChatView *view,
54                                      EmpathyMessage  *message);
55         void (*append_event)        (EmpathyTheme    *theme,
56                                      EmpathyChatView *view,
57                                      const gchar     *str);
58         void (*append_timestamp)    (EmpathyTheme    *theme,
59                                      EmpathyChatView *view,
60                                      EmpathyMessage  *message,
61                                      gboolean         show_date,
62                                      gboolean         show_time);
63         void (*append_spacing)      (EmpathyTheme    *theme,
64                                      EmpathyChatView *view);
65 };
66
67 GType          empathy_theme_get_type                   (void) G_GNUC_CONST;
68 void           empathy_theme_update_view                (EmpathyTheme    *theme,
69                                                          EmpathyChatView *view);
70 void           empathy_theme_append_message             (EmpathyTheme    *theme,
71                                                          EmpathyChatView *view,
72                                                          EmpathyMessage  *msg);
73 void           empathy_theme_append_text                (EmpathyTheme    *theme,
74                                                          EmpathyChatView *view,
75                                                          const gchar     *body,
76                                                          const gchar     *tag, 
77                                                          const gchar     *link_tag);
78 void           empathy_theme_append_spacing             (EmpathyTheme    *theme,
79                                                          EmpathyChatView *view);
80 void           empathy_theme_append_event               (EmpathyTheme    *theme,
81                                                          EmpathyChatView *view,
82                                                          const gchar     *str);
83 void           empathy_theme_append_timestamp           (EmpathyTheme    *theme,
84                                                          EmpathyChatView *view,
85                                                          EmpathyMessage  *message,
86                                                          gboolean         show_date,
87                                                          gboolean         show_time);
88 void           empathy_theme_maybe_append_date_and_time (EmpathyTheme    *theme,
89                                                          EmpathyChatView *view,
90                                                          EmpathyMessage  *message);
91 gboolean       empathy_theme_get_show_avatars           (EmpathyTheme    *theme);
92 void           empathy_theme_set_show_avatars           (EmpathyTheme    *theme,
93                                                          gboolean         show);
94
95 G_END_DECLS
96
97 #endif /* __EMPATHY_THEME_H__ */
98