1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 02:03:13 +02:00

Add new option weechat.color.status_time

This commit is contained in:
Sebastien Helleu
2009-12-14 15:50:09 +01:00
parent c1e1e40559
commit 9bfc6a6fd1
15 changed files with 73 additions and 24 deletions
+6 -2
View File
@@ -755,7 +755,7 @@ gui_bar_item_default_time (void *data, struct t_gui_bar_item *item,
{
time_t date;
struct tm *local_time;
char text_time[128];
char text_time[128], text_time2[128];
/* make C compiler happy */
(void) data;
@@ -769,7 +769,11 @@ gui_bar_item_default_time (void *data, struct t_gui_bar_item *item,
local_time) == 0)
return NULL;
return strdup (text_time);
snprintf (text_time2, sizeof (text_time2), "%s%s",
gui_color_get_custom (gui_color_get_name (CONFIG_COLOR(config_color_status_time))),
text_time);
return strdup (text_time2);
}
/*