GTK is a multi-platform toolkit for creating graphical user interfaces.
Go to file
Tor Lillqvist 63f745738d gdk/win32/gdkprivate-win32.h New flags _gdk_input_locale_is_ime and
2003-07-25  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkprivate-win32.h
	* gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
	and _gdk_keyboard_has_altgr.

	* gdk/win32/gdkevents-win32.c: Lots of changes. Most important
	ones detailled here.

	Code that has been ifdeffed out for a long time removed. Remove
	some really old doc comments that were left behind for some public
	functions, the official ones are in the X11 backend anyway. Change
	GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
	multi-line boolean expressions to have the operators at ends of
	lines.

	As mouse capture with SetCapture() indeed seems to work OK, no
	need to have the correspoinding macro USE_SETCAPTURE and ifdefs.

	Ifdef out the gdk-ping-msg stuff. I don't remember why it was
	needed at some time, and things seem to work fine now without
	(knock on wood).

	Ifdef out the search for some Latin locale keyboard layout being
	loaded. Not used currently, but might be needed after all, if we
	decide that we want to be able to generate ASCII control character
	events with a non-Latin keyboard.

	(assign_object): New helper function, handles the g_object_ref()
	and unref() calls when assigning GObject pointers.

	(generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
	enter event when the pointer has moved to an ancestor window. Was
	left out by mistake.

	(gdk_window_is_ancestor): Renamed from gdk_window_is_child().

	(gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
	functionality, using ClipCursor().

	(find_window_for_mouse_event): Splice part of code into new
	function find_real_window_for_grabbed_mouse_event().

	(fixup_event, append_event, apply_filters): New functions, code
	refactored out from elsewhere.

	(synthesize_enter_or_leave_event, synthesize_leave_event,
	synthesize_enter_event,
	synthesize_leave_events,synthesize_enter_events): Also take a
	GdkCrossingMode parameter, in preparation to generating
	GDK_CROSSING_GRAB and GDK_CROSSING_UNGRAB events.

	(fixup_event, append_event, fill_key_event_string): New functions,
	code refactoring.

	(vk_from_char, build_keypress_event, build_keyrelease_event):
	Removed as part of dropping WM_CHAR handling.

	(build_key_event_state,gdk_event_translate): Call
	GetKeyboardState(), once, for each keyboard message, instead of
	several calls to GetKeyState() here and there.

	(gdk_event_translate): Fix bugs #104516, #104662, #115902. While
	at it, do some major refactoring, and some fixes for potential
	problems noticed while going through the code.

	Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
	WM_KEYUP. Don't need the state variables related to whether to
	wait for WM_CHAR or not, and whether the current key is
	AltGr. Remove lots of complexity. Thus don't need the
	use_ime_composition flag.

	Not handling WM_CHAR means dead key handling will have to be taken
	care of by GTK, but that seems to work fine, so no worry.

	Another side-effect is that Alt+keypad digits don't work any
	longer, but it's better to learn to use GTK's ISO14755 support is
	anyway.

	Be more careful in checking whether AltGr is involved. Only
	attempt to handle it if the keyboard actually has it. And
	explicitly check for *left* Control plus *right* Alt being
	pressed. Still, allow (left) Alt and/or (right) Control with AltGr
	chars.

	Handle keys using similar code as in the X11 backend. As we have
	built a keymap in gdkkeys-win32.c anyway, use it by calling
	gdk_keymap_translate_keyboard_state() to look up the keysym from
	the virtual key code and keyboard state. Build the key event
	string in exactly the same way as the X11 backend.

	If an IME is being used, don't generate GDK events for keys
	between receiving WM_IME_STARTCOMPOSITION and
	WM_IME_ENDCOMPOSITION, as those keys are for the IME.

	For WM_IME_COMPOSITION, handle all the Unicode chars returned from
	the IME, not just the first one.

	gdk_event_translate() is still quite complex, could split the
	message handler cases out into separate functions.

	On mouse events, when the mouse is grabbed, use
	find_real_window_for_grabbed_mouse_event() in order to be able to
	generate correct crossing events.

	No longer take a pre-allocated GdkEvent as parameter. Instead,
	allocate events as needed and append them to the queue. (This is
	different from how gdk_event_translate() in the X11 backend
	works.) This change made the code much clearer, especially in the
	cases where we have to generate several GDK events for one Windows
	message.  Return FALSE if DefWindowProc() should be called, TRUE
	if not. If DefWindowProc() should not be called, also return the
	value to be returned from the window procedure.

	(Previously, the interaction with gdk_event_translate()'s caller
	was much more complex, when we had to indicate whether the
	already-queued event should be left in the queue or removed, and
	in addition also had to indicate whether to call DefWindowProc()
	or not, and what value to return from the window procedure if
	not.)

	Don't use a separate "private" variable required to be pointing to
	the GdkWindowObject of the "window" variable at all times. Just
	use casts, even if looks a bit uglier.

	Notice destroyed windows as early as possible, and break out of
	the messsage switch.

	Use _gdk_pointer_root as current_window when the pointer is
	outside GDK's top-level windows.

	On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
	appropriate, based on ImmIsIME().

	(gdk_event_translate, gdk_event_send_client_message_for_display,
	gdk_screen_broadcast_client_message): Implement client messages.
	Use a registered Windows message to pass GDK client messages. Note
	that the amount of user data is restricted to four bytes, as it is
	carried in the LPARAM. (The WPARAM is used for the message type
	"atom".)

	(real_window_procedure): Adapt for new gdk_event_translate()
	interface.

	* gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
	_gdk_input_locale_is_ime initially.

	* gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
	of g_colormap_ref()/unref().

	(gdk_window_new): Made code a bit more like the X11 one, pretend
	to handle screens (although we just have one for now).

	* gdk/x11/gdkevents-x11.c
	(gdk_event_send_client_message_for_display,
	gdk_screen_broadcast_client_message): Document the user data
	limitation on Win32.

	* gdk/win32/gdkevents-win32.c (print_event): More complete enter
	and leave notify detail output.

	* gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
	visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
	for those, so that the GtkIMContextCimple compose tables will
	work. Deduce if the keyboard layout has the AltGr key, and set the
	above flag accordingly.
2003-07-26 01:54:59 +00:00
contrib Patch from James Henstridge to update to automake-1.7 (#109542) 2003-05-06 21:55:41 +00:00
debian Argh. Missed one dumb space in rules file. Fixed. 1998-11-18 06:25:35 +00:00
demos Merged from stable. 2003-07-12 14:10:31 +00:00
docs Mention Xnest as a way to debug GTK+ apps. 2003-07-23 18:58:48 +00:00
examples Added 4-sided padding as properties with gtk_alignment_get_padding() and 2003-05-30 18:29:32 +00:00
gdk gdk/win32/gdkprivate-win32.h New flags _gdk_input_locale_is_ime and 2003-07-26 01:54:59 +00:00
gdk-pixbuf Preserve the aspect ratio. (#118145, Owen Taylor) 2003-07-23 22:55:34 +00:00
gtk Document DND signals. 2003-07-25 23:34:37 +00:00
m4macros Fix versioning to avoid changing the soname! 2002-05-06 18:01:39 +00:00
modules make pixbuf_cache static to avoid possible symbol conflicts. 2003-07-15 11:40:19 +00:00
po Updated Ukrainian translation 2003-07-25 18:58:24 +00:00
tests Add over-big test case for preview (much of size from a modified copy of 2003-07-23 22:30:32 +00:00
.cvsignore shut up cvs 2002-03-15 01:43:08 +00:00
acconfig.h Fix some problems with case statements for checking for omitted deps. 2002-06-12 18:48:10 +00:00
acinclude.m4 Add rule to regenerate man pages from Docbook. (man_MANS): Add 2003-06-17 00:37:28 +00:00
AUTHORS Incremented version to 1.2.0. -Shawn <amundson@gtk.org> 1999-02-25 21:39:14 +00:00
autogen.sh Patch from James Henstridge to update to automake-1.7 (#109542) 2003-05-06 21:55:41 +00:00
ChangeLog gdk/win32/gdkprivate-win32.h New flags _gdk_input_locale_is_ime and 2003-07-26 01:54:59 +00:00
ChangeLog.pre-1-0 ChangeLog split up into ChangeLog.pre-1-0 and ChangeLog. 1998-04-17 01:07:36 +00:00
ChangeLog.pre-1-2 moved old ChangeLog to ChangeLog.pre-1-2, and started new one. 1999-02-27 00:26:30 +00:00
ChangeLog.pre-2-0 Move pre-2.0 ChangeLog aside 2002-03-15 22:58:49 +00:00
ChangeLog.pre-2-2 Split ChangeLog 2002-12-28 21:24:40 +00:00
ChangeLog.pre-2-4 gdk/win32/gdkprivate-win32.h New flags _gdk_input_locale_is_ime and 2003-07-26 01:54:59 +00:00
ChangeLog.pre-2-6 gdk/win32/gdkprivate-win32.h New flags _gdk_input_locale_is_ime and 2003-07-26 01:54:59 +00:00
ChangeLog.pre-2-8 gdk/win32/gdkprivate-win32.h New flags _gdk_input_locale_is_ime and 2003-07-26 01:54:59 +00:00
ChangeLog.pre-2-10 gdk/win32/gdkprivate-win32.h New flags _gdk_input_locale_is_ime and 2003-07-26 01:54:59 +00:00
config.h.win32.in Update to match a recent configure-generated config.h 2002-03-03 21:45:11 +00:00
configure.in Use asynchronously _gdk_x11_set_input_focus_safe to avoid having to trap 2003-07-05 01:54:05 +00:00
COPYING Changed LGPL address for FSF in all .h and .c files 1998-04-13 02:02:47 +00:00
gdk-2.0-uninstalled.pc.in Update version to 2.0.0 2002-03-05 21:04:09 +00:00
gdk-2.0.pc.in Update version to 2.0.0 2002-03-05 21:04:09 +00:00
gdk-pixbuf-2.0-uninstalled.pc.in Update version to 2.0.0 2002-03-05 21:04:09 +00:00
gdk-pixbuf-2.0.pc.in Update version to 2.0.0 2002-03-05 21:04:09 +00:00
gtk-config-2.0.in Updated. 2001-04-03 18:48:46 +00:00
gtk-zip.sh.in Look for DLLs also in the bin subdirectory, where libtool 1.5 installs 2003-06-17 23:49:40 +00:00
gtk+-2.0-uninstalled.pc.in Update version to 2.0.0 2002-03-05 21:04:09 +00:00
gtk+-2.0.pc.in Update version to 2.0.0 2002-03-05 21:04:09 +00:00
gtk+.spec.in Fix up a bit to look for the loaders in the right place. (#93011, Dennis 2002-09-24 09:21:48 +00:00
HACKING Patch from Hidetoshi Tajima to fix bad match error when target drawable is 2001-11-30 21:14:07 +00:00
INSTALL Patch from James Henstridge to update to automake-1.7 (#109542) 2003-05-06 21:55:41 +00:00
INSTALL.in Typo fix. 2003-04-09 18:20:09 +00:00
makecopyright Changed LGPL address for FSF in all .h and .c files 1998-04-13 02:02:47 +00:00
Makefile.am new file to build it all ... added to EXTRA_DIST 2003-07-20 15:50:14 +00:00
makefile.msc new file to build it all ... added to EXTRA_DIST 2003-07-20 15:50:14 +00:00
NEWS === Released 2.2.0 === 2002-12-21 01:59:14 +00:00
NEWS.pre-1-0 ooops, fogot this on my last commit... 1998-05-07 07:45:04 +00:00
README Patch from James Henstridge to update to automake-1.7 (#109542) 2003-05-06 21:55:41 +00:00
README.cvs-commits Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS 2001-04-17 19:19:09 +00:00
README.in === Released 2.2.0 === 2002-12-21 01:59:14 +00:00
README.win32 Look for DLLs also in the bin subdirectory, where libtool 1.5 installs 2003-06-17 23:49:40 +00:00
sanitize-la.sh Shell script used to strip dependencies out of .la files. 2002-03-03 02:50:26 +00:00
sanity_check [ Merges from gtk-1-2 ] 1999-09-28 20:19:13 +00:00

General Information
===================

This is GTK+ version 2.3.0. GTK+ is a multi-platform toolkit for
creating graphical user interfaces. Offering a complete set of widgets,
GTK+ is suitable for projects ranging from small one-off projects to
complete application suites.

GTK+ is free software and part of the GNU Project. However, the
licensing terms for GTK+, the GNU LGPL, allow it to be used by all
developers, including those developing proprietary software, without any
license fees or royalties.

The official ftp site is:
  ftp://ftp.gtk.org/pub/gtk

The official web site is:
  http://www.gtk.org/

Information about mailing lists can be found at
  http://www.gtk.org/mailinglists.html

Installation
============

See the file 'INSTALL'

Release notes
=============

* As compared to GTK+-1.2, the default configuration of GTK+-2 has been 
  stream-lined to reduce confusion on the part of new users or users 
  coming from other environments.  Users used to older versions of 
  GTK+ may want to make some adjustments to the default configuration.

   - Emacs keybindings such as Control-A and Control-E to move to the
     ends of lines are not enabled by default in the editing widgets. To
     turn on Emacs keybindings, add the line:

      gtk-key-theme-name = "Emacs"
   
     To your ~/.gtkrc-2.0

   - Editing of menu accelerators by pressing an accelerator over the
     menu item is disabled by default. To enable, it, add:

      gtk-can-change-accels = 1

     to your ~/.gtkrc-2.0

   - To improve useability for keyboard operation, GTK+ now selects the
     contents of an entry when tabbing into it or when it is focused on
     initial window map. To disable this behavior, add:

      gtk-entry-select-on-focus = 0
 
     to your ~/.gtkrc-2.0

* The GTK+ libraries use an '_' prefix to indicate private symbols that
  must not be used by applications. On some platforms, symbols beginning 
  with prefixes such as _gtk, _gdk, and _pango will be exported
  from the library, on others not. In no case can applications
  use these private symbols.

* GTK+-2.2 can be build either with Pango-1.0 and version 1 of
  the Xft library or Pango-1.2 and version 2 of the Xft library
  (Xft is used to to display anti-aliased fonts) By default, GTK+ and 
  Pango are built so that applications will not have explicit dependencies 
  on either version of Xft. To make sure that your application will be 
  binary compatible with future versions of GTK+:

    - Do not configure Pango or GTK+ with the --enable-static or
      --enable-explicit-deps options, since they will cause dependencies 
      on the particular version of Xft.

    - Do not use Xft version 1 directly in your applications.

* There is a bug in the Xft library in XFree86-4.1 and possibly previous
  versions that causes random crashes when using the Pango Xft
  backend. If you want to use Xft fonts, you should upgrade to
  XFree86-4.2.

* Xft support is on by default when using Xft2 but off by
  default when using Xft1. To change this default, set the
  variable GDK_USE_XFT to '1' or '0'. For instance, to 
  turn on Xft fonts when Xft1.

   GDK_USE_XFT=1
   export GDK_USE_XFT

* The gdk_pixbuf_xlib library included in the contrib/ directory of GTK+
  is provided on a as-is basis and has not been tested at all. No
  guarantees about the degree of workingness or about future
  compatibility are provided.

* While efforts have been made to make gdk-pixbuf robust against
  invalid images, using gdk-pixbuf to load untrusted data 
  is not recommended, due to the likelyhood that there are
  additional problems where an invalid image could cause
  gdk-pixbuf to crash or worse.

* The assumption of GLib and GTK+ by default is that filenames on the
  filesystem are encoded in UTF-8 rather than the encoding of the locale;
  The GTK+ developers consider that having filenames whose interpretation
  depends on the current locale is fundamentally a bad idea.

  If you have filenames encoded in the encoding of your locale, then
  you may want to set the G_BROKEN_FILENAMES environment variable:
  
   G_BROKEN_FILENAMES=1
   export G_BROKEN_FILENAMES

  Best integration of GTK+-2.2 with the environment is achieved by 
  using a UTF-8 locale.

How to report bugs
==================

Bugs should be reported to the GNOME bug tracking system.
(http://bugzilla.gnome.org, product gtk+.) You will need to create an
account for yourself.
  
In the bug report please include:
  
* Information about your system. For instance:

   - What operating system and version
   - What version of X
   - For Linux, what version of the C library

  And anything else you think is relevant.

* How to reproduce the bug. 

  If you can reproduce it with the testgtk program that is built in the
  gtk/ subdirectory, that will be most convenient.  Otherwise, please
  include a short test program that exhibits the behavior.  As a last
  resort, you can also provide a pointer to a larger piece of software
  that can be downloaded.

* If the bug was a crash, the exact text that was printed out when the
  crash occured.

* Further information such as stack traces may be useful, but is not
  necessary. If you do send a stack trace, and the error is an X error,
  it will be more useful if the stacktrace is produced running the test
  program with the --sync command line option.

Patches
=======

Patches should also be submitted to bugzilla.gnome.org. If the patch
fixes an existing bug, add the patch as an attachment to that bug
report.

Otherwise, enter a new bug report that describes the patch, and attach
the patch to that bug report.

Bug reports containing patches should include the PATCH keyword in their
keyword fields. If the patch adds to or changes the GTK programming
interface, the API keyword should also be included.
  
Patches should be in unified diff form. (The -u option to GNU diff.)