diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-02-19 16:36:54 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-02-19 16:36:54 +0100 |
commit | cf36a92dcbe0f41df9ee1ccf5567f248e41d7400 (patch) | |
tree | b85b424c93241ef6f9d4a68dc6155b0410b74e04 | |
parent | b4c6470df41c639a2fd3b854c5fec10718709a89 (diff) | |
download | profani-tty-cf36a92dcbe0f41df9ee1ccf5567f248e41d7400.tar.gz |
Add define names to comment
-rw-r--r-- | src/ui/ui.h | 1 | ||||
-rw-r--r-- | src/ui/window.c | 12 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/ui/ui.h b/src/ui/ui.h index 77bdc1d5..1e457c73 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -56,7 +56,6 @@ #define NO_COLOUR_DATE 16 #define UNTRUSTED 32 - // core UI void ui_init(void); void ui_load_colours(void); diff --git a/src/ui/window.c b/src/ui/window.c index 8b948dbd..815e6e93 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1436,12 +1436,12 @@ static void _win_print_internal(ProfWin *window, const char show_char, int pad_indent, GDateTime *time, int flags, theme_item_t theme_item, const char *const from, const char *const message, DeliveryReceipt *receipt) { - // flags : 1st bit = 0/1 - me/not me - // 2nd bit = 0/1 - date/no date - // 3rd bit = 0/1 - eol/no eol - // 4th bit = 0/1 - color from/no color from - // 5th bit = 0/1 - color date/no date - // 6th bit = 0/1 - trusted/untrusted + // flags : 1st bit = 0/1 - me/not me. define: NO_ME + // 2nd bit = 0/1 - date/no date. define: NO_DATE + // 3rd bit = 0/1 - eol/no eol. define: NO_EOL + // 4th bit = 0/1 - color from/no color from. define: NO_COLOUR_FROM + // 5th bit = 0/1 - color date/no date. define: NO_COLOUR_DATE + // 6th bit = 0/1 - trusted/untrusted. define: UNTRUSTED gboolean me_message = FALSE; int offset = 0; int colour = theme_attrs(THEME_ME); |