Skip to content
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

GTK4 Astal Slider's adjustment always has page_increment set to 0 #238

Open
Mabi19 opened this issue Jan 7, 2025 · 0 comments
Open

GTK4 Astal Slider's adjustment always has page_increment set to 0 #238

Mabi19 opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Mabi19
Copy link

Mabi19 commented Jan 7, 2025

Describe the bug
The implementation of Astal4.Slider sets the underlying adjustment's page_increment property to 0 with no way to change it.
This is the property that controlls scrolling step size, and it being set to 0 causes scrolling on Astal sliders to do nothing.

To Reproduce
Create an Astal slider (for example, with <slider />) and a GtkScale (for example, with Gtk.Scale.new_with_range(Gtk.Orientation.HORIZONTAL, 0, 1, 0.01)) and display them.
Scrolling the mouse wheel on the Astal slider does nothing, but it does change the GtkScale's value (and quite dramatically in fact)

Expected behavior
The Astal slider should have a sensible default value for the page_increment property (and it should probably be configurable).

Additional context
This also causes the PgUp and PgDn keys to do nothing, as they're configured by the same property.

@Mabi19 Mabi19 added the bug Something isn't working label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant