Sign in Join

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

Mailing lists / lazarus / 2002-01

GTK+ interface status on Win32

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner
to Keith Bowes: Hello. I have gotten Lazarus with the GTK+ interface to compile on Win32. The only…
Hello. I have gotten Lazarus with the GTK+ interface to compile on Win32. The only problem seems to be gtk_target_list_unref in TgtkObject.SetClipboardWidget; commenting it out seems to solve that little problem.

This function was needed to delete the old clipboard-target-list of the widget. The gtk provides no official function for this. So I used the internal way of gtk of clearing the target list. But it seems, that this function is not exported in the win32 dll. Removing this function will result in adding targets, everytime the clipboard is set. When we can't find a corresponding function, I see two possibilites:

1. create an invisible clipboard widget, that is recreated everytime the supported clipboard targets change.

2. add some {IFDEF win32} to the gtk-interface code to use the windows clipboard instead.

Mattias

Reply by email

Keith Bowes

Hello. I have gotten Lazarus with the GTK+ interface to compile on Win32. The only problem seems to be gtk_target_list_unref in TgtkObject.SetClipboardWidget; commenting it out seems to solve that little problem.

But the real problems start when you try to run the IDE. I keep getting the following lines on the console repeatedly while it looks like it's just hanging on the splash screen until the program stops responding: Gtk-CRITICAL **: file gtkfixed.c: line 142 (gtk_fixed_put): assertion `widget != NULL' failed
[TWinControl.AttachSignals] TLISTVIEW
[TWinControl.InitializeWnd] TLISTVIEW
TODO: [TWinControl.InitializeWnd] move this code to the interface [TWinControl.GetHandle] TLISTVIEW(ListView1)
[TControl.GetText]
<TControl.GetText> End

Note: This message is an unofficial note meant for informational purposes. It should not be interpreted as an official statement from the developers nor should it be thought of by the developers as being a bug report, complaint, or anything similar.

Reply by email