Mercurial > pidgin.yaz
comparison finch/libgnt/gntstyle.h @ 18068:0b3d6ea61760
propagate from branch 'im.pidgin.pidgin' (head 4b50880d8517570eaa67d4cd9d88c5934bb832f1)
to branch 'im.pidgin.pidgin.2.1.0' (head fefd59692d4177b91d52f6d71b1565b76c88725d)
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 07 Jun 2007 14:48:33 +0000 |
parents | 1cedd520cd18 |
children | 08776fc5c06f |
comparison
equal
deleted
inserted
replaced
17782:5eebb9b24e30 | 18068:0b3d6ea61760 |
---|---|
1 /** | |
2 * GNT - The GLib Ncurses Toolkit | |
3 * | |
4 * GNT is the legal property of its developers, whose names are too numerous | |
5 * to list here. Please refer to the COPYRIGHT file distributed with this | |
6 * source distribution. | |
7 * | |
8 * This library is free software; you can redistribute it and/or modify | |
9 * it under the terms of the GNU General Public License as published by | |
10 * the Free Software Foundation; either version 2 of the License, or | |
11 * (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, | |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU General Public License | |
19 * along with this program; if not, write to the Free Software | |
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
21 */ | |
22 | |
1 #include "gnt.h" | 23 #include "gnt.h" |
2 | 24 |
3 typedef enum | 25 typedef enum |
4 { | 26 { |
5 GNT_STYLE_SHADOW = 0, | 27 GNT_STYLE_SHADOW = 0, |
8 GNT_STYLE_WM = 3, | 30 GNT_STYLE_WM = 3, |
9 GNT_STYLE_REMPOS = 4, | 31 GNT_STYLE_REMPOS = 4, |
10 GNT_STYLES | 32 GNT_STYLES |
11 } GntStyle; | 33 } GntStyle; |
12 | 34 |
35 /** | |
36 * | |
37 * @param filename | |
38 */ | |
13 void gnt_style_read_configure_file(const char *filename); | 39 void gnt_style_read_configure_file(const char *filename); |
14 | 40 |
15 const char *gnt_style_get(GntStyle style); | 41 const char *gnt_style_get(GntStyle style); |
16 | 42 |
43 const char *gnt_style_get_from_name(const char *key); | |
44 | |
45 /** | |
46 * | |
47 * @param style | |
48 * @param def | |
49 * | |
50 * @return | |
51 */ | |
17 gboolean gnt_style_get_bool(GntStyle style, gboolean def); | 52 gboolean gnt_style_get_bool(GntStyle style, gboolean def); |
18 | 53 |
19 /* This should be called only once for the each type */ | 54 /* This should be called only once for the each type */ |
55 /** | |
56 * | |
57 * @param type | |
58 * @param hash | |
59 */ | |
20 void gnt_styles_get_keyremaps(GType type, GHashTable *hash); | 60 void gnt_styles_get_keyremaps(GType type, GHashTable *hash); |
21 | 61 |
62 /** | |
63 * | |
64 * @param type | |
65 * @param klass | |
66 */ | |
22 void gnt_style_read_actions(GType type, GntBindableClass *klass); | 67 void gnt_style_read_actions(GType type, GntBindableClass *klass); |
23 | 68 |
69 /** | |
70 * | |
71 */ | |
24 void gnt_init_styles(void); | 72 void gnt_init_styles(void); |
25 | 73 |
74 /** | |
75 * | |
76 */ | |
26 void gnt_uninit_styles(void); | 77 void gnt_uninit_styles(void); |
27 | 78 |