Adding upstream version 0.5.0.
[debian/lxappearance.git] / src / color-scheme.h
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
24 G_BEGIN_DECLS
25
26 /* initialize gtk color scheme support. */
27 void color_scheme_init(GtkBuilder* b);
28
29 /* update the color scheme page for currently selected gtk theme.
30 * should be called when currently selected gtk theme gets changed. */
31 void color_scheme_update();
32
33 /* load gtk-color-scheme from gtkrc file into hash table if it's available. */
34 gboolean gtkrc_file_get_color_scheme(const char* gtkrc_file, GHashTable* hash);
35
36 /* convert a color scheme hash table to string */
37 char* color_scheme_hash_to_str(GHashTable* hash);
38
39 /* merge a color scheme string to hash table. */
40 void color_scheme_str_to_hash(GHashTable* hash, const char* color_str);
41
42 G_END_DECLS
43
44 #endif /* __COLOR_SCHEME_H__ */