Only display the full time when the icon size is of a large toolbar
This commit is contained in:
parent
62c11e111f
commit
1444ee73c7
|
@ -117,10 +117,11 @@ static gboolean _on_timeout(gpointer data)
|
||||||
t = tv.tv_sec;
|
t = tv.tv_sec;
|
||||||
localtime_r(&t, &tm);
|
localtime_r(&t, &tm);
|
||||||
#ifndef EMBEDDED
|
#ifndef EMBEDDED
|
||||||
strftime(buf, sizeof(buf), "%H:%M:%S\n%d/%m/%Y", &tm);
|
if(clock->helper->icon_size == GTK_ICON_SIZE_LARGE_TOOLBAR)
|
||||||
#else
|
strftime(buf, sizeof(buf), "%H:%M:%S\n%d/%m/%Y", &tm);
|
||||||
strftime(buf, sizeof(buf), "%H:%M", &tm);
|
else
|
||||||
#endif
|
#endif
|
||||||
|
strftime(buf, sizeof(buf), "%H:%M", &tm);
|
||||||
gtk_label_set_text(GTK_LABEL(clock->label), buf);
|
gtk_label_set_text(GTK_LABEL(clock->label), buf);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user