diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-12-14 15:50:09 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-12-14 15:50:09 +0100 |
commit | 9bfc6a6fd1536fe488d64b064bd698a3773a1de1 (patch) | |
tree | 73e2129f129baf366aba056090be3fa2a300c694 /src/gui | |
parent | c1e1e405596e264163ed897cfce2575b446ebd1f (diff) | |
download | weechat-9bfc6a6fd1536fe488d64b064bd698a3773a1de1.zip |
Add new option weechat.color.status_time
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-bar-item.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c index ffe3810d2..54c7e2860 100644 --- a/src/gui/gui-bar-item.c +++ b/src/gui/gui-bar-item.c @@ -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); } /* |