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