[lazarus] GTK bug using fontdialog

Tony Maro tony at maro.net
Sat Mar 29 02:46:02 EST 2003


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...)

-- 
Tony Maro
tony at maro.net
http://tony.maro.net/

Check out my software "CheckBook Tracker"
A GPL (free) replacement for Microsoft Money!


[tony at voyager tony]$ ./cbtracker
TCommonDialog.Close-------------------------------------------------------Font1

Gtk-WARNING **: invalid cast from `(unknown)' to `GtkObject'

Gtk-WARNING **: invalid cast from `(unknown)' to `GtkObject'

Gtk-CRITICAL **: file gtkobject.c: line 1070 (gtk_object_get_data_by_id): assertion `GTK_IS_OBJECT (object)' failed.

Gtk-WARNING **: gtk_signal_disconnect_by_func(): could not find handler (0x402805E0) containing data (0x8A679F8)

Gtk-WARNING **: invalid cast from `(unknown)' to `GtkObject'

Gtk-CRITICAL **: file gtkobject.c: line 1070 (gtk_object_get_data_by_id): assertion `GTK_IS_OBJECT (object)' failed.

Gtk-WARNING **: gtk_signal_disconnect_by_func(): could not find handler (0x40280640) containing data (0x8A679F8)

Gtk-WARNING **: invalid cast from `(unknown)' to `GtkObject'

Gtk-CRITICAL **: file gtkobject.c: line 1070 (gtk_object_get_data_by_id): assertion `GTK_IS_OBJECT (object)' failed.

Gtk-WARNING **: gtk_signal_disconnect_by_func(): could not find handler (0x40275D00) containing data (0x8A67A50)
[tony at voyager tony]$





More information about the Lazarus mailing list