Add area.name, useful for debugging

This commit is contained in:
o9000
2016-03-25 11:13:05 +01:00
parent 76bd4baa9c
commit 1edaf21bde
10 changed files with 15 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ void default_panel()
backgrounds = g_array_new(0, 0, sizeof(Background));
memset(&panel_config, 0, sizeof(Panel));
snprintf(panel_config.area.name, sizeof(panel_config.area.name), "Panel");
panel_config.mouse_over_alpha = 100;
panel_config.mouse_over_saturation = 0;
panel_config.mouse_over_brightness = 10;
@@ -196,6 +197,7 @@ void init_panel()
p->area.bg = &g_array_index(backgrounds, Background, 0);
p->area.parent = p;
p->area.panel = p;
snprintf(p->area.name, sizeof(p->area.name), "Panel %d", i);
p->area.on_screen = TRUE;
p->area.resize_needed = 1;
p->area.size_mode = LAYOUT_DYNAMIC;