Merge lp://qastaging/~larsu/ido/lp1229076 into lp://qastaging/ido/13.10

Proposed by Lars Karlitski
Status: Merged
Approved by: Ted Gould
Approved revision: 149
Merged at revision: 149
Proposed branch: lp://qastaging/~larsu/ido/lp1229076
Merge into: lp://qastaging/ido/13.10
Diff against target: 141 lines (+59/-9)
1 file modified
src/idoscalemenuitem.c (+59/-9)
To merge this branch: bzr merge lp://qastaging/~larsu/ido/lp1229076
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+187378@code.qastaging.launchpad.net

Description of the change

idoscalemenuitem: don't update the action state when the action state changes

GtkRange has the same weird semantics for its "value-changed" signal that the check menu items have: it is emitted not only on user interaction, but also when gtk_range_set_value() is called.

The handler to "value-changed" updates the action. gtk_range_set_value() is called when the action notifies about a state change. Loop, meet loop.

This patch works around that by adding a "value-changed" to IdoScaleMenuItem that is only emitted when the user changes the slider's value.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ted Gould (ted) wrote :

Code looks fine. I'm not able to reproduce the issue with the previous version. But this version works for me.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches