Mercurial > pidgin
diff finch/libgnt/gntstyle.h @ 18506:9f029b7208f1
Allow one-line high buttons. Specify 'small-button = true' under 'general',
or 'finch'. This gets rid of the border from the buttons, and does the
highlighting a little differently.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 12 Jul 2007 23:57:56 +0000 |
parents | 8aff2d3d6820 |
children | 44b4e8bd759b |
line wrap: on
line diff
--- a/finch/libgnt/gntstyle.h Thu Jul 12 03:19:38 2007 +0000 +++ b/finch/libgnt/gntstyle.h Thu Jul 12 23:57:56 2007 +0000 @@ -45,9 +45,27 @@ const char *gnt_style_get(GntStyle style); +/** + * Get the value of a preference in ~/.gntrc. + * + * @param group The name of the group in the keyfile. If @c NULL, the prgname + * will be used first, if available. Otherwise, "general" will be used. + * @param key The key + * + * @return The value of the setting as a string, or @c NULL + */ char *gnt_style_get_from_name(const char *group, const char *key); /** + * Parse a boolean preference. For example, if 'value' is "false" (ignoring case) + * or "0", the return value will be @c FALSE, otherwise @c TRUE. + * + * @param value The value of the boolean setting as a string + * @return The boolean value + */ +gboolean gnt_style_parse_bool(const char *value); + +/** * * @param style * @param def