libgimpwidgets: in GimpChainButton, emit "toggled" signal when "active" changes
In GimpChainButton, emit the "toggled" signal whenever the chain button's "active" property changes, either due to user interaction, or programatically. Previously, it would only get emitted when the button was actually clicked. In particular, this fixes an issue where the aspect ratio of a coordinates size-entry won't get updated when its chain button got toggled programatically, as can happen with the scale tool.
This commit is contained in:
parent
cb025cec64
commit
c0c055b4e9
1 changed files with 2 additions and 2 deletions
|
|
@ -393,6 +393,8 @@ gimp_chain_button_set_active (GimpChainButton *button,
|
|||
|
||||
gimp_chain_button_update_image (button);
|
||||
|
||||
g_signal_emit (button, gimp_chain_button_signals[TOGGLED], 0);
|
||||
|
||||
g_object_notify (G_OBJECT (button), "active");
|
||||
}
|
||||
}
|
||||
|
|
@ -447,8 +449,6 @@ gimp_chain_button_clicked_callback (GtkWidget *widget,
|
|||
GimpChainButtonPrivate *private = GET_PRIVATE (button);
|
||||
|
||||
gimp_chain_button_set_active (button, ! private->active);
|
||||
|
||||
g_signal_emit (button, gimp_chain_button_signals[TOGGLED], 0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue