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:
committed by
Tor Lillqvist
parent
0db4000945
commit
3e58667f6b
@ -29,6 +29,9 @@
|
|||||||
to some functions, related to moving and resizing and expose
|
to some functions, related to moving and resizing and expose
|
||||||
and antiexpose queue processing. Use %p to output HWNDs.
|
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:
|
Fix for #81831 by Tim Evans:
|
||||||
|
|
||||||
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call
|
* 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
|
to some functions, related to moving and resizing and expose
|
||||||
and antiexpose queue processing. Use %p to output HWNDs.
|
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:
|
Fix for #81831 by Tim Evans:
|
||||||
|
|
||||||
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call
|
* 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
|
to some functions, related to moving and resizing and expose
|
||||||
and antiexpose queue processing. Use %p to output HWNDs.
|
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:
|
Fix for #81831 by Tim Evans:
|
||||||
|
|
||||||
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call
|
* 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
|
to some functions, related to moving and resizing and expose
|
||||||
and antiexpose queue processing. Use %p to output HWNDs.
|
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:
|
Fix for #81831 by Tim Evans:
|
||||||
|
|
||||||
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call
|
* 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
|
to some functions, related to moving and resizing and expose
|
||||||
and antiexpose queue processing. Use %p to output HWNDs.
|
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:
|
Fix for #81831 by Tim Evans:
|
||||||
|
|
||||||
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call
|
* 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
|
to some functions, related to moving and resizing and expose
|
||||||
and antiexpose queue processing. Use %p to output HWNDs.
|
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:
|
Fix for #81831 by Tim Evans:
|
||||||
|
|
||||||
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call
|
* 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;
|
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
|
static void
|
||||||
update_keymap (void)
|
update_keymap (void)
|
||||||
{
|
{
|
||||||
@ -262,28 +286,7 @@ update_keymap (void)
|
|||||||
key_state[vk] = 0;
|
key_state[vk] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef G_ENABLE_DEBUG
|
GDK_NOTE (EVENTS, print_keysym_tab ());
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GdkKeymap*
|
GdkKeymap*
|
||||||
|
|||||||
Reference in New Issue
Block a user