Gtk+3: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Gtk+3
| Old | New | Line | |
|---|---|---|---|
| 1 | + | *(GTK+ only)* | |
| 2 | + | ||
| 3 | + | # Info | |
| 4 | + | ||
| 5 | + | Gtk+3.0 bindings are being developed in the Lazarus-ccr | |
| 6 | + | ||
| 7 | + | They are based on the headers from gtk+3.8.6 which can be downloaded here: | |
| 8 | + | ||
| 9 | + | <http://ftp.gnome.org/pub/gnome/sources/gtk+/3.8/gtk+-3.8.6.tar.xz> | |
| 10 | + | ||
| 11 | + | # SVN | |
| 12 | + | ||
| 13 | + | The current result can be found in the Lazarus-CCR at this svn address: | |
| 14 | + | ||
| 15 | + | ` svn checkout `[`svn://svn.code.sf.net/p/lazarus-ccr/svn/bindings/gtk3/`](svn://svn.code.sf.net/p/lazarus-ccr/svn/bindings/gtk3/)` gtk3` | |
| 16 | + | ||
| 17 | + | -or- | |
| 18 | + | ||
| 19 | + | ` svn checkout `[`https://svn.code.sf.net/p/lazarus-ccr/svn/bindings/gtk3/`](https://svn.code.sf.net/p/lazarus-ccr/svn/bindings/gtk3/)` gtk3` | |
| 20 | + | ||
| 21 | + | Or you can browse the files [here](https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/bindings/gtk3/) | |
| 22 | + | ||
| 23 | + | These files were generated with [[gir2pascal]] which should be updated to generate correct bindings if errors are found. | |
| 24 | + | ||
| 25 | + | # FAQ | |
| 26 | + | ||
| 27 | + | ## My simple program crashes immediately | |
| 28 | + | ||
| 29 | + | You probably need to include the Math unit and put | |
| 30 | + | ||
| 31 | + | ` SetExceptionMask([exDenormalized,exInvalidOp,exOverflow,exPrecision,exUnderflow,exZeroDivide]);` | |
| 32 | + | ||
| 33 | + | before gtk_init. | |
| 34 | + | ||
| 35 | + | ## Where is class X | |
| 36 | + | ||
| 37 | + | Some classes have been deprecated in Gtk3 and the generator skips deprecated classes and functions. | |
| 38 | + | ||
| 39 | + | ## Some functions are missing like g_signal_connect | |
| 40 | + | ||
| 41 | + | 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. | |
| 42 | + | ||
| 43 | + | ## Where are GtkHbox and GtkVBox | |
| 44 | + | ||
| 45 | + | In Gtk 3 GtkHBox and GtkVBox are combined in GtkBox. In gtk_box_new you specifiy an orientation. | |
| 46 | + | ||
| 47 | + | --- | |
| 48 | + | *From the Free Pascal wiki, page "Gtk+3", as it stood on 2021-01-12 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* | |
| 49 | + | Category: GTK Widgetsets | |
| 50 | + | Category: Lazarus-CCR |
