diff options
author | zhuyaliang <[email protected]> | 2023-10-24 19:56:51 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-11-06 12:56:20 +0100 |
commit | 688ec2f47167fcca1c3e14854b69640479422794 (patch) | |
tree | 4f4f2a806da2dca2bfc13aea2a74fa0a08fdb4a4 /src/gpm-button.c | |
parent | 9a8cfd772538539776654401d7a1293595405c90 (diff) | |
download | mate-power-manager-688ec2f47167fcca1c3e14854b69640479422794.tar.bz2 mate-power-manager-688ec2f47167fcca1c3e14854b69640479422794.tar.xz |
Remove compilation warning fix data type format error
Diffstat (limited to 'src/gpm-button.c')
-rw-r--r-- | src/gpm-button.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpm-button.c b/src/gpm-button.c index b751826..5bfe19d 100644 --- a/src/gpm-button.c +++ b/src/gpm-button.c @@ -110,12 +110,12 @@ gpm_button_filter_x_events (GdkXEvent *xevent, GdkEvent *event, gpointer data) /* found anything? */ if (key == NULL) { - g_debug ("Key %i not found in hash", keycode); + g_debug ("Key %u not found in hash", keycode); /* pass normal keypresses on, which might help with accessibility access */ return GDK_FILTER_CONTINUE; } - g_debug ("Key %i mapped to key %s", keycode, key); + g_debug ("Key %u mapped to key %s", keycode, key); gpm_button_emit_type (button, key); return GDK_FILTER_REMOVE; @@ -207,7 +207,7 @@ gpm_button_xevent_key (GpmButton *button, guint keysym, const gchar *key_name) keycode_str = g_strdup_printf ("0x%x", keycode); key = g_hash_table_lookup (button->priv->keysym_to_name_hash, (gpointer) keycode_str); if (key != NULL) { - g_warning ("found in hash %i", keycode); + g_warning ("found in hash %u", keycode); g_free (keycode_str); return FALSE; } @@ -215,7 +215,7 @@ gpm_button_xevent_key (GpmButton *button, guint keysym, const gchar *key_name) /* try to register X event */ ret = gpm_button_grab_keystring (button, keycode); if (!ret) { - g_warning ("Failed to grab %i", keycode); + g_warning ("Failed to grab %u", keycode); g_free (keycode_str); return FALSE; } |