Added time to themes, and some example themes

This commit is contained in:
James Booth
2012-11-22 02:34:49 +00:00
parent c5b4fc4a80
commit 45a26b111f
10 changed files with 151 additions and 0 deletions

View File

@@ -393,7 +393,9 @@ win_show_incomming_msg(const char * const from, const char * const message,
} else {
GDateTime *time = g_date_time_new_from_timeval_utc(tv_stamp);
gchar *date_fmt = g_date_time_format(time, "%H:%M:%S");
wattron(win, COLOUR_TIME);
wprintw(win, "%s - ", date_fmt);
wattroff(win, COLOUR_TIME);
g_date_time_unref(time);
g_free(date_fmt);
}
@@ -430,7 +432,9 @@ win_show_incomming_msg(const char * const from, const char * const message,
} else {
GDateTime *time = g_date_time_new_from_timeval_utc(tv_stamp);
gchar *date_fmt = g_date_time_format(time, "%H:%M:%S");
wattron(win, COLOUR_TIME);
wprintw(win, "%s - ", date_fmt);
wattroff(win, COLOUR_TIME);
g_date_time_unref(time);
g_free(date_fmt);
}
@@ -1521,7 +1525,9 @@ _win_show_time(WINDOW *win)
{
GDateTime *time = g_date_time_new_now_local();
gchar *date_fmt = g_date_time_format(time, "%H:%M:%S");
wattron(win, COLOUR_TIME);
wprintw(win, "%s - ", date_fmt);
wattroff(win, COLOUR_TIME);
g_date_time_unref(time);
g_free(date_fmt);
}