#include "battery.h"
#endif
+// global path
+char *config_path = 0;
+char *thumbnail_path = 0;
// --------------------------------------------------
// backward compatibility
list_back = g_slist_append(0, calloc(1, sizeof(Area)));
panel_config = calloc(1, sizeof(Panel));
+ systray.sort = 1;
+
// window manager's menu default value == false
wm_menu = 0;
max_tick_urgent = 7;
*action = TOGGLE_ICONIFY;
else if (strcmp (event, "maximize_restore") == 0)
*action = MAXIMIZE_RESTORE;
+ else if (strcmp (event, "desktop_left") == 0)
+ *action = DESKTOP_LEFT;
+ else if (strcmp (event, "desktop_right") == 0)
+ *action = DESKTOP_RIGHT;
}
memcpy(&panel_config->g_taskbar.pix.back, &a->pix.back, sizeof(Color));
memcpy(&panel_config->g_taskbar.pix.border, &a->pix.border, sizeof(Border));
}
+ else if (strcmp (key, "taskbar_active_background_id") == 0) {
+ int id = atoi (value);
+ Area *a = g_slist_nth_data(list_back, id);
+ memcpy(&panel_config->g_taskbar.pix_active.back, &a->pix.back, sizeof(Color));
+ memcpy(&panel_config->g_taskbar.pix_active.border, &a->pix.border, sizeof(Border));
+ panel_config->g_taskbar.use_active = 1;
+ }
/* Task */
else if (strcmp (key, "task_text") == 0)
memcpy(&systray.area.pix.back, &a->pix.back, sizeof(Color));
memcpy(&systray.area.pix.border, &a->pix.border, sizeof(Border));
}
+ else if (strcmp(key, "systray_sort") == 0) {
+ if (strcmp(value, "desc") == 0)
+ systray.sort = -1;
+ else
+ systray.sort = 1;
+ }
/* Mouse actions */
else if (strcmp (key, "mouse_middle") == 0)
path1 = g_build_filename (g_get_user_config_dir(), "tint2", "tint2rc", NULL);
if (g_file_test (path1, G_FILE_TEST_EXISTS)) {
i = config_read_file (path1);
+ config_path = strdup(path1);
g_free(path1);
return i;
}
g_free(path2);
i = config_read_file (path1);
+ config_path = strdup(path1);
g_free(path1);
return i;
}