gtkicon-theme.h

Go to the documentation of this file.
00001 
00005 /* pidgin
00006  *
00007  * Pidgin is the legal property of its developers, whose names are too numerous
00008  * to list here.  Please refer to the COPYRIGHT file distributed with this
00009  * source distribution.
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
00024  */
00025 
00026 #ifndef PIDGIN_ICON_THEME_H
00027 #define PIDGIN_ICON_THEME_H
00028 
00029 #include <glib.h>
00030 #include <glib-object.h>
00031 #include "theme.h"
00032 
00040 typedef struct _PidginIconTheme        PidginIconTheme;
00041 typedef struct _PidginIconThemeClass   PidginIconThemeClass;
00042 
00043 #define PIDGIN_TYPE_ICON_THEME            (pidgin_icon_theme_get_type ())
00044 #define PIDGIN_ICON_THEME(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIDGIN_TYPE_ICON_THEME, PidginIconTheme))
00045 #define PIDGIN_ICON_THEME_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), PIDGIN_TYPE_ICON_THEME, PidginIconThemeClass))
00046 #define PIDGIN_IS_ICON_THEME(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIDGIN_TYPE_ICON_THEME))
00047 #define PIDGIN_IS_ICON_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIDGIN_TYPE_ICON_THEME))
00048 #define PIDGIN_ICON_THEME_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), PIDGIN_TYPE_ICON_THEME, PidginIconThemeClass))
00049 
00050 struct _PidginIconTheme
00051 {
00052     PurpleTheme parent;
00053     gpointer priv;
00054 };
00055 
00056 struct _PidginIconThemeClass
00057 {
00058     PurpleThemeClass parent_class;
00059 };
00060 
00061 /**************************************************************************/
00063 /**************************************************************************/
00064 G_BEGIN_DECLS
00065 
00070 GType pidgin_icon_theme_get_type(void);
00071 
00080 const gchar *pidgin_icon_theme_get_icon(PidginIconTheme *theme,
00081         const gchar *event);
00082 
00090 void pidgin_icon_theme_set_icon(PidginIconTheme *theme,
00091         const gchar *icon_id,
00092         const gchar *filename);
00093 
00094 G_END_DECLS
00095 #endif /* PIDGIN_ICON_THEME_H */