Merging upstream version 0.5.0.
[debian/lxappearance.git] / src / icon-theme.h
1 /*
2 * icon-theme.h
3 *
4 * Copyright 2010 PCMan <pcman.tw@gmail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 * MA 02110-1301, USA.
20 */
21
22 #ifndef _ICON_THEME_H_
23 #define _ICON_THEME_H_
24
25 #include <gtk/gtk.h>
26
27 G_BEGIN_DECLS
28
29 extern char** icon_theme_dirs;
30
31 typedef struct
32 {
33 char* name;
34 char* disp_name;
35 char* comment;
36 const char* base_dir;
37 gboolean has_icon : 1;
38 gboolean has_cursor : 1;
39 gboolean is_removable : 1;
40 }IconTheme;
41
42 void icon_theme_init(GtkBuilder* b);
43 void load_icon_themes_from_dir(const char* base_dir, const char* theme_dir, GKeyFile* kf);
44
45 gint icon_theme_cmp_name(IconTheme* t, const char* name);
46 gint icon_theme_cmp_disp_name(IconTheme* t1, IconTheme* t2);
47
48 G_END_DECLS
49
50 #endif