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.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/main.c b/src/core/main.c
index f738c3e4..84a6f441 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -105,21 +105,21 @@ static void customLog(const char * msg) {
105 addLogEntry("%s", msg); 105 addLogEntry("%s", msg);
106} 106}
107 107
108int main(int argc, 108int main(int argc,
109 char *argv[]) { 109 char *argv[]) {
110 GtkWidget * root; 110 GtkWidget * root;
111 111
112 g_thread_init(NULL); 112 g_thread_init(NULL);
113 gtk_init(&argc, &argv); 113 gtk_init(&argc, &argv);
114 if (SYSERR == initUtil(argc, 114 if (SYSERR == initUtil(argc,
115 argv, 115 argv,
116 &parseOptions)) 116 &parseOptions))
117 return 0; 117 return 0;
118 118
119#ifdef WINDOWS 119#ifdef WINDOWS
120 FreeConsole(); 120 FreeConsole();
121#endif 121#endif
122 122
123#if ENABLE_NLS 123#if ENABLE_NLS
124 BINDTEXTDOMAIN("gnunet-gtk", PACKAGE_LOCALE_DIR); 124 BINDTEXTDOMAIN("gnunet-gtk", PACKAGE_LOCALE_DIR);
125 textdomain("gnunet-gtk"); 125 textdomain("gnunet-gtk");
@@ -135,12 +135,12 @@ int main(int argc,
135 gtk_widget_show(root); 135 gtk_widget_show(root);
136 setCustomLogProc(&customLog); 136 setCustomLogProc(&customLog);
137 /* start the event loop */ 137 /* start the event loop */
138 gdk_threads_enter(); 138 gdk_threads_enter();
139 gtk_main(); 139 gtk_main();
140 gdk_threads_leave(); 140 gdk_threads_leave();
141 doneGNUnetGTKCommon(); 141 doneGNUnetGTKCommon();
142 doneUtil(); 142 doneUtil();
143 143
144 return 0; 144 return 0;
145} 145}
146 146