Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-03

GTK bug using fontdialog

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tony Maro

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 http://tony.maro.net/ Check out my software "CheckBook Tracker" A GPL (free) replacement for Microsoft Money! 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]$

Reply by email

Tony Maro
to Tony Maro
Mattias Gaertner wrote 7 lines
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.

Fixed. Thanks!

-Tony

Reply by email

Mattias Gaertner
to Tony Maro: In CBT, if you click TOOLS+OPTIONS, go to the font tab, click to select the font... Then…
Show quoted text 19 lines
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

Reply by email