comparison finch/libgnt/gntstyle.h @ 21161:e119edfc0fb0

applied changes from 172a59b41412c4630834d66f2e7ec3be970cc36b through 365b126365cc18309aea7f8eef0e9b2a19e6bda8 And others.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 07 Nov 2007 14:07:52 +0000
parents bddf964880cf
children 6de09629f091
comparison
equal deleted inserted replaced
21160:45e550db32ab 21161:e119edfc0fb0
36 GNT_STYLE_REMPOS = 4, 36 GNT_STYLE_REMPOS = 4,
37 GNT_STYLES 37 GNT_STYLES
38 } GntStyle; 38 } GntStyle;
39 39
40 /** 40 /**
41 * 41 * Read configuration from a file.
42 * @param filename 42 *
43 * @param filename The filename to read configuration from.
43 */ 44 */
44 void gnt_style_read_configure_file(const char *filename); 45 void gnt_style_read_configure_file(const char *filename);
45 46
47 /**
48 * Get the user-setting for a style.
49 * @param style The style.
50 * @return The user-setting, or @c NULL.
51 */
46 const char *gnt_style_get(GntStyle style); 52 const char *gnt_style_get(GntStyle style);
47 53
48 /** 54 /**
49 * Get the value of a preference in ~/.gntrc. 55 * Get the value of a preference in ~/.gntrc.
50 * 56 *
68 * @since 2.0.0 (gnt), 2.1.0 (pidgin) 74 * @since 2.0.0 (gnt), 2.1.0 (pidgin)
69 */ 75 */
70 gboolean gnt_style_parse_bool(const char *value); 76 gboolean gnt_style_parse_bool(const char *value);
71 77
72 /** 78 /**
73 * 79 * Get the boolean value for a user-setting.
74 * @param style
75 * @param def
76 * 80 *
77 * @return 81 * @param style The style.
82 * @param def The default value (i.e, the value if the user didn't define
83 * any value)
84 *
85 * @return The value of the setting.
78 */ 86 */
79 gboolean gnt_style_get_bool(GntStyle style, gboolean def); 87 gboolean gnt_style_get_bool(GntStyle style, gboolean def);
80 88
81 /* This should be called only once for the each type */
82 /** 89 /**
83 * 90 * @internal
84 * @param type
85 * @param hash
86 */ 91 */
87 void gnt_styles_get_keyremaps(GType type, GHashTable *hash); 92 void gnt_styles_get_keyremaps(GType type, GHashTable *hash);
88 93
89 /** 94 /**
90 * 95 * @internal
91 * @param type
92 * @param klass
93 */ 96 */
94 void gnt_style_read_actions(GType type, GntBindableClass *klass); 97 void gnt_style_read_actions(GType type, GntBindableClass *klass);
95 98
99 /**
100 * @internal
101 * Read workspace information.
102 */
96 void gnt_style_read_workspaces(GntWM *wm); 103 void gnt_style_read_workspaces(GntWM *wm);
97 104
98 /** 105 /**
99 * 106 * Initialize style settings.
100 */ 107 */
101 void gnt_init_styles(void); 108 void gnt_init_styles(void);
102 109
103 /** 110 /**
104 * 111 * Uninitialize style settings.
105 */ 112 */
106 void gnt_uninit_styles(void); 113 void gnt_uninit_styles(void);
107 114
115