Made the code relocatable (using the relocate function from gnulib).
[pspp-builds.git] / src / ui / gui / helper.h
index a0c36bd68bb6f84518e2bb0363c430dfefdbf37a..079f6d925c65cd1912a7fe7cde3c7ab35675cae5 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef __MISC_H__
 #define __MISC_H__
 
+#include "relocatable.h"
+
 #include <data/value.h>
 #include <data/format.h>
 
@@ -49,4 +51,9 @@ struct getl_interface;
 gboolean execute_syntax (struct getl_interface *sss);
 
 
+#define XML_NEW(FILE) \
+   glade_xml_new (relocate(PKGDATADIR "/" FILE), NULL, NULL)
+
+
+
 #endif