On Fri, 6 Oct 2000, Angus Leeming wrote:
> Defining the following function in FormPreferences resolves the
>
> BadDrawable (invalid Pixmap or Window parameter)
>
> crash when closing the popup although it does result in the messages
>
> In fl_hide_form [forms.c 835] Hiding invisible/freeed form
> In fl_hide_form [forms.c 835] Hiding invisible/freeed form
> In fl_hide_form [forms.c 835] Hiding invisible/freeed form
> In fl_hide_form [forms.c 835] Hiding invisible/freeed form
> In fl_hide_form [forms.c 835] Hiding invisible/freeed form
> In fl_hide_form [forms.c 835] Hiding invisible/freeed form
> In fl_hide_form [forms.c 835] Hiding invisible/freeed form
>
> Note that there are 7 messages but 9 calls to fl_hide_form(). Something odd
> is going on. Perhaps.
>
> void FormPreferences::hide()
> {
> if (form() && form()->visible) {
> fl_hide_form( outputs_tab_->form );
> fl_hide_form( look_n_feel_tab_->form );
> fl_hide_form( inputs_tab_->form );
I suspect just these three should be sufficient.
Or just hiding the currently visible nested tabbed dialog below may also
do the trick.
> fl_hide_form( lnf_general_->form );
> fl_hide_form( screen_fonts_->form );
> fl_hide_form( interface_fonts_->form );
> fl_hide_form( printer_->form );
> fl_hide_form( paths_->form );
> fl_hide_form( dialog_->form );
> }
>
> FormBase::hide();
> }
>
>
> Incidentally, I get another crash when "Save"ing my changes to this popup
> that is "resolved" by commenting out the call
>
> // lv_->getLyXFunc()->Dispatch(LFUN_SCREEN_FONT_UPDATE);
>
> in FormPreferences::apply()
I've glimpsed what appears to be a warning massage flash up on the status
bar related to some removed function or some such -- too fast to actually
register what it really was.
> Hope that your weekend far away from the computer has done your back a power
> of good!
It's been a great weekend! Now I'm off to a Bach concert so it just keeps
getting better!
Allan. (ARRae)