Gimp/app/actions
Michael Natterer 1cc434fa6e Fixed memory management of layers and channels which were created using
2003-12-09  Michael Natterer  <mitch@gimp.org>

	Fixed memory management of layers and channels which were created
	using the PDB:

	* app/core/gimpitem.[ch]: added "gboolean floating" flag to
	GimpItem. Items are created with floating == TRUE. Added
	gimp_item_sink() which resets the floating flag and unrefs the
	item if it was TRUE.  Added gimp_item_is_floating() accessor.

	* app/core/gimpimage.c (gimp_image_add_layer,channel,vectors):
	g_object_ref()/gimp_item_sink() added items to take ownership of
	them.

	* app/core/gimplayer.c (gimp_layer_add_mask):
	g_object_ref()/gimp_item_sink() the mask.

	* app/gui/layers-commands.c
	* app/xcf/xcf-load.c: don't unref layer masks after adding them to
	the layer.

	* tools/pdbgen/pdb/drawable.pdb (drawable_delete):
	gimp_item_sink() the drawable if it's floating and fail if it's
	not. Fixes bug #128881.

	* tools/pdbgen/pdb/layer.pdb (layer_create_mask): fixed docs.

	* app/pdb/drawable_cmds.c
	* app/pdb/layer_cmds.c
	* libgimp/gimplayer_pdb.c: regenerated.
2003-12-09 18:59:35 +00:00
..
buffers-commands.c Makefile.am removed this header file. 2003-03-25 16:38:19 +00:00
buffers-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
channels-commands.c To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
channels-commands.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
colormap-commands.c Cleaned up all places which pick colors to work consistently: the concept 2003-09-26 13:33:54 +00:00
colormap-commands.h Fix for bug #122695: 2003-09-19 11:40:12 +00:00
colormap-editor-commands.c Cleaned up all places which pick colors to work consistently: the concept 2003-09-26 13:33:54 +00:00
colormap-editor-commands.h Fix for bug #122695: 2003-09-19 11:40:12 +00:00
data-commands.c Makefile.am removed this header file. 2003-03-25 16:38:19 +00:00
data-commands.h the active_tool may change in the middle of gdisplay_canvas_events(), so 2001-07-08 21:44:52 +00:00
debug-commands.c changed GimpObject::get_memsize() to return a second value named 2003-08-25 10:49:33 +00:00
debug-commands.h Move away from creating all item_factories statically in menus_init() but 2003-01-10 17:55:53 +00:00
dialogs-commands.c support '|'-separated lists of dialog identifiers and raise any of them if 2003-11-18 12:28:15 +00:00
dialogs-commands.h removed the "Move to Screen" hack. 2003-11-10 00:24:33 +00:00
documents-commands.c added gimp_list_uniquefy_name() utility function. 2003-04-06 11:21:56 +00:00
documents-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
drawable-commands.c libgimpwidgets/gimpquerybox.c configure the labels in the message dialog 2003-11-14 15:33:40 +00:00
drawable-commands.h added new enum GimpRotationType. 2003-05-20 10:36:29 +00:00
edit-commands.c support '|'-separated lists of dialog identifiers and raise any of them if 2003-11-18 12:28:15 +00:00
edit-commands.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
error-console-commands.c Cleaned up and improved the message system: 2003-06-13 14:37:00 +00:00
error-console-commands.h Cleaned up and improved the message system: 2003-06-13 14:37:00 +00:00
file-commands.c libgimpwidgets/gimpquerybox.c configure the labels in the message dialog 2003-11-14 15:33:40 +00:00
file-commands.h app/gui/file-commands.[ch] app/gui/file-dialog-utils.[ch] 2003-11-09 22:05:37 +00:00
fonts-commands.c added gimp_container_freeze() / _thaw() around font list reloading. 2003-10-18 16:23:15 +00:00
fonts-commands.h added gimp_container_freeze() / _thaw() around font list reloading. 2003-10-18 16:23:15 +00:00
gradient-editor-commands.c removed color_notebook_new() and renamed color_notebook_viewable_new() to 2003-11-10 17:55:44 +00:00
gradient-editor-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
gradients-commands.c app/gui/file-dialog-utils.[ch] app/gui/file-open-dialog.c 2003-11-17 18:29:59 +00:00
gradients-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
help-commands.c stop using the deprecated GtkTipsQuery widget for context help and 2003-10-27 10:56:06 +00:00
help-commands.h app/gui/Makefile.am removed... 2002-03-20 20:08:19 +00:00
image-commands.c return a more exact result. 2003-12-09 12:56:22 +00:00
image-commands.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
images-commands.c app/gui/dialogs-constructors.c app/gui/images-commands.[ch] implemented 2003-11-16 12:07:03 +00:00
images-commands.h app/gui/dialogs-constructors.c app/gui/images-commands.[ch] implemented 2003-11-16 12:07:03 +00:00
layers-commands.c Fixed memory management of layers and channels which were created using 2003-12-09 18:59:35 +00:00
layers-commands.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
palette-editor-commands.c Cleaned up all places which pick colors to work consistently: the concept 2003-09-26 13:33:54 +00:00
palette-editor-commands.h Cleaned up all places which pick colors to work consistently: the concept 2003-09-26 13:33:54 +00:00
palettes-commands.c libgimpwidgets/gimpquerybox.c configure the labels in the message dialog 2003-11-14 15:33:40 +00:00
palettes-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
plug-in-commands.c pass the gdisp_ID to plug_in_run() again. Broke this with my last 2003-06-20 14:05:17 +00:00
plug-in-commands.h badly chopped into the new files below. Pass around much more "PlugIn" and 2002-03-20 17:46:13 +00:00
qmask-commands.c To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
qmask-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
quick-mask-commands.c To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
quick-mask-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
select-commands.c libgimpwidgets/gimpquerybox.c configure the labels in the message dialog 2003-11-14 15:33:40 +00:00
select-commands.h app/gui/menus.c added a menu entry that toggles the QuickMask state and 2002-08-27 13:29:47 +00:00
templates-commands.c To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
templates-commands.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
tool-options-commands.c To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
tool-options-commands.h added a "Rename Saved Options" submenu and factored on-the-fly submenu 2003-09-30 18:33:46 +00:00
tools-commands.c don't call tool_manager_initialize_active() with a NULL GimpDisplay. Fixes 2003-11-10 11:33:35 +00:00
tools-commands.h app/display/gimpdisplayshell-callbacks.[ch] override 2003-02-25 19:12:11 +00:00
vectors-commands.c Fixed some selection editor problems (bug #127644): 2003-11-22 13:38:11 +00:00
vectors-commands.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
view-commands.c forgot to declare gimp_color_display_stack_clone(). 2003-11-21 22:52:36 +00:00
view-commands.h removed the "Move to Screen" hack. 2003-11-10 00:24:33 +00:00