X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b59da6c285f4ac1a52a879a7fa67b52351f08f34..6ada5c335980d255e2fb315ed86c091010870c5e:/docs/html/faqgtk.htm diff --git a/docs/html/faqgtk.htm b/docs/html/faqgtk.htm index bd6386cbe2..c93ebad47e 100644 --- a/docs/html/faqgtk.htm +++ b/docs/html/faqgtk.htm @@ -4,15 +4,15 @@ wxWindows 2 for GTK FAQ - + - +
- @@ -23,17 +23,43 @@ wxWindows 2 for GTK FAQ See also top-level FAQ page.

List of questions in this category

+ + +
+

What is wxWindows 2 for GTK?

+ wxWindows 2 for GTK is a port of wxWindows to the GTK+ toolkit, which is freely available for most flavours of Unix with X. wxWindows 2 for GTK is often abbreviated to wxGTK. wxGTK has a separate home page here.

+

Why doesn't reading floating point numbers work when using wxWindows?

+ +If your program reads the floating point numbers in the format 123.45 +from a file, it may suddently start returning just 123 instead of the +correct value on some systems -- which is all the more mysterious as the same +code in a standalone program works just fine. + +

+The explanation is that GTK+ changes the current locale on program startup. If +the decimal point character in the current locale is not the period (for +example, it is comma in the French locale), all the standard C functions won't +recognize the numbers such as above as floating point ones any more. + +

+The solution is to either use your own function for reading the floating point +numbers (probably the best one) or to call setlocale(LC_NUMERIC, "C") +before reading from file and restore the old locale back afterwards if needed. +

Does wxGTK have GNOME support?

Currently wxGTK does not have any features that would involve dependence on any desktop @@ -52,6 +78,17 @@ the client will get notified twice, first getting a LOST event and then a CONNEC This problem can be solved by updating GTK with an official distribution of the library.

+

What range of Intel Linux platforms will a given application binary be usable on?

+ +Robert Roebling replies:

+ +"The important thing is the libc version that your app +is linked against. The most recent version is 2.2.5 +and programs linked against it will not run with version +2.1.X so that you will fare best if you compile your app +on a 2.1.X system. It will then run on practically all +Linux distros (if you link you app statically against +the image libraries and std C++ lib)."

- -wxWindows 2 for GTK FAQ + + +wxWindows 2 for GTK FAQ