1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2007 Imendio AB
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.
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.
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.
21 #ifndef __EMPATHY_THEME_H__
22 #define __EMPATHY_THEME_H__
24 #include <glib-object.h>
25 #include <gtk/gtktextbuffer.h>
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))
36 typedef struct _EmpathyTheme EmpathyTheme;
37 typedef struct _EmpathyThemeClass EmpathyThemeClass;
39 #include "empathy-chat-view.h"
41 struct _EmpathyTheme {
46 struct _EmpathyThemeClass {
47 GObjectClass parent_class;
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,
58 void (*append_timestamp) (EmpathyTheme *theme,
59 EmpathyChatView *view,
60 EmpathyMessage *message,
63 void (*append_spacing) (EmpathyTheme *theme,
64 EmpathyChatView *view);
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,
73 void empathy_theme_append_text (EmpathyTheme *theme,
74 EmpathyChatView *view,
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,
83 void empathy_theme_append_timestamp (EmpathyTheme *theme,
84 EmpathyChatView *view,
85 EmpathyMessage *message,
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,
97 #endif /* __EMPATHY_THEME_H__ */