summaryrefslogtreecommitdiff
path: root/src/core/wee-config-file.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-11-07 18:27:16 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-11-07 18:27:16 +0100
commit67d8312f461b74b747088b6661a21426ab2a01e6 (patch)
tree2f797a4e048205a1eb03b9ddbf82166e26046940 /src/core/wee-config-file.c
parentbc5bb29970ee029ee646b8805b83b3a9d71a2ef8 (diff)
downloadweechat-67d8312f461b74b747088b6661a21426ab2a01e6.zip
Update developer guide (add 50% of new C API functions)
Diffstat (limited to 'src/core/wee-config-file.c')
-rw-r--r--src/core/wee-config-file.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/src/core/wee-config-file.c b/src/core/wee-config-file.c
index e18a22440..e478e8114 100644
--- a/src/core/wee-config-file.c
+++ b/src/core/wee-config-file.c
@@ -804,14 +804,10 @@ config_file_string_to_boolean (const char *text)
/*
* config_file_option_reset: set default value for an option
- * return one of these values:
- * WEECHAT_CONFIG_OPTION_SET_OK_CHANGED
- * WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE
- * WEECHAT_CONFIG_OPTION_SET_ERROR
- *
- * 2 if ok (value changed)
- * 1 if ok (value is the same)
- * 0 if failed
+ * return one of these values:
+ * WEECHAT_CONFIG_OPTION_SET_OK_CHANGED
+ * WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE
+ * WEECHAT_CONFIG_OPTION_SET_ERROR
*/
int
@@ -1447,16 +1443,13 @@ config_file_option_string (struct t_config_option *option)
* config_file_option_color: return color value of an option
*/
-int
+char *
config_file_option_color (struct t_config_option *option)
{
if (!option)
- return 0;
-
- if (option->type == CONFIG_OPTION_TYPE_COLOR)
- return CONFIG_COLOR(option);
- else
- return 0;
+ return NULL;
+
+ return gui_color_get_name (CONFIG_COLOR(option));
}
/*