pidgin 2.14.14dev
Loading...
Searching...
No Matches
theme.h
Go to the documentation of this file.
1
5/* purple
6 *
7 * Purple is the legal property of its developers, whose names are too numerous
8 * to list here. Please refer to the COPYRIGHT file distributed with this
9 * source distribution.
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
24 */
25
26#ifndef PURPLE_THEME_H
27#define PURPLE_THEME_H
28
29#include <glib.h>
30#include <glib-object.h>
31#include "imgstore.h"
32
41
42#define PURPLE_TYPE_THEME (purple_theme_get_type ())
43#define PURPLE_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PURPLE_TYPE_THEME, PurpleTheme))
44#define PURPLE_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PURPLE_TYPE_THEME, PurpleThemeClass))
45#define PURPLE_IS_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PURPLE_TYPE_THEME))
46#define PURPLE_IS_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PURPLE_TYPE_THEME))
47#define PURPLE_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PURPLE_TYPE_THEME, PurpleThemeClass))
48
50{
51 GObject parent;
52 gpointer priv;
53};
54
56{
57 GObjectClass parent_class;
58};
59
60/**************************************************************************/
62/**************************************************************************/
63G_BEGIN_DECLS
64
70
79
86void purple_theme_set_name(PurpleTheme *theme, const gchar *name);
87
96
103void purple_theme_set_description(PurpleTheme *theme, const gchar *description);
104
113
120void purple_theme_set_author(PurpleTheme *theme, const gchar *author);
121
130
139
146void purple_theme_set_dir(PurpleTheme *theme, const gchar *dir);
147
156
165
172void purple_theme_set_image(PurpleTheme *theme, const gchar *img);
173
174G_END_DECLS
175#endif /* PURPLE_THEME_H */
IM Image Store API.
void purple_theme_set_author(PurpleTheme *theme, const gchar *author)
Sets the author of the PurpleTheme object.
void purple_theme_set_name(PurpleTheme *theme, const gchar *name)
Sets the name of the PurpleTheme object.
const gchar * purple_theme_get_dir(PurpleTheme *theme)
Returns the directory of the PurpleTheme object.
const gchar * purple_theme_get_name(PurpleTheme *theme)
Returns the name of the PurpleTheme object.
void purple_theme_set_dir(PurpleTheme *theme, const gchar *dir)
Sets the directory of the PurpleTheme object.
G_BEGIN_DECLS GType purple_theme_get_type(void)
GObject foo.
const gchar * purple_theme_get_type_string(PurpleTheme *theme)
Returns the type (string) of the PurpleTheme object.
const gchar * purple_theme_get_description(PurpleTheme *theme)
Returns the description of the PurpleTheme object.
const gchar * purple_theme_get_author(PurpleTheme *theme)
Returns the author of the PurpleTheme object.
gchar * purple_theme_get_image_full(PurpleTheme *theme)
Returns the image preview and directory of the PurpleTheme object.
const gchar * purple_theme_get_image(PurpleTheme *theme)
Returns the image preview of the PurpleTheme object.
void purple_theme_set_image(PurpleTheme *theme, const gchar *img)
Sets the directory of the PurpleTheme object.
void purple_theme_set_description(PurpleTheme *theme, const gchar *description)
Sets the description of the PurpleTheme object.