- if (backgrounds)
- g_array_free(backgrounds, 1);
- backgrounds = g_array_new(0, 0, sizeof(Background));
-
- // append full transparency background
- Background transparent_bg;
- memset(&transparent_bg, 0, sizeof(Background));
- g_array_append_val(backgrounds, transparent_bg);
-
- // tint2 could reload config, so we cleanup objects
- cleanup_systray();
-#ifdef ENABLE_BATTERY
- cleanup_battery();
-#endif
- cleanup_clock();
- cleanup_tooltip();
-
- // panel's default value
- if (panel_config.g_task.font_desc) {
- 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;
-
- // window manager's menu default value == false
- wm_menu = 0;
- max_tick_urgent = 7;
- panel_config.g_taskbar.bg = panel_config.g_taskbar.bg_active = 0;
-
- // flush pango cache if possible
- //pango_xft_shutdown_display(server.dsp, server.screen);
- //PangoFontMap *font_map = pango_xft_get_font_map(server.dsp, server.screen);
- //pango_fc_font_map_shutdown(font_map);