Replaced colours with theme_item_t

This commit is contained in:
James Booth
2014-11-16 20:40:19 +00:00
parent 90dd1de91a
commit ed4391ec8a
13 changed files with 411 additions and 324 deletions

View File

@@ -36,6 +36,7 @@
#define UI_BUFFER_H
#include "config.h"
#include "config/theme.h"
#include <glib.h>
@@ -43,7 +44,7 @@ typedef struct prof_buff_entry_t {
char show_char;
GDateTime *time;
int flags;
int attrs;
theme_item_t theme_item;
char *from;
char *message;
} ProfBuffEntry;
@@ -52,7 +53,7 @@ typedef struct prof_buff_t *ProfBuff;
ProfBuff buffer_create();
void buffer_free(ProfBuff buffer);
void buffer_push(ProfBuff buffer, const char show_char, GDateTime *time, int flags, int attrs, const char * const from, const char * const message);
void buffer_push(ProfBuff buffer, const char show_char, GDateTime *time, int flags, theme_item_t theme_item, const char * const from, const char * const message);
int buffer_size(ProfBuff buffer);
ProfBuffEntry* buffer_yield_entry(ProfBuff buffer, int entry);
#endif