Gimp/app/gui
Michael Natterer 33bba65728 Make sure the selection (gimpimage-mask.c) functionality is really built
2002-08-20  Michael Natterer  <mitch@gimp.org>

	Make sure the selection (gimpimage-mask.c) functionality is really
	built *on top* of the GimpChannel functionality:

	* app/undo.[ch]: renamed undo_push_image_mask() to
	undo_push_mask() and generalized it's API to take a GimpChannel
	param so undos can be pushed for channels which are not the
	image's selection. Simplified the API and added code which copies
	the region of interest instead of leaving this to callers.

	* app/undo_types.h: s/IMAGE_MASK_UNDO/MASK_UNDO/

	* app/undo_history.c: changed accordingly.

	* app/core/gimpchannel.[ch]: don't #include "gimpimage-mask.h".
	Changed gimp_channel_push_undo() to really push a channel undo,
	not a selection undo. Added "gboolean push_undo" params to all
	functions which are called from gimpimage-mask.c. Various cleanups
	and optimizations. Added /*< proxy-foo >*/ stuff to the header so
	we export just the struct itself to libgimpproxy. Added accessors
	gimp_channel_[get|set]_show_masked().

	* app/core/gimpimage-mask.[ch]: renamed gimp_image_mask_undo() to
	gimp_image_mask_push_undo(). Call it before calling GimpChannel
	functions which modify the mask, also call all GimpChannel
	functions with push_undo = FALSE. Emit gimp_image_mask_changed()
	after each operation instead of calling it in
	gimp_image_mask_invalidate(). Removed gimp_image_mask_none()
	because it is the same as gimp_image_mask_clear().
	General cleanup.

	* app/core/gimpimage-mask-select.c
	* app/core/gimpimage-qmask.c: changed accordingly.

	* app/core/gimpedit.c: call gimp_image_mask_clear(), not
	gimp_channel_clear (gimp_image_get_mask()).

	* app/core/gimpimage-crop.c
	* app/core/gimpimage-resize.c
	* app/core/gimpimage-scale.c: call gimp_image_mask_changed()

	* app/gui/channels-commands.c
	* app/gui/select-commands.c
	* app/tools/gimptexttool.c
	* tools/pdbgen/pdb/channel.pdb
	* tools/pdbgen/pdb/selection.pdb: follow GimpChannel and
	gimp_image_mask* API changes.

	* app/pdb/channel_cmds.c
	* app/pdb/selection_cmds.c
	* libgimpproxy/gimpchannel.h: regenerated.

	Unrelated:

	* app/core/gimpimage.c: call gimp_drawable_push_undo() instead of
	undo_push_image() directly.
2002-08-20 10:22:23 +00:00
..
.cvsignore configure.in app/Makefile.am new directory which will contain all gui code 2001-04-14 15:21:45 +00:00
about-dialog.c devel-docs/Makefile.am new file documenting the core's include policy. 2002-05-03 12:45:22 +00:00
about-dialog.h app/devices.[ch] app/gui/about-dialog.[ch] app/gui/preferences-dialog.[ch] 2001-04-18 16:39:34 +00:00
authors.h added Rebecca Walter (bex). 2001-11-26 13:17:18 +00:00
brush-select.c devel-docs/Makefile.am new file documenting the core's include policy. 2002-05-03 12:45:22 +00:00
brush-select.h renamed parameters to be consistent with the other foo-select.* files. 2002-03-13 15:29:59 +00:00
brushes-commands.c added a boolean "internal" which indicates that the data object is an 2002-06-12 13:48:47 +00:00
brushes-commands.h app/core/Makefile.am new files: the QMask stuff stripped from GUI code. 2001-11-30 14:41:56 +00:00
buffers-commands.c derive from GtkDrawingArea instead of deprecated GtkPreview. 2002-01-30 17:39:56 +00:00
buffers-commands.h app/core/Makefile.am new files: the QMask stuff stripped from GUI code. 2001-11-30 14:41:56 +00:00
channels-commands.c Make sure the selection (gimpimage-mask.c) functionality is really built 2002-08-20 10:22:23 +00:00
channels-commands.h changed the GimpNewDrawableFunc typedef to take an additional 2001-12-17 13:41:23 +00:00
color-notebook.c g_strdup() the stock_id passed to gimp_tool_info_new() because the 2002-03-14 17:07:02 +00:00
color-notebook.h Made a GimpContainer out of the palette list: 2001-02-11 16:14:25 +00:00
color-select.c devel-docs/Makefile.am new file documenting the core's include policy. 2002-05-03 12:45:22 +00:00
color-select.h app/Makefile.am app/channel_pvt.h app/drawable_pvt.h app/gdisplayF.h 2000-12-29 15:22:01 +00:00
colormap-editor-commands.c Started to get rid of the gdisplays_foo() functions in 2002-05-08 17:48:24 +00:00
colormap-editor-commands.h namespaceified and cleaned up a lot. Removed the menu code. 2002-03-17 13:52:25 +00:00
convert-dialog.c Started to get rid of the gdisplays_foo() functions in 2002-05-08 17:48:24 +00:00
convert-dialog.h app/Makefile.am removed. new files: the convert functionality without GUI 2001-04-18 17:57:10 +00:00
data-commands.c devel-docs/Makefile.am new file documenting the core's include policy. 2002-05-03 12:45:22 +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
device-status-dialog.c devel-docs/Makefile.am new file documenting the core's include policy. 2002-05-03 12:45:22 +00:00
device-status-dialog.h app/Makefile.am removed, chopped... 2001-12-07 17:39:51 +00:00
dialogs-commands.c added a read-only property for the display's image, so it can be retreived 2002-05-10 13:09:19 +00:00
dialogs-commands.h g_strdup() the stock_id passed to gimp_tool_info_new() because the 2002-03-14 17:07:02 +00:00
dialogs-constructors.c set the view's display to NULL in "destroy". Fixes crash on closing the 2002-05-12 23:20:21 +00:00
dialogs-constructors.h app/Makefile.am removed. 2002-05-07 16:23:14 +00:00
dialogs.c app/Makefile.am removed. 2002-05-07 16:23:14 +00:00
dialogs.h g_strdup() the stock_id passed to gimp_tool_info_new() because the 2002-03-14 17:07:02 +00:00
documents-commands.c added "gchar *name_changed_signal" to GimpViewableClass which defaults to 2002-04-28 23:10:42 +00:00
documents-commands.h added "gchar *name_changed_signal" to GimpViewableClass which defaults to 2002-04-28 23:10:42 +00:00
drawable-commands.c Started to get rid of the gdisplays_foo() functions in 2002-05-08 17:48:24 +00:00
drawable-commands.h make absolute paths out of relative ones passed on the commandline so the 2002-02-26 16:30:14 +00:00
edit-commands.c Started to get rid of the gdisplays_foo() functions in 2002-05-08 17:48:24 +00:00
edit-commands.h app/Makefile.am removed. 2001-06-26 12:09:43 +00:00
error-console-dialog.c forgot a "return". 2001-12-01 22:59:48 +00:00
error-console-dialog.h app/main.c moved "message_handler" from here... 2001-12-01 21:02:34 +00:00
file-commands.c Started to get rid of the gdisplays_foo() functions in 2002-05-08 17:48:24 +00:00
file-commands.h added a (commented out) function to open files (to get rid of including 2001-07-09 17:58:56 +00:00
file-dialog-utils.c save the number of layers in the thumbnail and show it in the description. 2002-04-18 01:18:24 +00:00
file-dialog-utils.h save the number of layers in the thumbnail and show it in the description. 2002-04-18 01:18:24 +00:00
file-new-dialog.c added _with_range variants for all enum menu widgets that limit the range 2002-05-13 17:15:17 +00:00
file-new-dialog.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
file-open-dialog.c added a return value to indicate success of 2002-05-15 11:05:32 +00:00
file-open-dialog.h badly chopped into the new files below. Pass around much more "PlugIn" and 2002-03-20 17:46:13 +00:00
file-save-dialog.c save the number of layers in the thumbnail and show it in the description. 2002-04-18 01:18:24 +00:00
file-save-dialog.h badly chopped into the new files below. Pass around much more "PlugIn" and 2002-03-20 17:46:13 +00:00
gradient-editor-commands.c changed gimp_channel_get_color() to not return the color but take a second 2002-03-08 16:34:42 +00:00
gradient-editor-commands.h app/core/Makefile.am new files: the QMask stuff stripped from GUI code. 2001-11-30 14:41:56 +00:00
gradient-select.c app/gimprc.[ch] app/gui/preferences-dialog.c 2002-03-12 21:02:10 +00:00
gradient-select.h app/gimprc.[ch] app/gui/preferences-dialog.c 2002-03-12 21:02:10 +00:00
gradients-commands.c added a boolean "internal" which indicates that the data object is an 2002-06-12 13:48:47 +00:00
gradients-commands.h app/core/Makefile.am new files: the QMask stuff stripped from GUI code. 2001-11-30 14:41:56 +00:00
gui-types.h app/Makefile.am removed... 2002-05-05 19:17:41 +00:00
gui.c Separated tool_options creation from tool registration so we don't 2002-06-17 10:34:28 +00:00
gui.h Sven Naumann <sven@gimp.org> 2002-02-28 13:47:03 +00:00
help-commands.c devel-docs/Makefile.am new file documenting the core's include policy. 2002-05-03 12:45:22 +00:00
help-commands.h app/gui/Makefile.am removed... 2002-03-20 20:08:19 +00:00
image-commands.c removed gdisp->scale, gdisp->dot_for_dot, the scaling marcos and the 2002-06-26 22:16:59 +00:00
image-commands.h renamed shell->cd_list to shell->filters and shell->cd_ui to 2002-03-15 15:09:58 +00:00
images-commands.c removed unused commented out prototype. 2002-05-08 12:39:01 +00:00
images-commands.h removed unused commented out prototype. 2002-05-08 12:39:01 +00:00
info-dialog.c app/gimpprogress.c app/nav_window.c app/ops_buttons.c app/undo_history.c 2001-12-29 13:26:29 +00:00
info-dialog.h Michael Natterer <mitch@gimp.org> 2001-12-03 13:44:59 +00:00
info-window.c removed gdisp->scale, gdisp->dot_for_dot, the scaling marcos and the 2002-06-26 22:16:59 +00:00
info-window.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
layers-commands.c removed gdisp->scale, gdisp->dot_for_dot, the scaling marcos and the 2002-06-26 22:16:59 +00:00
layers-commands.h reordered some lines, no logic changed. 2002-04-12 12:29:51 +00:00
Makefile.am app/base/Makefile.am automake-1.6 seems to use yet another variable to 2002-06-07 23:00:46 +00:00
makefile.msc add appconfig.lib. Statically link libgimptool/gimptool.lib. 2002-05-10 23:30:09 +00:00
menus.c register the new "invert" and "layer to imagesize" PNGs as stock icons. 2002-06-16 15:22:21 +00:00
menus.h app/widgets/Makefile.am put the whole generic stuff from gui/menus.[ch] 2001-11-27 19:27:55 +00:00
module-browser.c add a shadow to the scrolled window, so it looks nicer 2001-12-31 01:59:46 +00:00
module-browser.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
offset-dialog.c Started to get rid of the gdisplays_foo() functions in 2002-05-08 17:48:24 +00:00
offset-dialog.h use the passed Gimp pointer instead of using "the_gimp". 2001-12-03 17:59:48 +00:00
palette-editor-commands.c g_strdup() the stock_id passed to gimp_tool_info_new() because the 2002-03-14 17:07:02 +00:00
palette-editor-commands.h changed gimp_channel_get_color() to not return the color but take a second 2002-03-08 16:34:42 +00:00
palette-import-dialog.c added utility functions file_utils_uri_to_utf8_basename() and 2002-04-14 17:28:58 +00:00
palette-import-dialog.h added -DGDK_PIXBUF_DISABLE_DEPRECATED to CPPFLAGS. 2001-12-17 23:41:01 +00:00
palette-select.c app/gimprc.[ch] app/gui/preferences-dialog.c 2002-03-12 21:02:10 +00:00
palette-select.h app/gimprc.[ch] app/gui/preferences-dialog.c 2002-03-12 21:02:10 +00:00
palettes-commands.c added a boolean "internal" which indicates that the data object is an 2002-06-12 13:48:47 +00:00
palettes-commands.h app/core/Makefile.am new files: the QMask stuff stripped from GUI code. 2001-11-30 14:41:56 +00:00
paths-dialog.c app/undo.c app/config/gimpconfig-deserialize.c app/core/gimpbrushpipe.c 2002-06-09 12:53:42 +00:00
paths-dialog.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
pattern-select.c app/gimprc.[ch] app/gui/preferences-dialog.c 2002-03-12 21:02:10 +00:00
pattern-select.h app/gimprc.[ch] app/gui/preferences-dialog.c 2002-03-12 21:02:10 +00:00
patterns-commands.c added a boolean "internal" which indicates that the data object is an 2002-06-12 13:48:47 +00:00
patterns-commands.h app/core/Makefile.am new files: the QMask stuff stripped from GUI code. 2001-11-30 14:41:56 +00:00
plug-in-commands.c badly chopped into the new files below. Pass around much more "PlugIn" and 2002-03-20 17:46:13 +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
plug-in-menus.c add appconfig.lib. Statically link libgimptool/gimptool.lib. 2002-05-10 23:30:09 +00:00
plug-in-menus.h badly chopped into the new files below. Pass around much more "PlugIn" and 2002-03-20 17:46:13 +00:00
preferences-dialog.c renamed gimp_mem_size_entry_new() to gimp_memsize_entry_new() for 2002-05-29 09:20:56 +00:00
preferences-dialog.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
qmask-commands.c Started to get rid of the gdisplays_foo() functions in 2002-05-08 17:48:24 +00:00
qmask-commands.h app/core/Makefile.am new files: the QMask stuff stripped from GUI code. 2001-11-30 14:41:56 +00:00
resize-dialog.c devel-docs/Makefile.am new file documenting the core's include policy. 2002-05-03 12:45:22 +00:00
resize-dialog.h Made the interpolation type configurable in the scale and transform 2002-02-12 02:31:45 +00:00
resolution-calibrate-dialog.c take an optional pixbuf as eye-candy. 2002-02-28 15:11:56 +00:00
resolution-calibrate-dialog.h take an optional pixbuf as eye-candy. 2002-02-28 15:11:56 +00:00
select-commands.c Make sure the selection (gimpimage-mask.c) functionality is really built 2002-08-20 10:22:23 +00:00
select-commands.h app/Makefile.am removed. 2001-06-26 12:09:43 +00:00
session.c parse sessionrc using GScanner. 2002-06-02 19:48:01 +00:00
session.h pass a "Gimp" to gui_libs_init(), initialize the GUI before initializing 2001-10-23 16:23:32 +00:00
splash.c don't allow to close the splash screen. Fixes bug #81962. 2002-05-16 14:13:20 +00:00
splash.h bumped version number to 1.3.1. Require Glib/GTK+-1.3.11 and Pango-0.22. 2001-11-22 23:46:13 +00:00
test-commands.c app/config/test-config.c use g_error_free() so we crash if our GimpConfig 2002-05-28 18:49:45 +00:00
test-commands.h override GObjectClass->constructor() and do the setup stuff there, not in 2002-05-28 16:41:56 +00:00
tips-dialog.c devel-docs/Makefile.am new file documenting the core's include policy. 2002-05-03 12:45:22 +00:00
tips-dialog.h app/devices.[ch] app/gui/about-dialog.[ch] app/gui/preferences-dialog.[ch] 2001-04-18 16:39:34 +00:00
tips-parser.c app/gui/tips-dialog.c added support for simple text markup. 2002-02-26 16:55:09 +00:00
tips-parser.h updated 2002-02-25 18:36:03 +00:00
tool-options-dialog.c devel-docs/Makefile.am new file documenting the core's include policy. 2002-05-03 12:45:22 +00:00
tool-options-dialog.h app/gui/dialogs-constructors.[ch] app/gui/dialogs.c made the tool options 2002-03-10 15:05:58 +00:00
tools-commands.c massive tool plugin changes 2002-03-29 03:50:29 +00:00
tools-commands.h app/Makefile.am removed, chopped... 2001-12-07 17:39:51 +00:00
user-install-dialog.c renamed gimp_mem_size_entry_new() to gimp_memsize_entry_new() for 2002-05-29 09:20:56 +00:00
user-install-dialog.h removed the gimp_busy boolean, check whether user_installation is needed 2001-07-10 19:16:16 +00:00
vectors-commands.c Started to get rid of the gdisplays_foo() functions in 2002-05-08 17:48:24 +00:00
vectors-commands.h added a "item_activate_func" to the struct and the constructor so we can 2002-02-26 14:40:30 +00:00
view-commands.c removed gdisp->scale, gdisp->dot_for_dot, the scaling marcos and the 2002-06-26 22:16:59 +00:00
view-commands.h pass an additional "Gimp" pointer to 2002-03-20 15:32:35 +00:00