[PATCH] WPrefs: add mouse wheel action to the expert panel
4 views
Skip to first unread message
david.m...@gmail.com
unread,
Feb 16, 2026, 11:03:24 AM (8 days ago) Feb 16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Window Maker Development
This patch is adding the mouse wheel action to be performed on the expert text frame panel. --- WINGs/WINGs/WINGs.h | 2 + WPrefs.app/Expert.c | 130 +++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 130 insertions(+), 2 deletions(-)
WMScroller* WMGetScrollViewVerticalScroller(WMScrollView *sPtr); diff --git a/WPrefs.app/Expert.c b/WPrefs.app/Expert.c index 6ef6307d..d2d33028 100644 --- a/WPrefs.app/Expert.c +++ b/WPrefs.app/Expert.c @@ -4,7 +4,7 @@ * * Copyright (c) 2014-2023 Window Maker Team * Copyright (c) 1998-2003 Alfredo K. Kojima - * Copyright (c) 2009-2023 Window Maker Team + * Copyright (c) 2009-2026 Window Maker Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -147,6 +147,8 @@ typedef struct _Panel { WMButton *swi[wlengthof_nocheck(expert_options)];
default: #ifdef DEBUG -wwarning("export_options[%d].class = %d, this should not happen\n", +wwarning("expert_options[%d].class = %d, this should not happen\n", i, expert_options[i].class); #endif state = expert_options[i].def_state; @@ -302,6 +422,11 @@ static void createPanel(Panel *p)
WMMapSubwidgets(panel->box); WMSetScrollViewContentView(sv, WMWidgetView(f)); +/* keep references for the wheel handler and register it */ +panel->sv = sv; +panel->frame = f; +WMCreateEventHandler(WMWidgetView(sv), ButtonPressMask, scrollViewWheelHandler, panel); +WMAddNotificationObserver(scrollViewRealizeObserver, panel, WMViewRealizedNotification, WMWidgetView(sv)); WMRealizeWidget(panel->box); }