Commit a3ed509b authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

connect to our own "response" signal so our callback is the first one

2006-01-03  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpdialog.c (gimp_dialog_init): connect to our
	own "response" signal so our callback is the first one called.

	(gimp_dialog_response): let the activated widget grab the focus,
	so input fields which update their model and/or constraints on
	focus_out are properly recalculated. Fixes bug #309373.
parent 481ea256
......@@ -4,7 +4,7 @@
own "response" signal so our callback is the first one called.
(gimp_dialog_response): let the activated widget grab the focus,
so input fields which update their model or constraints on
so input fields which update their model and/or constraints on
focus_out are properly recalculated. Fixes bug #309373.
2006-01-02 Simon Budig <simon@gimp.org>
......
......@@ -267,7 +267,12 @@ gimp_dialog_response (GtkDialog *dialog,
if (gtk_dialog_get_response_for_widget (dialog, widget) == response_id)
{
gtk_widget_grab_focus (widget);
if (! GTK_IS_BUTTON (widget) ||
gtk_button_get_focus_on_click (GTK_BUTTON (button)))
{
gtk_widget_grab_focus (widget);
}
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment