[SF#822] Use gtk_rc_get_default_files() for gtkrc file, so GTK2_RC_FILES is checked.
[lxde/lxappearance.git] / src / color-scheme.h
CommitLineData
15c155a6
HJYP
1// color-scheme.h
2//
3// Copyright 2010 Hong Jen Yee (PCMan) <pcman.tw@gmail.com>
4//
5// This program is free software; you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation; either version 2 of the License, or
8// (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with this program; if not, write to the Free Software
17// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18// MA 02110-1301, USA.
19
20
21#ifndef __COLOR_SCHEME_H__
22#define __COLOR_SCHEME_H__
23
24G_BEGIN_DECLS
25
c92e9c11 26/* initialize gtk color scheme support. */
71ce58a7 27void color_scheme_init(GtkBuilder* b);
c92e9c11
HJYP
28
29/* update the color scheme page for currently selected gtk theme.
30 * should be called when currently selected gtk theme gets changed. */
15c155a6
HJYP
31void color_scheme_update();
32
c92e9c11
HJYP
33/* load gtk-color-scheme from gtkrc file into hash table if it's available. */
34gboolean gtkrc_file_get_color_scheme(const char* gtkrc_file, GHashTable* hash);
35
36/* convert a color scheme hash table to string */
37char* color_scheme_hash_to_str(GHashTable* hash);
38
39/* merge a color scheme string to hash table. */
40void color_scheme_str_to_hash(GHashTable* hash, const char* color_str);
41
15c155a6
HJYP
42G_END_DECLS
43
44#endif /* __COLOR_SCHEME_H__ */