From d54542b3532cbf51a0b7c3f3655489d8aabcebf9 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Sun, 23 Jul 2023 23:34:05 -0400 Subject: timerapplet: fix build warning Also simplify the code by using the left button click not the release event in x11 as well as wayland --- timerapplet/src/timerapplet.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/timerapplet/src/timerapplet.c b/timerapplet/src/timerapplet.c index e4aee0f5..bad95ce8 100644 --- a/timerapplet/src/timerapplet.c +++ b/timerapplet/src/timerapplet.c @@ -430,13 +430,6 @@ timer_applet_fill (MatePanelApplet* applet_widget) G_CALLBACK (timer_applet_destroy), applet); -#ifdef GDK_WINDOWING_X11 - if (GDK_IS_X11_DISPLAY (gdk_display_get_default ())) - g_signal_connect_swapped (applet->applet, "button-release-event", - G_CALLBACK (timer_applet_click), - applet); - else -#endif g_signal_connect_swapped (applet->applet, "button_press_event", G_CALLBACK (timer_applet_click), applet); -- cgit v1.2.1