summaryrefslogtreecommitdiff
path: root/conf.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-06 14:42:20 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-06 14:42:20 +0200
commit6929a16a2eb615cd4efb67f43d3289f0916614b5 (patch)
tree8b143f779ce8a5e0cefbd1b3f86b73157025d9c6 /conf.c
parentea367e0df1a3ecfb6c59cd4285998e88db98c26c (diff)
added config option to control close(X) button behaviour
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/conf.c b/conf.c
index bd28f2ec..ff841c98 100644
--- a/conf.c
+++ b/conf.c
@@ -26,6 +26,7 @@ int conf_src_quality = 1;
char conf_hvsc_path[1024] = "";
int conf_hvsc_enable = 0;
char conf_blacklist_plugins[1024]; // plugins listed in this option will not be loaded
+int conf_close_send_to_tray = 0;
int
conf_load (void) {
@@ -89,6 +90,9 @@ conf_load (void) {
strncpy (conf_blacklist_plugins, value, sizeof (conf_blacklist_plugins));
conf_blacklist_plugins[sizeof (conf_blacklist_plugins)-1] = 0;
}
+ else if (!strcasecmp (str, "close_send_to_tray")) {
+ conf_close_send_to_tray = atoi (value);
+ }
else {
fprintf (stderr, "error in config file line %d\n", line);
}