1 # HG changeset patch |
1 # HG changeset patch |
2 # Parent f6642109fbfb5029d85f3f7c4dc9d93e100d607a |
2 # Parent 66f6d14c851bd0280966a8263ff4119588775620 |
3 [experimental] Allow user to modify time formatting |
3 [experimental] Allow user to modify time formatting |
4 |
4 |
5 * give user full control and full responsibility |
5 * give user full control and full responsibility |
6 * add time_prefix = 3, that uses |
6 * add time_prefix = 3, that uses |
7 * time_format (normal prefix format string) |
7 * time_format (normal prefix format string) |
8 * time_format_special (special prefix format string) |
8 * time_format_special (special prefix format string) |
9 * time_prefix_len (normal prefix width + 5) |
9 * time_prefix_len (normal prefix width + 5) |
10 * fall back to 0, if any of these unset |
10 * fall back to 0, if any of these unset |
11 |
11 |
12 diff -r f6642109fbfb mcabber/mcabber/screen.c |
12 diff -r 66f6d14c851b mcabber/mcabber/screen.c |
13 --- a/mcabber/mcabber/screen.c Thu Oct 18 00:00:46 2012 +0300 |
13 --- a/mcabber/mcabber/screen.c Tue Nov 11 23:42:00 2014 +0200 |
14 +++ b/mcabber/mcabber/screen.c Thu Oct 18 01:49:44 2012 +0300 |
14 +++ b/mcabber/mcabber/screen.c Tue Nov 11 23:43:05 2014 +0200 |
15 @@ -853,38 +853,100 @@ |
15 @@ -85,6 +85,7 @@ |
|
16 static void scr_end_current_completion(void); |
|
17 static void scr_insert_text(const char*); |
|
18 static void scr_handle_tab(gboolean fwd); |
|
19 +static unsigned int attention_sign(void); |
|
20 |
|
21 static void scr_glog_print(const gchar *log_domain, GLogLevelFlags log_level, |
|
22 const gchar *message, gpointer user_data); |
|
23 @@ -222,8 +223,6 @@ |
|
24 |
|
25 /* Functions */ |
|
26 |
|
27 -static unsigned int attention_sign(void); |
|
28 - |
|
29 static int find_color(const char *name) |
|
30 { |
|
31 int result; |
|
32 @@ -875,38 +874,100 @@ |
16 static const char *timeprefixes[] = { |
33 static const char *timeprefixes[] = { |
17 "%m-%d %H:%M ", |
34 "%m-%d %H:%M ", |
18 "%H:%M ", |
35 "%H:%M ", |
19 - " " |
36 - " " |
20 + " ", |
37 + " ", |