+void default_panel()
+{
+ panel1 = 0;
+ nb_panel = 0;
+ default_icon = NULL;
+ task_dragged = 0;
+ panel_horizontal = 1;
+ panel_position = CENTER;
+ panel_items_order = strdup("LTBSC"); // Default order : Launcher, Taskbar, Battery, Systray, Clock
+ panel_autohide = 0;
+ panel_autohide_show_timeout = 0;
+ panel_autohide_hide_timeout = 0;
+ panel_autohide_height = 5; // for vertical panels this is of course the width
+ panel_strut_policy = STRUT_FOLLOW_SIZE;
+ panel_dock = 0; // default not in the dock
+ panel_layer = BOTTOM_LAYER; // default is bottom layer
+ wm_menu = 0;
+ max_tick_urgent = 14;
+ backgrounds = g_array_new(0, 0, sizeof(Background));
+
+ memset(&panel_config, 0, sizeof(Panel));
+
+ // append full transparency background
+ Background transparent_bg;
+ memset(&transparent_bg, 0, sizeof(Background));
+ g_array_append_val(backgrounds, transparent_bg);
+}
+
+void cleanup_panel()
+{
+ if (!panel1) return;
+
+ cleanup_taskbar();
+
+ int i;
+ Panel *p;
+ for (i=0 ; i < nb_panel ; i++) {
+ p = &panel1[i];