-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tray: allow css styling #245
Conversation
tray: fix click logic for button tray: attach popup menu to button
Switch the eventbox which is not usable via CSS to a button, and account for the mouse-press differences. Attach popup corner to icon corner, Gtk accounts for orientation issues automatically |
Hi, thanks for your PR! As far as I remember GtkButton doesn't handle scroll events while EventBox does, and that's the reason EventBox is used currently. Please consider applying some workaround to keep scrolling above tray items working. |
I can't say I know a single system item that uses scroll wheel, got a program I can test on? |
From my tests the widget acts the same as before for scroll, but everything I have runs through the GDK_SCROLL_SMOOTH code path... even the discreet scroll wheel. |
If you read the documentation, you must first consider the value of the |
Allow me to rephrase: All my devices report an ev->direction value of GDK_SCROLL_EVENT. I am unable to do testing on the alternative codepaths for GDK_SCOLL_* but can't see anything there that would fail when using Gtk::Button in place of Gtk::EventBox. So: Each individual 'click' of my mouse wheel calls the signal once with a delta_y of +- 1.5 |
With a bunch of On (at least) my version of GTK Every Single scroll event will pose as Smooth scroll until I remove the flag here. wf-shell/src/panel/widgets/tray/item.cpp Line 122 in 7320d40
After this is removed I get So this rules out the previous statement that I couldn't test that code path. I just needed to jump a few more hoops to reach it. This branch doesn't alter scroll wheel responsiveness on any of my tests. |
tray: add icons to button
tray: fix click logic for button
tray: attach popup menu to button