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