aboutsummaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 9b2c06af..f738c3e4 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -101,6 +101,10 @@ static void gnunet_gtk_main_quit() {
101 gtk_main_quit(); 101 gtk_main_quit();
102} 102}
103 103
104static void customLog(const char * msg) {
105 addLogEntry("%s", msg);
106}
107
104int main(int argc, 108int main(int argc,
105 char *argv[]) { 109 char *argv[]) {
106 GtkWidget * root; 110 GtkWidget * root;
@@ -129,7 +133,7 @@ int main(int argc,
129 "mainWindow"); 133 "mainWindow");
130 gtk_window_maximize(GTK_WINDOW(root)); 134 gtk_window_maximize(GTK_WINDOW(root));
131 gtk_widget_show(root); 135 gtk_widget_show(root);
132 setCustomLogProc(&addLogEntry); 136 setCustomLogProc(&customLog);
133 /* start the event loop */ 137 /* start the event loop */
134 gdk_threads_enter(); 138 gdk_threads_enter();
135 gtk_main(); 139 gtk_main();