summaryrefslogtreecommitdiff
path: root/plugins/keyboard
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-02-01 17:13:31 +0100
committerLuke from DC <[email protected]>2021-02-23 06:09:33 +0000
commit667f7638a449dc0074b57898af60516201a90767 (patch)
tree56dab4adbe6c7313f46863e78b4fcbc1e23e88cd /plugins/keyboard
parent693598303950a7ad75bbfb7c0b201ed79da45530 (diff)
downloadmate-settings-daemon-667f7638a449dc0074b57898af60516201a90767.tar.bz2
mate-settings-daemon-667f7638a449dc0074b57898af60516201a90767.tar.xz
keyboard: Remove warning -Wcast-function-type
Diffstat (limited to 'plugins/keyboard')
-rw-r--r--plugins/keyboard/msd-keyboard-xkb.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/keyboard/msd-keyboard-xkb.c b/plugins/keyboard/msd-keyboard-xkb.c
index c120503..33fe4e5 100644
--- a/plugins/keyboard/msd-keyboard-xkb.c
+++ b/plugins/keyboard/msd-keyboard-xkb.c
@@ -504,8 +504,11 @@ msd_keyboard_xkb_set_post_activation_callback (PostActivationCallback fun,
}
static GdkFilterReturn
-msd_keyboard_xkb_evt_filter (GdkXEvent * xev, GdkEvent * event)
+msd_keyboard_xkb_evt_filter (GdkXEvent *xev,
+ GdkEvent *event,
+ gpointer data)
{
+ (void) data;
XEvent *xevent = (XEvent *) xev;
xkl_engine_filter_events (xkl_engine, xevent);
return GDK_FILTER_CONTINUE;
@@ -619,8 +622,7 @@ msd_keyboard_xkb_init (MsdKeyboardManager * kbd_manager)
g_signal_connect (settings_kbd, "changed",
G_CALLBACK (apply_xkb_settings_cb), NULL);
- gdk_window_add_filter (NULL, (GdkFilterFunc)
- msd_keyboard_xkb_evt_filter, NULL);
+ gdk_window_add_filter (NULL, msd_keyboard_xkb_evt_filter, NULL);
if (xkl_engine_get_features (xkl_engine) &
XKLF_DEVICE_DISCOVERY)
@@ -673,8 +675,7 @@ msd_keyboard_xkb_shutdown (void)
XKLL_MANAGE_LAYOUTS |
XKLL_MANAGE_WINDOW_STATES);
- gdk_window_remove_filter (NULL, (GdkFilterFunc)
- msd_keyboard_xkb_evt_filter, NULL);
+ gdk_window_remove_filter (NULL, msd_keyboard_xkb_evt_filter, NULL);
if (settings_desktop != NULL) {
g_object_unref (settings_desktop);