mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
b83dff24d5
commit
39fd4b3984
|
@ -1,3 +1,11 @@
|
|||
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,22 +775,32 @@ 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);
|
||||
}
|
||||
}
|
||||
|
||||
/* 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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue