forked from AuroraMiddleware/gtk
00c5e83871
1999-10-31 Tor Lillqvist <tml@iki.fi> * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including EuroSign). * gdk/gdktypes.h: Add note about wchar_t not necessarily being the same type as GdkWChar, especially on Win32. * gdk/win32/*.c: Change gdk_root_parent to be a pointer. * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode before passing to Windows GDI for drawing etc. Convert to the system default codepage before passing to Windows as window titles. * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to support changing input locale on the fly. * gdk/win32/gdkevent.c: Support input language (keyboard locale) on-the-fly changes. Convert incoming characters from the current codepage to Unicode (and then to a UTF-8 multi-byte string) based on the current input language. Use keysym<->Unicode mapping tables and functions borrowed from xterm sources. Support IMEs (Input Method Editors) for CJK languages. On non-CJK editions of Win9x, use the ActiveX-based Active IMM (Input Method Manager) if available. IMEs and the Active IMM are available under the disguise of Chinese, Korean and Japanese support for IE and Outlook Express from "Windows Update" for Win98. On Win2k, the CJK support is present in all editions (as long as you install it). Call DispatchMessage from gdk_events_queue() (and thus gdk_WindowProc()), instead of duplicating the code in gdk_WindowProc(). Reworked the grab handling and propagation code, factored out duplicated code snippets into separate functions. Other cleanups, too. * gdk/win32/surrogate-dimm.h: Provide just the bits we need from the <dimm.h> header describing the Active IMM. * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far just do the same as for "single" fonts. * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle the new keysyms from gdkkeysyms.h. * gtk/gtkfontsel.c (Win32): Load the font for the preview as a fontset, so that gtkentry uses wide characters. * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call GTk+'s system directory "gtk+", not "gtk".
34 lines
1.6 KiB
Plaintext
34 lines
1.6 KiB
Plaintext
The Win32 port of GTk+ is a work in progress, and not as stable or
|
|
correct as the Unix/X11 version. For more information about the Win32
|
|
port, see http://www.gimp.org/tml/gimp/win32/ or
|
|
http://www.iki.fi/tml/gimp/win32/ .
|
|
|
|
To build GTk+ on Win32, you need either the Microsoft compiler and
|
|
tools, or gcc-2.95 or later running under cygwin-b20.1 or
|
|
later. Compile in gdk\win32 and gtk with `nmake -f makefile.msc` or
|
|
`make -f makefile.cygwin`. Before doing a install, check the BIN
|
|
definition in gdk\win32\makefile.msc (or makefile.cygwin) and
|
|
gtk\makefile.msc (or makefile.cygwin).
|
|
|
|
See the README.win32 file in the GLib distribution for instructions
|
|
how to build with gcc.
|
|
|
|
The tablet support uses the Wintab API. The Wintab development kit can
|
|
be downloaded from http://www.pointing.com. If you don't care for
|
|
that, undefine HAVE_WINTAB in config.h.win32 and remove references to
|
|
the wntab32x library from the makefile before building.
|
|
|
|
GTk+ wants to be built with the GNU "intl" library for
|
|
internationalisation (i18n). Get the version ported to Win32 (not a
|
|
very big deal) from tml's web site mentioned above. We build the
|
|
"intl" library as a DLL called gnu-intl.dll (the "gnu" prefix is used
|
|
to reduce name clash risks). If you don't want any i18n stuff,
|
|
undefine ENABLE_NLS, HAVE_GETTEXT and HAVE_LIBINTL in the
|
|
config.h.win32 file, and remove references to the gnu-intl library
|
|
from the makefiles.
|
|
|
|
Note that while the GNU gettext package is under the GPL, the "intl"
|
|
part of it as distributed with GNU libc is under the LGPL (like GTk+
|
|
or GLib). We want the LGPL one, even if they are the same, more or
|
|
less.
|