Commit 3e58667f authored by Tor Lillqvist's avatar Tor Lillqvist Committed by Tor Lillqvist

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.
parent 0db40009
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment