From 6929a16a2eb615cd4efb67f43d3289f0916614b5 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sun, 6 Sep 2009 14:42:20 +0200 Subject: added config option to control close(X) button behaviour --- conf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'conf.c') 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); } -- cgit v1.2.3