[Lazarus] Gtk3 "hello world" application crash

zeljko zeljko at holobit.net
Wed Oct 2 07:22:59 CEST 2013


On 10/01/2013 10:09 PM, Krzysztof wrote:
> Hi,
>
> According to this wiki page: http://wiki.freepascal.org/Gtk%2B3
> I downloaded latest gtk3 headers from:
> http://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/bindings/gtk3/
>
> I have very simple Hello World application which is working fine on GTK2:
>
> gtk_init(@argc, @argv);
> windows := gtk_window_new(GTK_WINDOW_TOPLEVEL);
> gtk_widget_show(window);
> gtk_main();
>
> but on GTK3 it crash on gtk_main(); (but I see main window for a few
> milliseconds).
> I know that GTK3 is on development stage, but is anyone successful using
> it on this stage? Because last update of headers were over a year ago.
> There are also missing main functions like g_signal_connect() or
> functions for box layouts.

Look at implementation in lazarus/lcl/interfaces/gtk3 .
It works , also most of wincontrols works (using bit modified bindings 
from lazarus/lcl/interfaces/gtk3/gtk3bindings

zeljko





More information about the Lazarus mailing list