]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormPrint.C
Swap two printer related help messages.
[lyx.git] / src / frontends / xforms / FormPrint.C
index 12147c2e798ca95ba99629bf3eb91104e37c76c5..29f5126949444b9f429e09079be3a23149f47757 100644 (file)
@@ -54,7 +54,11 @@ void FormPrint::build()
 {
        dialog_ = build_print();
 
-       // manage the ok, apply and cancel/close buttons
+       // Workaround dumb xforms sizing bug
+       minw_ = form()->w;
+       minh_ = form()->h;
+
+       // Manage the ok, apply and cancel/close buttons
        bc_.setOK(dialog_->button_ok);
        bc_.setApply(dialog_->button_apply);
        bc_.setCancel(dialog_->button_cancel);
@@ -107,15 +111,6 @@ void FormPrint::build()
 }
 
 
-void FormPrint::connect()
-{
-       FormBaseBD::connect();
-       fl_set_form_minsize(dialog_->form,
-                           dialog_->form->w,
-                           dialog_->form->h);
-}
-
-
 FL_FORM * FormPrint::form() const
 {
        if (dialog_) return dialog_->form;
@@ -163,8 +158,7 @@ void FormPrint::apply()
 }
 
 
-// we can safely ignore the parameter because we can always update
-void FormPrint::update(bool)
+void FormPrint::update()
 {
        if (dialog_
            && lv_->view()->available()) {
@@ -200,6 +194,7 @@ void FormPrint::update(bool)
 
                fl_set_input(dialog_->input_count,
                             tostr(pp.count_copies).c_str());
+               bc_.valid();
        }
 }