[SF#822] Use gtk_rc_get_default_files() for gtkrc file, so GTK2_RC_FILES is checked.
[lxde/lxappearance.git] / src / icon-theme.h
CommitLineData
0cd84ed6
HJYP
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
27G_BEGIN_DECLS
28
21e3df63 29//extern char** icon_theme_dirs;
2471c16d 30
15c155a6
HJYP
31typedef struct
32{
33 char* name;
34 char* disp_name;
35 char* comment;
2471c16d 36 const char* base_dir;
15c155a6
HJYP
37 gboolean has_icon : 1;
38 gboolean has_cursor : 1;
2471c16d 39 gboolean is_removable : 1;
15c155a6
HJYP
40}IconTheme;
41
0cd84ed6 42void icon_theme_init(GtkBuilder* b);
2471c16d 43void load_icon_themes_from_dir(const char* base_dir, const char* theme_dir, GKeyFile* kf);
9f90caed
HJYP
44
45gint icon_theme_cmp_name(IconTheme* t, const char* name);
46gint icon_theme_cmp_disp_name(IconTheme* t1, IconTheme* t2);
0cd84ed6
HJYP
47
48G_END_DECLS
49
50#endif