Difference between revisions of "Gtk+3"
Jwdietrich (talk | contribs) (Platform template added.) |
(→SVN: Updated svn url) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
=SVN= | =SVN= | ||
− | |||
− | svn | + | The current result can be found in the Lazarus-CCR at this svn address: |
− | Or you can browse the files [ | + | |
+ | svn checkout svn://svn.code.sf.net/p/lazarus-ccr/svn/bindings/gtk3/ gtk3 | ||
+ | |||
+ | -or- | ||
+ | |||
+ | svn checkout https://svn.code.sf.net/p/lazarus-ccr/svn/bindings/gtk3/ gtk3 | ||
+ | |||
+ | Or you can browse the files [https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/bindings/gtk3/ here] | ||
These files were generated with [[gir2pascal]] which should be updated to generate correct bindings if errors are found. | These files were generated with [[gir2pascal]] which should be updated to generate correct bindings if errors are found. | ||
− | |||
− | |||
=FAQ= | =FAQ= | ||
Line 28: | Line 32: | ||
==Some functions are missing like g_signal_connect== | ==Some functions are missing like g_signal_connect== | ||
− | Many functions are actually c macros and are | + | |
+ | Many functions are actually c macros and are unavailable in the introspection files. | ||
In the case of g_signal_connect it is a macro around g_signal_connect_data. | In the case of g_signal_connect it is a macro around g_signal_connect_data. | ||
==Where are GtkHbox and GtkVBox== | ==Where are GtkHbox and GtkVBox== | ||
In Gtk 3 GtkHBox and GtkVBox are combined in GtkBox. In gtk_box_new you specifiy an orientation. | In Gtk 3 GtkHBox and GtkVBox are combined in GtkBox. In gtk_box_new you specifiy an orientation. | ||
+ | |||
+ | |||
+ | [[Category:Lazarus-CCR]] | ||
+ | [[Category:GTK Widgetsets]] |
Latest revision as of 13:42, 12 January 2021
This article applies to GTK+ Widgetsets only.
See also: Multiplatform Programming Guide
Info
Gtk+3.0 bindings are being developed in the Lazarus-ccr
They are based on the headers from gtk+3.8.6 which can be downloaded here:
http://ftp.gnome.org/pub/gnome/sources/gtk+/3.8/gtk+-3.8.6.tar.xz
SVN
The current result can be found in the Lazarus-CCR at this svn address:
svn checkout svn://svn.code.sf.net/p/lazarus-ccr/svn/bindings/gtk3/ gtk3
-or-
svn checkout https://svn.code.sf.net/p/lazarus-ccr/svn/bindings/gtk3/ gtk3
Or you can browse the files here
These files were generated with gir2pascal which should be updated to generate correct bindings if errors are found.
FAQ
My simple program crashes immediately
You probably need to include the Math unit and put
SetExceptionMask([exDenormalized,exInvalidOp,exOverflow,exPrecision,exUnderflow,exZeroDivide]);
before gtk_init.
Where is class X
Some classes have been deprecated in Gtk3 and the generator skips deprecated classes and functions.
Some functions are missing like g_signal_connect
Many functions are actually c macros and are unavailable in the introspection files. In the case of g_signal_connect it is a macro around g_signal_connect_data.
Where are GtkHbox and GtkVBox
In Gtk 3 GtkHBox and GtkVBox are combined in GtkBox. In gtk_box_new you specifiy an orientation.