Commit 37ce6b9a authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

app/Makefile.am removed.

2001-07-08  Michael Natterer  <mitch@gimp.org>

	* app/Makefile.am
	* app/drawable.[ch]: removed.

	* app/core/gimpdrawable.[ch]: added the functions here. Made an
	end to the myth that FG/BG and the undo system (!!!) are not
	really part of the core.

	* app/disp_callbacks.c
	* app/floating_sel.c
	* app/image_map.c
	* app/qmask.c
	* app/undo.c
	* app/core/gimpchannel.c
	* app/core/gimpdrawable-desaturate.c
	* app/core/gimpdrawable-equalize.c
	* app/core/gimpdrawable-invert.c
	* app/core/gimpdrawable-offset.c
	* app/core/gimpedit.c
	* app/core/gimpimage-duplicate.c
	* app/core/gimpimage-mask.c
	* app/core/gimpimage-new.c
	* app/core/gimpimage.[ch]
	* app/core/gimplayer.c
	* app/core/gimplayermask.c
	* app/gui/channels-commands.c
	* app/gui/gui.c
	* app/gui/layers-commands.c
	* app/tools/gimpairbrushtool.c
	* app/tools/gimpbezierselecttool.c
	* app/tools/gimpblendtool.c
	* app/tools/gimpbrightnesscontrasttool.c
	* app/tools/gimpbucketfilltool.c
	* app/tools/gimpclonetool.c
	* app/tools/gimpcolorbalancetool.c
	* app/tools/gimpconvolvetool.c
	* app/tools/gimpcurvestool.c
	* app/tools/gimphistogramtool.c
	* app/tools/gimphuesaturationtool.c
	* app/tools/gimpinktool.c
	* app/tools/gimpiscissorstool.c
	* app/tools/gimplevelstool.c
	* app/tools/gimppainttool.c
	* app/tools/gimpposterizetool.c
	* app/tools/gimpscaletool.c
	* app/tools/gimpthresholdtool.c
	* app/tools/gimptransformtool.c
	* app/tools/tool_manager.c
	* app/widgets/gimpchannellistitem.c
	* app/widgets/gimpchannellistview.c
	* app/widgets/gimpdrawablelistitem.c
	* app/widgets/gimplayerlistitem.c
	* app/widgets/gimplayerlistview.c
	* app/pdb/channel_cmds.c
	* app/pdb/color_cmds.c
	* app/pdb/drawable_cmds.c
	* app/pdb/edit_cmds.c
	* app/pdb/floating_sel_cmds.c
	* app/pdb/image_cmds.c
	* app/pdb/layer_cmds.c
	* app/pdb/parasite_cmds.c
	* app/pdb/selection_cmds.c
	* app/pdb/text_tool_cmds.c
	* app/pdb/tools_cmds.c
	* tools/pdbgen/pdb.pl
	* tools/pdbgen/pdb/color.pdb
	* tools/pdbgen/pdb/drawable.pdb: changed accordingly. Misc small
	fixes and cleanups.
parent 3196563c
2001-07-08 Michael Natterer <mitch@gimp.org>
* app/Makefile.am
* app/drawable.[ch]: removed.
* app/core/gimpdrawable.[ch]: added the functions here. Made an
end to the myth that FG/BG and the undo system (!!!) are not
really part of the core.
* app/disp_callbacks.c
* app/floating_sel.c
* app/image_map.c
* app/qmask.c
* app/undo.c
* app/core/gimpchannel.c
* app/core/gimpdrawable-desaturate.c
* app/core/gimpdrawable-equalize.c
* app/core/gimpdrawable-invert.c
* app/core/gimpdrawable-offset.c
* app/core/gimpedit.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage-mask.c
* app/core/gimpimage-new.c
* app/core/gimpimage.[ch]
* app/core/gimplayer.c
* app/core/gimplayermask.c
* app/gui/channels-commands.c
* app/gui/gui.c
* app/gui/layers-commands.c
* app/tools/gimpairbrushtool.c
* app/tools/gimpbezierselecttool.c
* app/tools/gimpblendtool.c
* app/tools/gimpbrightnesscontrasttool.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpclonetool.c
* app/tools/gimpcolorbalancetool.c
* app/tools/gimpconvolvetool.c
* app/tools/gimpcurvestool.c
* app/tools/gimphistogramtool.c
* app/tools/gimphuesaturationtool.c
* app/tools/gimpinktool.c
* app/tools/gimpiscissorstool.c
* app/tools/gimplevelstool.c
* app/tools/gimppainttool.c
* app/tools/gimpposterizetool.c
* app/tools/gimpscaletool.c
* app/tools/gimpthresholdtool.c
* app/tools/gimptransformtool.c
* app/tools/tool_manager.c
* app/widgets/gimpchannellistitem.c
* app/widgets/gimpchannellistview.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c
* app/pdb/channel_cmds.c
* app/pdb/color_cmds.c
* app/pdb/drawable_cmds.c
* app/pdb/edit_cmds.c
* app/pdb/floating_sel_cmds.c
* app/pdb/image_cmds.c
* app/pdb/layer_cmds.c
* app/pdb/parasite_cmds.c
* app/pdb/selection_cmds.c
* app/pdb/text_tool_cmds.c
* app/pdb/tools_cmds.c
* tools/pdbgen/pdb.pl
* tools/pdbgen/pdb/color.pdb
* tools/pdbgen/pdb/drawable.pdb: changed accordingly. Misc small
fixes and cleanups.
2001-07-07 Michael Natterer <mitch@gimp.org>
* app/Makefile.am
......
......@@ -81,8 +81,6 @@ gimp_SOURCES = @STRIP_BEGIN@ \
##
datafiles.c \
datafiles.h \
drawable.c \
drawable.h \
floating_sel.c \
floating_sel.h \
gimpparasite.c \
......
......@@ -39,7 +39,6 @@
#include "menus.h"
#include "app_procs.h"
#include "drawable.h"
#include "libgimp/gimpintl.h"
......@@ -316,9 +315,9 @@ new_channel_query_ok_callback (GtkWidget *widget,
channel_name,
&channel_color);
drawable_fill (GIMP_DRAWABLE (new_channel),
gimp_get_user_context (the_gimp),
TRANSPARENT_FILL);
gimp_drawable_fill_by_type (GIMP_DRAWABLE (new_channel),
gimp_get_user_context (the_gimp),
TRANSPARENT_FILL);
gimp_image_add_channel (gimage, new_channel, -1);
gdisplays_flush ();
......@@ -465,12 +464,7 @@ edit_channel_query_ok_callback (GtkWidget *widget,
if (gimp_rgba_distance (&color, &channel->color) > 0.0001)
{
channel->color = color;
drawable_update (GIMP_DRAWABLE (channel),
0, 0,
GIMP_DRAWABLE (channel)->width,
GIMP_DRAWABLE (channel)->height);
gimp_channel_set_color (channel, &color);
gdisplays_flush ();
}
......
......@@ -44,7 +44,6 @@
#include "resize-dialog.h"
#include "app_procs.h"
#include "drawable.h"
#include "gdisplay.h"
#include "floating_sel.h"
#include "undo.h"
......@@ -246,7 +245,7 @@ layers_delete_cmd_callback (GtkWidget *widget,
else
gimp_image_remove_layer (gimage, layer);
gdisplays_flush_now ();
gdisplays_flush ();
}
void
......@@ -544,9 +543,9 @@ new_layer_query_ok_callback (GtkWidget *widget,
layer_name, OPAQUE_OPACITY, NORMAL_MODE);
if (layer)
{
drawable_fill (GIMP_DRAWABLE (layer),
gimp_get_user_context (the_gimp),
fill_type);
gimp_drawable_fill_by_type (GIMP_DRAWABLE (layer),
gimp_get_user_context (gimage->gimp),
fill_type);
gimp_image_add_layer (gimage, layer, -1);
/* End the group undo */
......
......@@ -38,7 +38,6 @@
#include "widgets/gimpcolorpanel.h"
#include "app_procs.h"
#include "drawable.h"
#include "floating_sel.h"
#include "gdisplay.h"
#include "qmask.h"
......@@ -51,11 +50,11 @@ typedef struct _EditQmaskOptions EditQmaskOptions;
struct _EditQmaskOptions
{
GtkWidget *query_box;
GtkWidget *name_entry;
GtkWidget *color_panel;
GtkWidget *query_box;
GtkWidget *name_entry;
GtkWidget *color_panel;
GimpImage *gimage;
GimpImage *gimage;
};
......@@ -104,7 +103,7 @@ qmask_removed_callback (GtkObject *qmask,
if (!gdisp->gimage)
return;
gdisp->gimage->qmask_state = FALSE;
qmask_buttons_update (gdisp);
......@@ -120,34 +119,34 @@ qmask_buttons_update (GDisplay *gdisp)
if (gdisp->gimage->qmask_state != GTK_TOGGLE_BUTTON (gdisp->qmaskon)->active)
{
/* Disable toggle from doing anything */
gtk_signal_handler_block_by_func(GTK_OBJECT(gdisp->qmaskoff),
(GtkSignalFunc) qmask_deactivate,
gdisp);
gtk_signal_handler_block_by_func(GTK_OBJECT(gdisp->qmaskon),
(GtkSignalFunc) qmask_activate,
gdisp);
gtk_signal_handler_block_by_func (GTK_OBJECT (gdisp->qmaskoff),
GTK_SIGNAL_FUNC (qmask_deactivate),
gdisp);
gtk_signal_handler_block_by_func (GTK_OBJECT (gdisp->qmaskon),
GTK_SIGNAL_FUNC (qmask_activate),
gdisp);
/* Change the state of the buttons */
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(gdisp->qmaskon),
gdisp->gimage->qmask_state);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (gdisp->qmaskon),
gdisp->gimage->qmask_state);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(gdisp->qmaskoff),
!gdisp->gimage->qmask_state);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (gdisp->qmaskoff),
! gdisp->gimage->qmask_state);
/* Enable toggle again */
gtk_signal_handler_unblock_by_func(GTK_OBJECT(gdisp->qmaskoff),
(GtkSignalFunc) qmask_deactivate,
gdisp);
gtk_signal_handler_unblock_by_func(GTK_OBJECT(gdisp->qmaskon),
(GtkSignalFunc) qmask_activate,
gdisp);
gtk_signal_handler_unblock_by_func (GTK_OBJECT (gdisp->qmaskoff),
GTK_SIGNAL_FUNC (qmask_deactivate),
gdisp);
gtk_signal_handler_unblock_by_func (GTK_OBJECT (gdisp->qmaskon),
GTK_SIGNAL_FUNC (qmask_activate),
gdisp);
}
}
void
qmask_click_handler (GtkWidget *widget,
GdkEventButton *event,
gpointer data)
void
qmask_click_handler (GtkWidget *widget,
GdkEventButton *event,
gpointer data)
{
GDisplay *gdisp;
......@@ -164,28 +163,29 @@ void
qmask_deactivate (GtkWidget *widget,
GDisplay *gdisp)
{
GimpImage *gimg;
GimpImage *gimage;
GimpChannel *gmask;
if (gdisp)
{
gimg = gdisp->gimage;
if (!gimg)
gimage = gdisp->gimage;
if (! gimage)
return;
if (!gdisp->gimage->qmask_state)
return; /* if already set do nothing */
if ( (gmask = gimp_image_get_channel_by_name (gimg, "Qmask")) )
if ( (gmask = gimp_image_get_channel_by_name (gimage, "Qmask")) )
{
undo_push_group_start (gimg, QMASK_UNDO);
undo_push_group_start (gimage, QMASK_UNDO);
/* push the undo here since removing the mask will
call the qmask_removed_callback() which will set
the qmask_state to FALSE */
undo_push_qmask (gimg);
gimage_mask_load (gimg, gmask);
gimp_image_remove_channel (gimg, gmask);
undo_push_group_end (gimg);
undo_push_qmask (gimage);
gimage_mask_load (gimage, gmask);
gimp_image_remove_channel (gimage, gmask);
undo_push_group_end (gimage);
}
gdisp->gimage->qmask_state = FALSE;
......@@ -199,65 +199,64 @@ void
qmask_activate (GtkWidget *widget,
GDisplay *gdisp)
{
GimpImage *gimg;
GimpImage *gimage;
GimpChannel *gmask;
GimpLayer *layer;
GimpRGB color;
if (gdisp)
{
gimg = gdisp->gimage;
if (!gimg)
gimage = gdisp->gimage;
if (! gimage)
return;
if (gdisp->gimage->qmask_state)
return; /* If already set, do nothing */
/* Set the defaults */
color = gimg->qmask_color;
color = gimage->qmask_color;
if ((gmask = gimp_image_get_channel_by_name (gimg, "Qmask")))
if ((gmask = gimp_image_get_channel_by_name (gimage, "Qmask")))
{
gimg->qmask_state = TRUE;
gimage->qmask_state = TRUE;
/* if the user was clever and created his own */
return;
}
undo_push_group_start (gimg, QMASK_UNDO);
undo_push_group_start (gimage, QMASK_UNDO);
if (gimage_mask_is_empty (gimg))
if (gimage_mask_is_empty (gimage))
{
/* if no selection */
if ((layer = gimp_image_floating_sel (gimg)))
if ((layer = gimp_image_floating_sel (gimage)))
{
floating_sel_to_layer (layer);
}
gmask = gimp_channel_new (gimg,
gimg->width,
gimg->height,
gmask = gimp_channel_new (gimage,
gimage->width,
gimage->height,
"Qmask",
&color);
gimp_image_add_channel (gimg, gmask, 0);
gimp_image_add_channel (gimage, gmask, 0);
drawable_fill (GIMP_DRAWABLE (gmask),
gimp_get_user_context (gimg->gimp),
TRANSPARENT_FILL);
gimp_drawable_fill_by_type (GIMP_DRAWABLE (gmask),
gimp_get_user_context (gimage->gimp),
TRANSPARENT_FILL);
}
else
else /* if selection */
{
/* if selection */
gmask = gimp_channel_copy (gimp_image_get_mask (gimg), TRUE);
gimp_image_add_channel (gimg, gmask, 0);
gmask = gimp_channel_copy (gimp_image_get_mask (gimage), TRUE);
gimp_image_add_channel (gimage, gmask, 0);
gimp_channel_set_color (gmask, &color);
gimp_object_set_name (GIMP_OBJECT (gmask), "Qmask");
gimage_mask_none (gimg); /* Clear the selection */
gimage_mask_none (gimage); /* Clear the selection */
}
undo_push_qmask (gimg);
undo_push_group_end (gimg);
undo_push_qmask (gimage);
undo_push_group_end (gimage);
gdisp->gimage->qmask_state = TRUE;
gdisplays_flush ();
......@@ -368,12 +367,7 @@ edit_qmask_query_ok_callback (GtkWidget *widget,
if (gimp_rgba_distance (&color, &channel->color) > 0.0001)
{
channel->color = color;
drawable_update (GIMP_DRAWABLE (channel),
0, 0,
GIMP_DRAWABLE (channel)->width,
GIMP_DRAWABLE (channel)->height);
gimp_channel_set_color (channel, &color);
gdisplays_flush ();
}
......
......@@ -38,7 +38,6 @@
#include "widgets/gimpcolorpanel.h"
#include "app_procs.h"
#include "drawable.h"
#include "floating_sel.h"
#include "gdisplay.h"
#include "qmask.h"
......@@ -51,11 +50,11 @@ typedef struct _EditQmaskOptions EditQmaskOptions;
struct _EditQmaskOptions
{
GtkWidget *query_box;
GtkWidget *name_entry;
GtkWidget *color_panel;
GtkWidget *query_box;
GtkWidget *name_entry;
GtkWidget *color_panel;
GimpImage *gimage;
GimpImage *gimage;
};
......@@ -104,7 +103,7 @@ qmask_removed_callback (GtkObject *qmask,
if (!gdisp->gimage)
return;
gdisp->gimage->qmask_state = FALSE;
qmask_buttons_update (gdisp);
......@@ -120,34 +119,34 @@ qmask_buttons_update (GDisplay *gdisp)
if (gdisp->gimage->qmask_state != GTK_TOGGLE_BUTTON (gdisp->qmaskon)->active)
{
/* Disable toggle from doing anything */
gtk_signal_handler_block_by_func(GTK_OBJECT(gdisp->qmaskoff),
(GtkSignalFunc) qmask_deactivate,
gdisp);
gtk_signal_handler_block_by_func(GTK_OBJECT(gdisp->qmaskon),
(GtkSignalFunc) qmask_activate,
gdisp);
gtk_signal_handler_block_by_func (GTK_OBJECT (gdisp->qmaskoff),
GTK_SIGNAL_FUNC (qmask_deactivate),
gdisp);
gtk_signal_handler_block_by_func (GTK_OBJECT (gdisp->qmaskon),
GTK_SIGNAL_FUNC (qmask_activate),
gdisp);
/* Change the state of the buttons */
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(gdisp->qmaskon),
gdisp->gimage->qmask_state);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (gdisp->qmaskon),
gdisp->gimage->qmask_state);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(gdisp->qmaskoff),
!gdisp->gimage->qmask_state);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (gdisp->qmaskoff),
! gdisp->gimage->qmask_state);
/* Enable toggle again */
gtk_signal_handler_unblock_by_func(GTK_OBJECT(gdisp->qmaskoff),
(GtkSignalFunc) qmask_deactivate,
gdisp);
gtk_signal_handler_unblock_by_func(GTK_OBJECT(gdisp->qmaskon),
(GtkSignalFunc) qmask_activate,
gdisp);
gtk_signal_handler_unblock_by_func (GTK_OBJECT (gdisp->qmaskoff),
GTK_SIGNAL_FUNC (qmask_deactivate),
gdisp);
gtk_signal_handler_unblock_by_func (GTK_OBJECT (gdisp->qmaskon),
GTK_SIGNAL_FUNC (qmask_activate),
gdisp);
}
}
void
qmask_click_handler (GtkWidget *widget,
GdkEventButton *event,
gpointer data)
void
qmask_click_handler (GtkWidget *widget,
GdkEventButton *event,
gpointer data)
{
GDisplay *gdisp;
......@@ -164,28 +163,29 @@ void
qmask_deactivate (GtkWidget *widget,
GDisplay *gdisp)
{
GimpImage *gimg;
GimpImage *gimage;
GimpChannel *gmask;
if (gdisp)
{
gimg = gdisp->gimage;
if (!gimg)
gimage = gdisp->gimage;
if (! gimage)
return;
if (!gdisp->gimage->qmask_state)
return; /* if already set do nothing */
if ( (gmask = gimp_image_get_channel_by_name (gimg, "Qmask")) )
if ( (gmask = gimp_image_get_channel_by_name (gimage, "Qmask")) )
{
undo_push_group_start (gimg, QMASK_UNDO);
undo_push_group_start (gimage, QMASK_UNDO);
/* push the undo here since removing the mask will
call the qmask_removed_callback() which will set
the qmask_state to FALSE */
undo_push_qmask (gimg);
gimage_mask_load (gimg, gmask);
gimp_image_remove_channel (gimg, gmask);
undo_push_group_end (gimg);
undo_push_qmask (gimage);
gimage_mask_load (gimage, gmask);
gimp_image_remove_channel (gimage, gmask);
undo_push_group_end (gimage);
}
gdisp->gimage->qmask_state = FALSE;
......@@ -199,65 +199,64 @@ void
qmask_activate (GtkWidget *widget,
GDisplay *gdisp)
{
GimpImage *gimg;
GimpImage *gimage;
GimpChannel *gmask;
GimpLayer *layer;
GimpRGB color;
if (gdisp)
{
gimg = gdisp->gimage;
if (!gimg)
gimage = gdisp->gimage;
if (! gimage)
return;
if (gdisp->gimage->qmask_state)
return; /* If already set, do nothing */
/* Set the defaults */
color = gimg->qmask_color;
color = gimage->qmask_color;
if ((gmask = gimp_image_get_channel_by_name (gimg, "Qmask")))
if ((gmask = gimp_image_get_channel_by_name (gimage, "Qmask")))
{
gimg->qmask_state = TRUE;
gimage->qmask_state = TRUE;
/* if the user was clever and created his own */
return;
}
undo_push_group_start (gimg, QMASK_UNDO);
undo_push_group_start (gimage, QMASK_UNDO);
if (gimage_mask_is_empty (gimg))
if (gimage_mask_is_empty (gimage))
{
/* if no selection */
if ((layer = gimp_image_floating_sel (gimg)))
if ((layer = gimp_image_floating_sel (gimage)))
{
floating_sel_to_layer (layer);
}
gmask = gimp_channel_new (gimg,
gimg->width,
gimg->height,
gmask = gimp_channel_new (gimage,
gimage->width,
gimage->height,
"Qmask",
&color);
gimp_image_add_channel (gimg, gmask, 0);
gimp_image_add_channel (gimage, gmask, 0);
drawable_fill (GIMP_DRAWABLE (gmask),
gimp_get_user_context (gimg->gimp),
TRANSPARENT_FILL);
gimp_drawable_fill_by_type (GIMP_DRAWABLE (gmask),
gimp_get_user_context (gimage->gimp),
TRANSPARENT_FILL);
}
else
else /* if selection */
{
/* if selection */
gmask = gimp_channel_copy (gimp_image_get_mask (gimg), TRUE);
gimp_image_add_channel (gimg, gmask, 0);
gmask = gimp_channel_copy (gimp_image_get_mask (gimage), TRUE);
gimp_image_add_channel (gimage, gmask, 0);
gimp_channel_set_color (gmask, &color);
gimp_object_set_name (GIMP_OBJECT (gmask), "Qmask");
gimage_mask_none (gimg); /* Clear the selection */
gimage_mask_none (gimage); /* Clear the selection */
}
undo_push_qmask (gimg);
undo_push_group_end (gimg);
undo_push_qmask (gimage);
undo_push_group_end (gimage);
gdisp->gimage->qmask_state = TRUE;
gdisplays_flush ();
......@@ -368,12 +367,7 @@ edit_qmask_query_ok_callback (GtkWidget *widget,
if (gimp_rgba_distance (&color, &channel->color) > 0.0001)
{
channel->color = color;
drawable_update (GIMP_DRAWABLE (channel),
0, 0,
GIMP_DRAWABLE (channel)->width,
GIMP_DRAWABLE (channel)->height);
gimp_channel_set_color (channel, &color);
gdisplays_flush ();
}
......
......@@ -39,7 +39,6 @@
#include "tool_options.h"
#include "app_procs.h"
#include "drawable.h"
#include "gdisplay.h"
#include "image_map.h"
......
......@@ -44,7 +44,6 @@
#include "tool_options.h"
#include "app_procs.h"
#include "drawable.h"
#include "gdisplay.h"
#include "image_map.h"
......
......@@ -39,7 +39,6 @@
#include "tool_options.h"
#include "app_procs.h"
#include "drawable.h"
#include "gdisplay.h"
#include "image_map.h"
......
......@@ -41,7 +41,6 @@
#include "tool_options.h"
#include "app_procs.h"
#include "drawable.h"
#include "gdisplay.h"
#include "image_map.h"
......
......@@ -44,7 +44,6 @@
#include "gimplist.h"
#include "app_procs.h"
#include "drawable.h"
#include "floating_sel.h"
#include "undo.h"
......@@ -315,9 +314,9 @@ gimp_edit_clear (GimpImage *gimage,
ERASE_MODE, NULL, x1, y1);
/* update the image */
drawable_update (drawable,
x1, y1,
(x2 - x1), (y2 - y1));
gimp_drawable_update (drawable,
x1, y1,
(x2 - x1), (y2 - y1));
/* free the temporary tiles */
tile_manager_destroy (buf_tiles);
......@@ -391,9 +390,9 @@ gimp_edit_fill (GimpImage *gimage,
NORMAL_MODE, NULL, x1, y1);
/* update the image */
drawable_update (drawable,
x1, y1,
(x2 - x1), (y2 - y1));
gimp_drawable_update (drawable,
x1, y1,
(x2 - x1), (y2 - y1));
/* free the temporary tiles */
tile_manager_destroy (buf_tiles);
......
......@@ -59,7 +59,6 @@
#include "gimpfliptool.h"
#include "app_procs.h"
#include "drawable.h"
#include "floating_sel.h"
#include "undo.h"
#include "path_transform.h"
......@@ -1665,10 +1664,10 @@ gimp_transform_tool_paste (GimpImage *gimage,
if (floating_layer)
floating_sel_rigor (floating_layer, TRUE);
drawable_update (drawable,
0, 0,
gimp_drawable_width (drawable),
gimp_drawable_height (drawable));
gimp_drawable_update (drawable,
0, 0,
gimp_drawable_width (drawable),
gimp_drawable_height (drawable));
/* if we were operating on the floating selection, then it's boundary
* and previews need invalidating
......
......@@ -39,11 +39,11 @@
#include "paint-funcs/paint-funcs.h"