~larsu/ido/slider-min-size

Viewing all changes in revision 149.

  • Committer: Tarmac
  • Author(s): Lars Uebernickel
  • Date: 2013-09-25 15:09:18 UTC
  • mfrom: (148.1.1 trunk)
  • Revision ID: tarmac-20130925150918-ux4zo9795h3ppcwp
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.
. Fixes: https://bugs.launchpad.net/bugs/1229076.

Approved by Ted Gould, PS Jenkins bot.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: