Skip to content

Gtk.GestureClick.OnReleased doesn't seem to work #1015

Answered by ozbenh
PlatinumLucario asked this question in Q&A
Discussion options

You must be logged in to vote

So I couldn't fit it properly using your technique, because "stopped" and "end" arrive early while it's still sliding... In my case I was trying to stop the value being updated in the background by some other mechanism while "sliding".

The fix ended up easy once I figured things out. I had to attach the GtkGestureClick to the parent of the slider (I made a GtkBox just aroung the slider for that purpose) and set the GtkGestureClick propagation phase to GTK_PHASE_CAPTURE.

In C this is: gtk_event_controller_set_propagation_phase(GTK_EVENT_CONTROLLER (gesture), GTK_PHASE_CAPTURE);

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@PlatinumLucario
Comment options

Answer selected by PlatinumLucario
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants