2 * Copyright (C) 2005-2007 Imendio AB
3 * Copyright (C) 2008-2012 Collabora Ltd.
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., 51 Franklin St, Fifth Floor,
18 * Boston, MA 02110-1301 USA
20 * Authors: Xavier Claessens <xclaesse@gmail.com>
23 #ifndef __EMPATHY_THEME_MANAGER_H__
24 #define __EMPATHY_THEME_MANAGER_H__
26 #include <glib-object.h>
27 #include "empathy-theme-adium.h"
32 #define EMPATHY_TYPE_THEME_MANAGER \
33 (empathy_theme_manager_get_type ())
34 #define EMPATHY_THEME_MANAGER(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
36 EMPATHY_TYPE_THEME_MANAGER, \
38 #define EMPATHY_THEME_MANAGER_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_CAST((klass), \
40 EMPATHY_TYPE_THEME_MANAGER, \
41 EmpathyThemeManagerClass))
42 #define EMPATHY_IS_THEME_MANAGER(obj) \
43 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
44 EMPATHY_TYPE_THEME_MANAGER))
45 #define EMPATHY_IS_THEME_MANAGER_CLASS(klass) \
46 (G_TYPE_CHECK_CLASS_TYPE((klass), \
47 EMPATHY_TYPE_THEME_MANAGER))
48 #define EMPATHY_THEME_MANAGER_GET_CLASS(obj) \
49 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
50 EMPATHY_TYPE_THEME_MANAGER, \
51 EmpathyThemeManagerClass))
54 typedef struct _EmpathyThemeManager EmpathyThemeManager;
55 typedef struct _EmpathyThemeManagerClass EmpathyThemeManagerClass;
56 typedef struct _EmpathyThemeManagerPriv EmpathyThemeManagerPriv;
58 struct _EmpathyThemeManager
61 EmpathyThemeManagerPriv *priv;
64 struct _EmpathyThemeManagerClass
66 GObjectClass parent_class;
69 GType empathy_theme_manager_get_type (void) G_GNUC_CONST;
70 EmpathyThemeManager * empathy_theme_manager_dup_singleton (void);
71 GList * empathy_theme_manager_get_adium_themes (void);
72 EmpathyThemeAdium * empathy_theme_manager_create_view (EmpathyThemeManager *self);
73 gchar * empathy_theme_manager_find_theme (const gchar *name);
75 gchar * empathy_theme_manager_dup_theme_name_from_path (const gchar *path);
79 #endif /* __EMPATHY_THEME_MANAGER_H__ */