Made the code relocatable (using the relocate function from gnulib).
[pspp-builds.git] / src / ui / gui / window-manager.c
index 0bdc2390b1edfd0c17e4e8dffaf6f4cd2cd353b5..b78a341a0336d723ac4145e4ece3db2fcd39cc28 100644 (file)
@@ -20,6 +20,8 @@
 
 #include <config.h>
 
+#include "relocatable.h"
+
 #include <glib.h>
 #include "syntax-editor.h"
 #include "data-editor.h"
@@ -100,7 +102,7 @@ window_create (enum window_type type, const gchar *name)
 
 
   gtk_window_set_icon_from_file (GTK_WINDOW (e->window),
-                                PKGDATADIR "/psppicon.png", 0);
+                                relocate (PKGDATADIR "/psppicon.png"), 0);
 
   g_signal_connect (e->window, "destroy",
                    G_CALLBACK (deregister_window), e);