Commit a4e7e678 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

Bug 566575 – Warning when creating sample point and releasing Ctrl key

2009-03-28  Michael Natterer  <mitch@gimp.org>

	Bug 566575 – Warning when creating sample point and releasing Ctrl
	key too late

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_ruler_button_press): call
	gimp_display_shell_update_focus() after changing the tool so the
	new tool has the right state.


svn path=/trunk/; revision=28226
parent d9448730
2009-03-28 Michael Natterer <mitch@gimp.org>
Bug 566575 Warning when creating sample point and releasing Ctrl
key too late
* app/display/gimpdisplayshell-callbacks.c
(gimp_display_shell_ruler_button_press): call
gimp_display_shell_update_focus() after changing the tool so the
new tool has the right state.
2009-03-28 Michael Natterer <mitch@gimp.org> 2009-03-28 Michael Natterer <mitch@gimp.org>
Bug 555025 Action GEGL box widgets weirdness Bug 555025 Action GEGL box widgets weirdness
......
...@@ -1666,8 +1666,14 @@ gimp_display_shell_ruler_button_press (GtkWidget *widget, ...@@ -1666,8 +1666,14 @@ gimp_display_shell_ruler_button_press (GtkWidget *widget,
"gimp-move-tool"); "gimp-move-tool");
if (tool_info) if (tool_info)
gimp_context_set_tool (gimp_get_user_context (display->gimp), {
tool_info); gimp_context_set_tool (gimp_get_user_context (display->gimp),
tool_info);
/* make sure the newly created tool has the right state
*/
gimp_display_shell_update_focus (shell, NULL, event->state);
}
} }
active_tool = tool_manager_get_active (display->gimp); active_tool = tool_manager_get_active (display->gimp);
......
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