summaryrefslogtreecommitdiff
path: root/src/gpm-button.c
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2023-10-24 19:56:51 +0800
committerraveit65 <[email protected]>2023-11-06 12:56:20 +0100
commit688ec2f47167fcca1c3e14854b69640479422794 (patch)
tree4f4f2a806da2dca2bfc13aea2a74fa0a08fdb4a4 /src/gpm-button.c
parent9a8cfd772538539776654401d7a1293595405c90 (diff)
downloadmate-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.c8
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;
}