From 54e2bb1acaf71b7b54e796f7bfa311fb32d84830 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 17 Dec 2021 14:17:29 +0100 Subject: Remove unnecessary cast in g_signal_connect* call --- applets/wncklet/wayland-backend.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'applets/wncklet/wayland-backend.c') diff --git a/applets/wncklet/wayland-backend.c b/applets/wncklet/wayland-backend.c index 00d96025..f82b7fee 100644 --- a/applets/wncklet/wayland-backend.c +++ b/applets/wncklet/wayland-backend.c @@ -352,8 +352,7 @@ toplevel_task_new (TasklistManager *tasklist, struct zwlr_foreign_toplevel_handl task, (GDestroyNotify)toplevel_task_disconnected_from_widget); - g_signal_connect (G_OBJECT (task->button), - "button-press-event", + g_signal_connect (task->button, "button-press-event", G_CALLBACK (on_toplevel_button_press), task); -- cgit v1.2.1