summaryrefslogtreecommitdiff
path: root/timerapplet
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2023-07-23 23:34:05 -0400
committerLuke from DC <[email protected]>2023-08-08 18:07:01 +0000
commitd54542b3532cbf51a0b7c3f3655489d8aabcebf9 (patch)
treec6f07557b14b279eb41e7e9f4ec27f7413d46b7b /timerapplet
parent025f642ffcfad725934a6b70635bbf0fb6079e4c (diff)
downloadmate-applets-d54542b3532cbf51a0b7c3f3655489d8aabcebf9.tar.bz2
mate-applets-d54542b3532cbf51a0b7c3f3655489d8aabcebf9.tar.xz
timerapplet: fix build warning
Also simplify the code by using the left button click not the release event in x11 as well as wayland
Diffstat (limited to 'timerapplet')
-rw-r--r--timerapplet/src/timerapplet.c7
1 files changed, 0 insertions, 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);