]> Dogcows Code - chaz/tint2/blobdiff - src/config.c
update tintwizard-0.3.1 by Euan Freeman
[chaz/tint2] / src / config.c
index 9977574b93b12e91119d4946c7e6f08ac60e191f..f825d5b9ce44d045690964234fbf2d9aa3c0f9a9 100644 (file)
@@ -87,9 +87,6 @@ void init_config()
                pango_font_description_free(panel_config.g_task.font_desc);
        }
        memset(&panel_config, 0, sizeof(Panel));
-       int i;
-       for (i=0; i<TASK_STATE_COUNT; ++i)
-               panel_config.g_task.alpha[i] = 100;
        systray.alpha = 100;
        systray.sort = 3;
        old_config_file = 1;
@@ -358,6 +355,13 @@ void add_entry (char *key, char *value)
                panel_config.battery.area.bg = &g_array_index(backgrounds, Background, id);
 #endif
        }
+       else if (strcmp (key, "battery_hide") == 0) {
+#ifdef ENABLE_BATTERY
+               percentage_hide = atoi (value);
+               if (percentage_hide == 0)
+                       percentage_hide = 101;
+#endif
+       }
 
        /* Clock */
        else if (strcmp (key, "time1_format") == 0) {
@@ -592,6 +596,8 @@ void add_entry (char *key, char *value)
        else if (strcmp(key, "strut_policy") == 0) {
                if (strcmp(value, "follow_size") == 0)
                        panel_strut_policy = STRUT_FOLLOW_SIZE;
+               else if (strcmp(value, "none") == 0)
+                       panel_strut_policy = STRUT_NONE;
                else
                        panel_strut_policy = STRUT_MINIMUM;
        }
This page took 0.020748 seconds and 4 git commands to generate.