diff options
Diffstat (limited to 'src/gui/panels')
-rw-r--r-- | src/gui/panels/log.c | 4 | ||||
-rw-r--r-- | src/gui/panels/log.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/panels/log.c b/src/gui/panels/log.c index 2ab6d0c..6bda922 100644 --- a/src/gui/panels/log.c +++ b/src/gui/panels/log.c @@ -124,7 +124,7 @@ static GtkWidget *build_log_panel(void) renderer = gtk_cell_renderer_text_new(); gtk_tree_view_column_pack_start(column, renderer, TRUE); - gtk_tree_view_column_add_attribute(column, renderer, "text", LGC_STRING); + gtk_tree_view_column_add_attribute(column, renderer, "markup", LGC_STRING); gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column); @@ -239,7 +239,7 @@ void log_variadic_message(LogMessageType type, const char *fmt, ...) char *ptr; /* Nouvelle allocation */ va_list ap; /* Liste d'arguments variable */ - len = 100; + len = VARIADIC_LOG_BUFSIZE; buffer = calloc(len, sizeof(char)); while (buffer != NULL) diff --git a/src/gui/panels/log.h b/src/gui/panels/log.h index c8fe790..264078c 100644 --- a/src/gui/panels/log.h +++ b/src/gui/panels/log.h @@ -36,6 +36,10 @@ #define PANEL_LOG_ID _("Messages") +/* Tranche d'allocation pour les messages complexes */ +#define VARIADIC_LOG_BUFSIZE 256 + + /* Type de messages disponibles */ typedef enum _LogMessageType { |