Merge from gtk-2-0:

2002-09-12  Tor Lillqvist  <tml@iki.fi>

	Merge from gtk-2-0:

	* gdk/win32/gdkkeys-win32.c (print_keysym_tab): Factor out
	debugging output to new function.
This commit is contained in:
Tor Lillqvist 2002-09-11 21:55:48 +00:00 committed by Tor Lillqvist
parent 0db4000945
commit 3e58667f6b
7 changed files with 43 additions and 22 deletions

View File

@ -29,6 +29,9 @@
to some functions, related to moving and resizing and expose
and antiexpose queue processing. Use %p to output HWNDs.
* gdk/win32/gdkkeys-win32.c (print_keysym_tab): Factor out
debugging output to new function.
Fix for #81831 by Tim Evans:
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call

View File

@ -29,6 +29,9 @@
to some functions, related to moving and resizing and expose
and antiexpose queue processing. Use %p to output HWNDs.
* gdk/win32/gdkkeys-win32.c (print_keysym_tab): Factor out
debugging output to new function.
Fix for #81831 by Tim Evans:
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call

View File

@ -29,6 +29,9 @@
to some functions, related to moving and resizing and expose
and antiexpose queue processing. Use %p to output HWNDs.
* gdk/win32/gdkkeys-win32.c (print_keysym_tab): Factor out
debugging output to new function.
Fix for #81831 by Tim Evans:
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call

View File

@ -29,6 +29,9 @@
to some functions, related to moving and resizing and expose
and antiexpose queue processing. Use %p to output HWNDs.
* gdk/win32/gdkkeys-win32.c (print_keysym_tab): Factor out
debugging output to new function.
Fix for #81831 by Tim Evans:
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call

View File

@ -29,6 +29,9 @@
to some functions, related to moving and resizing and expose
and antiexpose queue processing. Use %p to output HWNDs.
* gdk/win32/gdkkeys-win32.c (print_keysym_tab): Factor out
debugging output to new function.
Fix for #81831 by Tim Evans:
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call

View File

@ -29,6 +29,9 @@
to some functions, related to moving and resizing and expose
and antiexpose queue processing. Use %p to output HWNDs.
* gdk/win32/gdkkeys-win32.c (print_keysym_tab): Factor out
debugging output to new function.
Fix for #81831 by Tim Evans:
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call

View File

@ -44,6 +44,30 @@ static GdkKeymap *default_keymap = NULL;
static guint *keysym_tab = NULL;
#ifdef G_ENABLE_DEBUG
static void
print_keysym_tab (void)
{
gint vk;
g_print ("keymap:\n");
for (vk = 0; vk < 256; vk++)
{
gint state;
g_print ("%#.02x: ", vk);
for (state = 0; state < 4; state++)
{
gchar *name = gdk_keyval_name (keysym_tab[vk*4 + state]);
if (name == NULL)
name = "(none)";
g_print ("%s ", name);
}
g_print ("\n");
}
}
#endif
static void
update_keymap (void)
{
@ -262,28 +286,7 @@ update_keymap (void)
key_state[vk] = 0;
}
}
#ifdef G_ENABLE_DEBUG
if (_gdk_debug_flags & GDK_DEBUG_EVENTS)
{
gint vk;
g_print ("keymap:\n");
for (vk = 0; vk < 256; vk++)
{
gint state;
g_print ("%#.02x: ", vk);
for (state = 0; state < 4; state++)
{
gchar *name = gdk_keyval_name (keysym_tab[vk*4 + state]);
if (name == NULL)
name = "(none)";
g_print ("%s ", name);
}
g_print ("\n");
}
}
#endif
GDK_NOTE (EVENTS, print_keysym_tab ());
}
GdkKeymap*