Only display the full time when the icon size is of a large toolbar

This commit is contained in:
Pierre Pronchery 2010-03-11 10:58:55 +00:00
parent 62c11e111f
commit 1444ee73c7

View File

@ -117,10 +117,11 @@ static gboolean _on_timeout(gpointer data)
t = tv.tv_sec;
localtime_r(&t, &tm);
#ifndef EMBEDDED
if(clock->helper->icon_size == GTK_ICON_SIZE_LARGE_TOOLBAR)
strftime(buf, sizeof(buf), "%H:%M:%S\n%d/%m/%Y", &tm);
#else
strftime(buf, sizeof(buf), "%H:%M", &tm);
else
#endif
strftime(buf, sizeof(buf), "%H:%M", &tm);
gtk_label_set_text(GTK_LABEL(clock->label), buf);
return TRUE;
}