From: Thierry Lorthiois Date: Tue, 30 Nov 2010 20:24:38 +0000 (+0000) Subject: better backward compatibility X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=abefd67cde68ad18e4f0d009b0ed327206e4932c;p=chaz%2Ftint2 better backward compatibility --- diff --git a/src/config.c b/src/config.c index bebab03..d75ba20 100644 --- a/src/config.c +++ b/src/config.c @@ -560,6 +560,15 @@ void add_entry (char *key, char *value) /* Systray */ else if (strcmp (key, "systray_padding") == 0) { + if (new_config_file == 0) { + if (panel_items_order) { + char* tmp = g_strconcat(panel_items_order, "S", NULL); + g_free( panel_items_order ); + panel_items_order = tmp; + } + else + panel_items_order = g_strdup("S"); + } extract_values(value, &value1, &value2, &value3); systray.area.paddingxlr = systray.area.paddingx = atoi (value1); if (value2) systray.area.paddingy = atoi (value2);