[lazarus] GTK bug using fontdialog

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Mar 29 14:05:15 EST 2003


On 29 Mar 2003 02:02:24 -0600
Tony Maro <tony at maro.net> wrote:

> In CBT, if you click TOOLS+OPTIONS, go to the font tab, click to select
> the font...
> 
> Then click Cancel and cancel again, you get GTK errors in the console. 
> It only happens if you have displayed the font dialog.
> 
> The Font dialog is non-visual dropped on the form.  The code that calls
> it is as follows:
> 
> if Font1.Execute then begin
>   LblRegisterFont.Caption := font1.font.name;
>   LblRegisterFont.hint := Font1.font.name;
> end;
> 
> Attached is the GTK info.
> 
> The only thing I can think that might be odd is that the settings form
> that calls the fontdialog is a modal form.  Yes, I close it properly by
> setting modalresult (fell into that trap before...)

I didn't check CBT, but it was also visible in the editor options.
I fixed that and improved the breaking of the transient relationships, so
that even temporary circles are now avoided. Maybe this was the reason for
the strange window hiding on some windowmanagers.


Mattias






More information about the Lazarus mailing list