Sign in Join
Wiki copytemporary

gtk2: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: gtk2

OldNewLine
1+The package GTK2 is a header to the GTK 2.x libraries. The headers mostly try to be compatible to 2.6 with some 2.8 extensions.
2+
3+It is expected that the next lazarus version (0.9.28) will default to gtk2. Currently, gtk1 is still the default, though gtk2 is already in wide use.
4+
5+Note that while GTK(2) is mostly used on Unix, it is known to work on Windows too, though to our knowledge not tested regularly.
6+
7+Reportedly (bug 12359) the following libraries are required for windows:
8+
9+`libgdkglext-win32-1.0.0.dll`\
10+`libglade-2.0-0.dll`
11+
12+# fpu problem under windows
13+
14+A documented problem [bug 12359](http://bugs.freepascal.org/view.php?id=12359) states that the default FPU mask of FPC under windows can be a problem for the GTK libraries. The gtk_demo example is affected by this.
15+
16+See also
17+
18+- [fpc-devel msg](http://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg12237.html)
19+
20+This can be avoided by setting the FPU mask to \$133F as first line in your program.
21+
22+` Set8087CW($133F); `
23+
24+This might have an affect on Delphi compatibility of floating point operations though.
25+
26+---
27+*From the Free Pascal wiki, page "gtk2", as it stood on 2013-04-30 after a change by Jwdietrich, 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).*
28+Category: Headers and Bindings
29+Category: Packages

Back to history