aboutsummaryrefslogtreecommitdiff
path: root/src/common/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/helper.c')
-rw-r--r--src/common/helper.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/common/helper.c b/src/common/helper.c
index 6b89131b..a176eecc 100644
--- a/src/common/helper.c
+++ b/src/common/helper.c
@@ -375,6 +375,8 @@ void initGNUnetGTKCommon(struct GE_Context * e,
375 struct GC_Configuration * c, 375 struct GC_Configuration * c,
376 void * callback) { 376 void * callback) {
377 char * load; 377 char * load;
378 char * path;
379 char * filename;
378 380
379 ectx = e; 381 ectx = e;
380 cfg = c; 382 cfg = c;
@@ -384,13 +386,19 @@ void initGNUnetGTKCommon(struct GE_Context * e,
384 saveCallsUp = YES; 386 saveCallsUp = YES;
385 387
386 /* load the interface */ 388 /* load the interface */
387#ifdef MINGW 389 path = os_get_installation_path(IPK_DATADIR);
390 filename = MALLOC(strlen(path) + strlen("/../gnunet-gtk/gnunet-gtk.glade") + 2);
391 strcpy(filename, path);
392 FREE(path);
393 strcat(filename, "/../gnunet-gtk/gnunet-gtk.glade");
394#if MINGW
388 gladeFile = MALLOC(_MAX_PATH + 1); 395 gladeFile = MALLOC(_MAX_PATH + 1);
389 plibc_conv_to_win_path(PACKAGE_DATA_DIR"/gnunet-gtk.glade", 396 plibc_conv_to_win_path(filename,
390 gladeFile); 397 gladeFile);
391#else 398#else
392 gladeFile = STRDUP(PACKAGE_DATA_DIR"/gnunet-gtk.glade"); 399 gladeFile = STRDUP(filename);
393#endif 400#endif
401 FREE(filename);
394 402
395 mainXML = glade_xml_new(gladeFile, 403 mainXML = glade_xml_new(gladeFile,
396 "mainWindow", 404 "mainWindow",