summaryrefslogtreecommitdiff
path: root/src/gui/gtk/gui-gtk-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gtk/gui-gtk-main.c')
-rw-r--r--src/gui/gtk/gui-gtk-main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/gtk/gui-gtk-main.c b/src/gui/gtk/gui-gtk-main.c
index 4a316fcc8..51a7beb31 100644
--- a/src/gui/gtk/gui-gtk-main.c
+++ b/src/gui/gtk/gui-gtk-main.c
@@ -33,6 +33,7 @@
#include "../../core/wee-config.h"
#include "../../core/wee-utf8.h"
#include "../../plugins/plugin.h"
+#include "../gui-chat.h"
#include "../gui-main.h"
#include "../gui-buffer.h"
#include "../gui-history.h"
@@ -62,6 +63,9 @@ GtkWidget *gui_gtk_label1;
void
gui_main_pre_init (int *argc, char **argv[])
{
+ /* build empty prefixes (before reading config) */
+ gui_chat_prefix_build_empty ();
+
/* Initialise Gtk */
gtk_init (argc, argv);
}
@@ -82,11 +86,14 @@ gui_main_init ()
gui_ok = 1;
+ /* build prefixes according to config */
+ gui_chat_prefix_build ();
+
/* init clipboard buffer */
gui_input_clipboard = NULL;
/* create Gtk widgets */
-
+
gdk_color_parse ("white", &color_fg);
gdk_color_parse ("black", &color_bg);