]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/forms/fdfix.sh
Applied John's FileDialog patch.
[lyx.git] / src / frontends / xforms / forms / fdfix.sh
index 294422fba4e4ff4e4939b202f5b5eed77f080ae6..e788b620b4188d7a227750a07655c81a96365243 100644 (file)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/sh -x
 #
 # NOTE: This is NOT the same fdfix.sh as in ${top_srcdir}/forms
 #       It is a modified version to suit use for gui-indep.
@@ -73,6 +73,15 @@ echo >> $COUT
 
 sed -f $FDFIXC_MOD < $CIN >> $COUT
 
+# hack for file dialog
+if [ "$CLASSNAME" = "FormFiledialog" ] ; then
+    ed $COUT >/dev/null 2>/dev/null << EOF
+/FormFiledialog::build_filedialog
+s/FormFiledialog/FileDialog::Private/
+wq
+EOF
+fi
+
 # Patch the .C file if a patch exists
 if [ -f "$COUT.patch" ] ; then
     echo "Patching $COUT with $COUT.patch"