put all tool_manager variables into a struct which is attached to a
2001-07-07 Michael Natterer <mitch@gimp.org> * app/tools/tool_manager.[ch]: put all tool_manager variables into a struct which is attached to a "Gimp". Pass a Gimp* to all tool_manager functions. * app/disp_callbacks.c * app/gdisplay.c * app/gimage.c * app/scale.c * app/scroll.c * app/undo.c * app/gui/convert-dialog.c * app/gui/edit-commands.c * app/gui/tool-options-dialog.c * app/gui/tools-commands.c: changed accordingly. * app/tools/gimpbezierselecttool.c * app/tools/gimpbrightnesscontrasttool.c * app/tools/gimpbycolorselecttool.c * app/tools/gimpclonetool.c * app/tools/gimpcolorbalancetool.c * app/tools/gimpcroptool.c * app/tools/gimpcurvestool.c * app/tools/gimpeditselectiontool.c * app/tools/gimphistogramtool.c * app/tools/gimphuesaturationtool.c * app/tools/gimplevelstool.c * app/tools/gimpposterizetool.c * app/tools/gimptexttool.c * app/tools/gimpthresholdtool.c * app/tools/gimptool.c * app/tools/gimptransformtool.c: mostly bad hacks for tool dialogs which exist without a real context. Needs some more review.
This commit is contained in:

committed by
Michael Natterer

parent
5693956664
commit
b70ee4b76d
@ -92,7 +92,7 @@ edit_cut_cmd_callback (GtkWidget *widget,
|
||||
return_if_no_display (gdisp);
|
||||
|
||||
/* stop any active tool */
|
||||
tool_manager_control_active (HALT, gdisp);
|
||||
tool_manager_control_active (gdisp->gimage->gimp, HALT, gdisp);
|
||||
|
||||
if (gimp_edit_cut (gdisp->gimage,
|
||||
gimp_image_active_drawable (gdisp->gimage)))
|
||||
@ -122,7 +122,7 @@ edit_paste_cmd_callback (GtkWidget *widget,
|
||||
if (gdisp->gimage->gimp->global_buffer)
|
||||
{
|
||||
/* stop any active tool */
|
||||
tool_manager_control_active (HALT, gdisp);
|
||||
tool_manager_control_active (gdisp->gimage->gimp, HALT, gdisp);
|
||||
|
||||
if (gimp_edit_paste (gdisp->gimage,
|
||||
gimp_image_active_drawable (gdisp->gimage),
|
||||
@ -145,7 +145,7 @@ edit_paste_into_cmd_callback (GtkWidget *widget,
|
||||
if (gdisp->gimage->gimp->global_buffer)
|
||||
{
|
||||
/* stop any active tool */
|
||||
tool_manager_control_active (HALT, gdisp);
|
||||
tool_manager_control_active (gdisp->gimage->gimp, HALT, gdisp);
|
||||
|
||||
if (gimp_edit_paste (gdisp->gimage,
|
||||
gimp_image_active_drawable (gdisp->gimage),
|
||||
@ -168,7 +168,7 @@ edit_paste_as_new_cmd_callback (GtkWidget *widget,
|
||||
if (gdisp->gimage->gimp->global_buffer)
|
||||
{
|
||||
/* stop any active tool */
|
||||
tool_manager_control_active (HALT, gdisp);
|
||||
tool_manager_control_active (gdisp->gimage->gimp, HALT, gdisp);
|
||||
|
||||
gimp_edit_paste_as_new (gdisp->gimage->gimp,
|
||||
gdisp->gimage,
|
||||
@ -186,7 +186,7 @@ edit_named_cut_cmd_callback (GtkWidget *widget,
|
||||
return_if_no_display (gdisp);
|
||||
|
||||
/* stop any active tool */
|
||||
tool_manager_control_active (HALT, gdisp);
|
||||
tool_manager_control_active (gdisp->gimage->gimp, HALT, gdisp);
|
||||
|
||||
qbox = gimp_query_string_box (_("Cut Named"),
|
||||
gimp_standard_help_func,
|
||||
|
Reference in New Issue
Block a user