]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormForks.C
remove defaults stuff, let Qt handle no toolbar
[lyx.git] / src / frontends / xforms / FormForks.C
index bb1bbe342b4ed443e2bdd3b16e0fc88f74b8b63e..467b141c54a7c69758bc2eddc13c096eafc47d98 100644 (file)
@@ -1,19 +1,19 @@
 /**
  * \file FormForks.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming <leeming@lyx.org>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
  * \date 2001-10-22
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "xformsBC.h"
+#include "ButtonController.h"
 #include "FormForks.h"
 #include "ControlForks.h"
 #include "forms/form_forks.h"
@@ -46,17 +46,21 @@ void FormForks::build() {
        fl_clear_browser(dialog_->browser_kill);
 
        // Manage the ok, apply, restore and cancel/close buttons
-       bc().setOK(dialog_->button_ok);
-       bc().setApply(dialog_->button_apply);
-       bc().setCancel(dialog_->button_close);
-       bc().invalid();
+       bcview().setOK(dialog_->button_ok);
+       bcview().setApply(dialog_->button_apply);
+       bcview().setCancel(dialog_->button_close);
+       bc().valid(false);
 
        // Set up the tooltip mechanism
        string str = _("All currently running child processes forked by LyX.");
        tooltips().init(dialog_->browser_children, str);
+       // Work-around xforms' bug; enable tooltips for browser widgets.
+       setPrehandler(dialog_->browser_children);
 
        str = _("A list of all child processes to kill.");
        tooltips().init(dialog_->browser_kill, str);
+       // Work-around xforms' bug; enable tooltips for browser widgets.
+       setPrehandler(dialog_->browser_kill);
 
        str = _("Add all processes to the list of processes to kill.");
        tooltips().init(dialog_->button_all, str);