On Wed, 29 Nov 2000, Allan Rae wrote:

> Hmmm... The only reason OK should be disabled is if there is an invalid
> input (no filename, a page-to entry but no page-from entry and other
> obvious things).  I'll take a look.
> 
> Allan. (ARRae)
> 

Allan, I fixed it with the attached patch. It seems safe to tell the
controller that what we picked up from the printer params is valid.

thanks
john

-- 
"We signed to play until the day we died, and we did."
        - Jimmy Greaves
? patch.diff
? printenable.diff
? src/a.diff
Index: ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/ChangeLog,v
retrieving revision 1.704
diff -u -p -r1.704 ChangeLog
--- ChangeLog   2000/11/29 15:34:56     1.704
+++ ChangeLog   2000/11/29 16:06:41
@@ -1,5 +1,10 @@
 2000-11-29  John Levon  <[EMAIL PROTECTED]>
 
+       * src/frontends/xforms/FormPrint.C: set to valid()
+       when we update from the passed parameters.
+
+2000-11-29  John Levon  <[EMAIL PROTECTED]>
+
        * src/lyx_rc.C: more detail for the printer program config
        dialog.
 
Index: po/POTFILES.in
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/po/POTFILES.in,v
retrieving revision 1.105
diff -u -p -r1.105 POTFILES.in
--- po/POTFILES.in      2000/11/28 15:54:29     1.105
+++ po/POTFILES.in      2000/11/29 16:06:41
@@ -48,35 +48,35 @@ src/frontends/kde/refdlg.C
 src/frontends/kde/tocdlg.C
 src/frontends/kde/urldlg.C
 src/frontends/xforms/FormBase.h
-src/frontends/xforms/form_citation.C
 src/frontends/xforms/FormCitation.C
-src/frontends/xforms/form_copyright.C
+src/frontends/xforms/form_citation.C
 src/frontends/xforms/FormCopyright.C
-src/frontends/xforms/form_document.C
+src/frontends/xforms/form_copyright.C
 src/frontends/xforms/FormDocument.C
-src/frontends/xforms/form_error.C
+src/frontends/xforms/form_document.C
 src/frontends/xforms/FormError.C
-src/frontends/xforms/form_graphics.C
+src/frontends/xforms/form_error.C
 src/frontends/xforms/FormGraphics.C
-src/frontends/xforms/form_index.C
+src/frontends/xforms/form_graphics.C
 src/frontends/xforms/FormIndex.C
+src/frontends/xforms/form_index.C
 src/frontends/xforms/FormInset.h
-src/frontends/xforms/form_paragraph.C
 src/frontends/xforms/FormParagraph.C
-src/frontends/xforms/form_preferences.C
+src/frontends/xforms/form_paragraph.C
 src/frontends/xforms/FormPreferences.C
-src/frontends/xforms/form_print.C
+src/frontends/xforms/form_preferences.C
 src/frontends/xforms/FormPrint.C
-src/frontends/xforms/form_ref.C
+src/frontends/xforms/form_print.C
 src/frontends/xforms/FormRef.C
-src/frontends/xforms/form_tabular.C
+src/frontends/xforms/form_ref.C
 src/frontends/xforms/FormTabular.C
-src/frontends/xforms/form_tabular_create.C
+src/frontends/xforms/form_tabular.C
 src/frontends/xforms/FormTabularCreate.C
-src/frontends/xforms/form_toc.C
+src/frontends/xforms/form_tabular_create.C
 src/frontends/xforms/FormToc.C
-src/frontends/xforms/form_url.C
+src/frontends/xforms/form_toc.C
 src/frontends/xforms/FormUrl.C
+src/frontends/xforms/form_url.C
 src/frontends/xforms/Menubar_pimpl.C
 src/frontends/xforms/xform_helpers.C
 src/gettext.h
Index: src/frontends/xforms/FormPrint.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/FormPrint.C,v
retrieving revision 1.14
diff -u -p -r1.14 FormPrint.C
--- src/frontends/xforms/FormPrint.C    2000/11/28 06:46:06     1.14
+++ src/frontends/xforms/FormPrint.C    2000/11/29 16:06:43
@@ -194,6 +194,7 @@ void FormPrint::update()
 
                fl_set_input(dialog_->input_count,
                             tostr(pp.count_copies).c_str());
+               bc_.valid();
        }
 }
 

Reply via email to