X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormPrint.C;h=29f5126949444b9f429e09079be3a23149f47757;hb=eba67bc3120dc301bf193c3f3b570f51f00a4654;hp=12147c2e798ca95ba99629bf3eb91104e37c76c5;hpb=ba01a232eaea8162ca7980b552f21ab3b7689744;p=lyx.git diff --git a/src/frontends/xforms/FormPrint.C b/src/frontends/xforms/FormPrint.C index 12147c2e79..29f5126949 100644 --- a/src/frontends/xforms/FormPrint.C +++ b/src/frontends/xforms/FormPrint.C @@ -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(); } }