]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-theme-manager.h
sort contacts by most recent event
[empathy.git] / libempathy-gtk / empathy-theme-manager.h
1 /*
2  * Copyright (C) 2005-2007 Imendio AB
3  * Copyright (C) 2008-2012 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: Xavier Claessens <xclaesse@gmail.com>
21  */
22
23 #ifndef __EMPATHY_THEME_MANAGER_H__
24 #define __EMPATHY_THEME_MANAGER_H__
25
26 #include "empathy-theme-adium.h"
27
28 G_BEGIN_DECLS
29
30 /* TYPE MACROS */
31 #define EMPATHY_TYPE_THEME_MANAGER \
32   (empathy_theme_manager_get_type ())
33 #define EMPATHY_THEME_MANAGER(obj) \
34   (G_TYPE_CHECK_INSTANCE_CAST((obj), \
35     EMPATHY_TYPE_THEME_MANAGER, \
36     EmpathyThemeManager))
37 #define EMPATHY_THEME_MANAGER_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_CAST((klass), \
39     EMPATHY_TYPE_THEME_MANAGER, \
40     EmpathyThemeManagerClass))
41 #define EMPATHY_IS_THEME_MANAGER(obj) \
42   (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
43     EMPATHY_TYPE_THEME_MANAGER))
44 #define EMPATHY_IS_THEME_MANAGER_CLASS(klass) \
45   (G_TYPE_CHECK_CLASS_TYPE((klass), \
46     EMPATHY_TYPE_THEME_MANAGER))
47 #define EMPATHY_THEME_MANAGER_GET_CLASS(obj) \
48   (G_TYPE_INSTANCE_GET_CLASS ((obj), \
49     EMPATHY_TYPE_THEME_MANAGER, \
50     EmpathyThemeManagerClass))
51
52
53 typedef struct _EmpathyThemeManager      EmpathyThemeManager;
54 typedef struct _EmpathyThemeManagerClass EmpathyThemeManagerClass;
55 typedef struct _EmpathyThemeManagerPriv EmpathyThemeManagerPriv;
56
57 struct _EmpathyThemeManager
58 {
59   GObject parent;
60   EmpathyThemeManagerPriv *priv;
61 };
62
63 struct _EmpathyThemeManagerClass
64 {
65   GObjectClass parent_class;
66 };
67
68 GType empathy_theme_manager_get_type (void) G_GNUC_CONST;
69 EmpathyThemeManager * empathy_theme_manager_dup_singleton (void);
70 GList * empathy_theme_manager_get_adium_themes (void);
71 EmpathyThemeAdium * empathy_theme_manager_create_view (EmpathyThemeManager *self);
72 gchar * empathy_theme_manager_find_theme (const gchar *name);
73
74 gchar * empathy_theme_manager_dup_theme_name_from_path (const gchar *path);
75
76 G_END_DECLS
77
78 #endif /* __EMPATHY_THEME_MANAGER_H__ */