mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
0db4000945
commit
3e58667f6b
@ -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*
|
||||
|
Loading…
Reference in New Issue
Block a user