]> Dogcows Code - chaz/tint2/commitdiff
better backward compatibility
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Tue, 30 Nov 2010 20:24:38 +0000 (20:24 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Tue, 30 Nov 2010 20:24:38 +0000 (20:24 +0000)
src/config.c

index bebab0332127844c467e89e215d003213ab0ade9..d75ba209a5c742a5ae0652603b659c2489026e5d 100644 (file)
@@ -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);
This page took 0.019117 seconds and 4 git commands to generate.