Lines Matching full:panel
27 @@ -109,6 +110,7 @@ struct panel {
37 struct panel *panel;
79 panel_add_launchers(struct panel *panel, struct desktop *desktop);
90 @@ -464,21 +496,24 @@ panel_add_clock(struct panel *panel)
91 clock->panel = panel;
92 panel->clock = clock;
94 + if (panel->clock_with_date)
97 switch (panel->clock_format) {
123 - if (panel->clock_format == CLOCK_FORMAT_SECONDS)
127 + w = clock_get_preferred_width(panel->clock_format,
128 + panel->clock_with_date) * scale;
138 - width = 32 * panel->scale;
143 - width = 150 * panel->scale;
146 - width = 170 * panel->scale;
151 + width = MAX(32, width) * panel->scale;
154 window_schedule_resize(panel->window, width, height);
157 panel->panel_position = desktop->panel_position;
158 panel->clock_format = desktop->clock_format;
159 + panel->clock_with_date = desktop->clock_with_date;
160 if (panel->clock_format != CLOCK_FORMAT_NONE)
161 panel_add_clock(panel);