]> Dogcows Code - chaz/tint2/blobdiff - src/config.c
*add* remove of tooltip = En/Disabled. it's renamed to task_tooltip to enable/disable...
[chaz/tint2] / src / config.c
index 4b84e9412256220af65386c3a29fd3d589238f48..ae6fe31ecd3947c1fe145653732fa77f139cd9a6 100644 (file)
@@ -557,6 +557,9 @@ void add_entry (char *key, char *value)
                panel_config.g_task.config_background_mask |= (1<<status);
                if (status == TASK_NORMAL) panel_config.g_task.area.bg = panel_config.g_task.background[TASK_NORMAL];
        }
+       // "tooltip" is deprecated but here for backwards compatibility
+       else if (strcmp (key, "task_tooltip") == 0 || strcmp(key, "tooltip") == 0)
+               panel_config.g_task.tooltip_enabled = atoi(value);
 
        /* Systray */
        else if (strcmp (key, "systray_padding") == 0) {
@@ -626,8 +629,6 @@ void add_entry (char *key, char *value)
        }
 
        /* Tooltip */
-       else if (strcmp (key, "tooltip") == 0)
-               g_tooltip.enabled = atoi(value);
        else if (strcmp (key, "tooltip_show_timeout") == 0) {
                int timeout_msec = 1000*atof(value);
                g_tooltip.show_timeout_msec = timeout_msec;
This page took 0.018651 seconds and 4 git commands to generate.