pidgin: gtkicon-theme.h Source File

pidgin 2.14.4

Loading...
Searching...
No Matches
gtkicon-theme.h
Go to the documentation of this file.
1
5/* pidgin
6 *
7 * Pidgin 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 PIDGIN_ICON_THEME_H
27#define PIDGIN_ICON_THEME_H
28
29#include <glib.h>
30#include <glib-object.h>
31#include "theme.h"
32
40 typedef struct _PidginIconTheme PidginIconTheme;
41typedef struct _PidginIconThemeClass PidginIconThemeClass;
42
43#define PIDGIN_TYPE_ICON_THEME (pidgin_icon_theme_get_type ())
44#define PIDGIN_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIDGIN_TYPE_ICON_THEME, PidginIconTheme))
45#define PIDGIN_ICON_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIDGIN_TYPE_ICON_THEME, PidginIconThemeClass))
46#define PIDGIN_IS_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIDGIN_TYPE_ICON_THEME))
47#define PIDGIN_IS_ICON_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIDGIN_TYPE_ICON_THEME))
48#define PIDGIN_ICON_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIDGIN_TYPE_ICON_THEME, PidginIconThemeClass))
49
50 struct _PidginIconTheme
51{
52 PurpleTheme parent;
53 gpointer priv;
54};
55
56 struct _PidginIconThemeClass
57{
58 PurpleThemeClass parent_class;
59};
60
61/**************************************************************************/
63/**************************************************************************/
64G_BEGIN_DECLS
65
70GType pidgin_icon_theme_get_type(void);
71
80 const gchar *pidgin_icon_theme_get_icon(PidginIconTheme *theme,
81 const gchar *event);
82
90 void pidgin_icon_theme_set_icon(PidginIconTheme *theme,
91 const gchar *icon_id,
92 const gchar *filename);
93
94G_END_DECLS
95#endif /* PIDGIN_ICON_THEME_H */
pidgin_icon_theme_get_icon
const gchar * pidgin_icon_theme_get_icon(PidginIconTheme *theme, const gchar *event)
Returns a copy of the filename for the icon event or NULL if it is not set.
pidgin_icon_theme_set_icon
void pidgin_icon_theme_set_icon(PidginIconTheme *theme, const gchar *icon_id, const gchar *filename)
Sets the filename for a given icon id, setting the icon to NULL will remove the icon from the theme.
pidgin_icon_theme_get_type
G_BEGIN_DECLS GType pidgin_icon_theme_get_type(void)
GObject foo.
_PidginIconThemeClass
Definition: gtkicon-theme.h:57
_PidginIconTheme
Definition: gtkicon-theme.h:51
_PurpleThemeClass
Definition: theme.h:56
_PurpleTheme
Definition: theme.h:50
theme.h
Purple Theme Abstact Class API.