Lines Matching refs:desktop
4 Subject: [PATCH 70/92] desktop-shell: Support clock without date
12 clients/desktop-shell.c | 73 ++++++++++++++++++++++++++++-------------
15 diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c
17 --- a/clients/desktop-shell.c
18 +++ b/clients/desktop-shell.c
19 @@ -76,6 +76,7 @@ struct desktop {
45 struct desktop *desktop;
79 panel_add_launchers(struct panel *panel, struct desktop *desktop);
136 - switch (desktop->clock_format) {
149 + width = clock_get_preferred_width(desktop->clock_format,
150 + desktop->clock_with_date);
155 @@ -637,6 +660,7 @@ panel_create(struct desktop *desktop, struct output *output)
157 panel->panel_position = desktop->panel_position;
158 panel->clock_format = desktop->clock_format;
159 + panel->clock_with_date = desktop->clock_with_date;
163 @@ -1522,6 +1546,9 @@ parse_clock_format(struct desktop *desktop, struct weston_config_section *s)
165 desktop->clock_format = DEFAULT_CLOCK_FORMAT;
169 + &desktop->clock_with_date, true);