Made the code relocatable (using the relocate function from gnulib).
[pspp-builds.git] / src / ui / gui / weight-cases-dialog.c
index 3eb1808dc7087c49a50cfa852c12ef607ad714c5..31907a15fa21cc5768f7f77d0aa90c26766f8463 100644 (file)
@@ -75,8 +75,7 @@ weight_cases_dialog (GObject *o, gpointer data)
   PsppireDict *dict;
   struct variable *var;
 
-  GladeXML *xml = glade_xml_new (PKGDATADIR "/psppire.glade",
-                                "weight-cases-dialog", NULL);
+  GladeXML *xml = XML_NEW ("psppire.glade");
 
   GtkWidget *dialog = get_widget_assert (xml, "weight-cases-dialog");
   GtkWidget *source = get_widget_assert (xml, "weight-cases-treeview");