Commit 39fd4b39 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

put back some important code that was accidentially removed when fixing

2005-02-21  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_tool_events): put back some important
	code that was accidentially removed when fixing bug #162823. Also
	moved the calls to gtk_grab_add() and gtk_grab_remove() around a
	bit.
parent b83dff24
2005-02-21 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-callbacks.c
(gimp_display_shell_canvas_tool_events): put back some important
code that was accidentially removed when fixing bug #162823. Also
moved the calls to gtk_grab_add() and gtk_grab_remove() around a
bit.
2005-02-21 Michael Natterer <mitch@gimp.org>
* app/widgets/gimptoolbox.c (toolbox_area_notify): apply evil
......
......@@ -775,23 +775,33 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
gdk_display_pointer_ungrab (gdk_display, time);
gtk_grab_add (GTK_WIDGET (canvas));
if (active_tool &&
(! gimp_image_is_empty (gimage) ||
gimp_tool_control_handles_empty_image (active_tool->control)))
{
if (gimp_tool_control_is_active (active_tool->control))
{
gtk_grab_add (GTK_WIDGET (canvas));
tool_manager_button_release_active (gimp,
&image_coords,
time, state,
gdisp);
gtk_grab_remove (GTK_WIDGET (canvas));
}
}
/* update the tool's modifier state because it didn't get
* key events while BUTTON1 was down
*/
tool_manager_focus_display_active (gimp, gdisp);
tool_manager_modifier_state_active (gimp, state, gdisp);
tool_manager_oper_update_active (gimp,
&image_coords, state,
gdisp);
gtk_grab_remove (GTK_WIDGET (canvas));
if (shell->space_release_pending)
{
#ifdef DEBUG_MOVE_PUSH
......
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