1. 26 Jul, 2004 1 commit
    • Michael Natterer's avatar
      added "gboolean writable" to the GimpDataFactoryLoaderEntry struct. Return · 638f2b3a
      Michael Natterer authored
      2004-07-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdatafactory.h: added "gboolean writable" to the
      	GimpDataFactoryLoaderEntry struct. Return a GList* instead of
      	GimpData* from GimpDataLoadFunc so it's possible to load more than
      	one data object from one file.
      
      	* app/core/gimpdatafactory.c (gimp_data_factory_load_data):
      	changed accordingly: add all items of the returned lists to the
      	data factory. Make the data object writable only if it's in the
      	writable path *and* its loader entry says it's a writable format
      	*and* the returned list contains exactly one element.
      
      	* app/core/gimp.c (gimp_real_initialize): declare all loader
      	entries as writable where we have code to read and write exactly
      	one object per file; all others are not writable.
      
      	* app/core/gimpbrush.[ch]
      	* app/core/gimpbrushgenerated.[ch]
      	* app/core/gimpbrushpipe.[ch]
      	* app/core/gimpgradient-load.[ch]
      	* app/core/gimppalette.[ch]
      	* app/core/gimppattern.[ch] (all load functions): return a list
      	containing the loaded object instead of the object itself.
      638f2b3a
  2. 02 Dec, 2002 1 commit
    • Michael Natterer's avatar
      use GError for reporting load/save errors. Added gimp_data_error_quark() · 4ccd0f0a
      Michael Natterer authored
      2002-12-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdata.[ch]: use GError for reporting load/save
      	errors. Added gimp_data_error_quark() and a GimpDataError enum.
      	Made simple virtual functions out of save(), get_extension()
      	and duplicate() because they don't need to be signals.
      
      	* app/core/gimpbrush.[ch]
      	* app/core/gimpbrushgenerated.[ch]
      	* app/core/gimpbrushpipe.[ch]
      	* app/core/gimpgradient.[ch]
      	* app/core/gimppalette.[ch]
      	* app/core/gimppattern.[ch]: changed accordingly. Set data->dirty
      	to FALSE in each _load() function.
      
      	* app/core/gimpdatafactory.[ch]: report GError messages here.
      	Changed the ugly factory->path pointer location hack to
      	factory->path_property_name and get the path from
      	factory->gimp->config. Added gimp_data_factory_data_duplicate()
      	implementation which was already declared in the header.
      
      	* app/core/gimp.c: pass the path property name to
      	gimp_data_factory_new().
      
      	* app/widgets/gimpdatafactoryview.c: removed the duplicate
      	implementation and call gimp_data_factory_data_duplicate().
      
      	* app/core/gimpgradient.[ch]: added gimp_gradient_save_as_pov().
      
      	* app/gui/gradients-commands.c: removed save_as_pov implementation
      	and call gimp_gradient_save_as_pov().
      4ccd0f0a
  3. 30 Nov, 2002 1 commit
    • Michael Natterer's avatar
      removed the global "base_config" variable. · 5c86e639
      Michael Natterer authored
      2002-11-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/base-types.h: removed the global "base_config" variable.
      
      	* app/base/base.[ch]: added "gboolean use_mmx" to base_init().
      	Don't #include "appenv.h". Pass around more parameters to reduce
      	the usage of the global "paint_options" pointer.
      
      	* app/app_procs.c: pass "use_mmx" to base_init().
      
      	* app/base/temp-buf.c: pass "temp_path" around internally. Declare
      	"base_config" extern and added a #warning.
      
      	* app/core/gimpdata.[ch]
      	* app/core/gimpbrush.[ch]
      	* app/core/gimpbrushgenerated.[ch]
      	* app/core/gimpbrushpipe.[ch]
      	* app/core/gimpgradient.[ch]
      	* app/core/gimppalette.[ch]
      	* app/core/gimppattern.[ch]: added "gboolean stingy_memory_use"
      	parameters to all _new(), _load() and _duplicate() functions.
      
      	* app/core/gimpmarshal.list: GimpData::duplicate needs an
      	OBJECT__BOOLEAN marshaller now.
      
      	* app/core/gimpdatafactory.[ch]: added a "Gimp" pointer so the
      	factory can find the config. Pass base_config->stingy_memory_use
      	to the GimpData functions changed above.
      
      	* app/core/gimp-gradients.c
      	* app/core/gimp.c
      	* app/core/gimppalette-import.c
      	* app/gui/palettes-commands.c
      	* app/widgets/gimpdatafactoryview.c: changed accordingly.
      
      	* app/core/gimpcontext.c: get "stingy_memory_use" from
      	context->gimp->config.
      5c86e639
  4. 30 Oct, 2002 1 commit
    • Michael Natterer's avatar
      cosmetic cleanup. · b705a3ab
      Michael Natterer authored
      2002-10-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpbrush.[ch]: cosmetic cleanup.
      b705a3ab
  5. 01 Dec, 2001 1 commit
    • Michael Natterer's avatar
      forgot a "return". · 6d0e5c34
      Michael Natterer authored
      2001-12-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/errors.c: forgot a "return".
      
      	* app/gui/error-console-dialog.c: the menu item signals were
      	connected "swapped", which is wrong.
      
      	* app/tools/gimperasertool.c: added a cursor_update_func(), update
      	the "toggled" state there and chain up. Fixes wrong cursor
      	updating.
      
      	Made brush_pipe slection work again, removed the #warnings:
      
      	* app/core/gimpbrush.[ch]
      	* app/core/gimpbrushpipe.c: changed brush_class->select_brush()
      	and brush_class->want_null_motion() to be proper virtual
      	functions. Pass last_coords and cur_coords to them.
      
      	* app/tools/gimppainttool.c: call the functions again.
      6d0e5c34
  6. 22 Nov, 2001 1 commit
    • Sven Neumann's avatar
      bumped version number to 1.3.1. Require Glib/GTK+-1.3.11 and Pango-0.22. · 757017a8
      Sven Neumann authored
      2001-11-23  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: bumped version number to 1.3.1.
      	Require Glib/GTK+-1.3.11 and Pango-0.22. Removed GDK_DISABLE_COMPAT_H
      	and GTK_DISABLE_COMPAT_H from our default CFLAGS since they don't
      	exist any longer.
      
      	* RELEASE-TO-CVS.patch: removed since the glib/gtk+ API is supposed to
      	be frozen now.
      
      	* HACKING: removed reference to RELEASE-TO-CVS.patch
      
      	* app/gui/menus.c
      	* app/tools/gimptexttool.c: applied RELEASE-TO-CVS.patch to conform
      	to the new GTK+/Pango API.
      
      	* app/core/Makefile.am: generate marshallers with gimp_marshal prefix.
      
      	* app/core/gimpmarshal.list: added all marshallers we use.
      
      	* app/core/gimpmarshal.[ch]: regenerated.
      
      	* app/[lots of .c files]: use gimp_marshal_* for all marshallers.
      
      	* data/images/
      	* app/app_procs.c
      	* app/gui/splash.c:
      
      	* libgimpbase/Makefile.am
      	* libgimpbase/gimpbase.h
      	* libgimpbase/gimputils.[ch]: removed since they are no longer needed.
      
      	* app/gimprc.c
      	* plug-ins/common/ps.c
      	* plug-ins/gdyntext/gdyntext.c
      	* plug-ins/gdyntext/gdyntextcompat.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gflare/gflare.c
      	* plug-ins/script-fu/script-fu-scripts.c: use glib functions instead
      	of gimp_strescape() and gimpstrcompress().
      
      	* cleaned up all header files: use G_BEGIN_DECLS/G_END_DECLS, declared
      	all _get_type function as G_GNUC_CONST.
      
      	* tools/pdbgen/enumcode.pl
      	* tools/pdbgen/lib.pl: make them generate header files using
      	G_BEGIN_DECLS/G_END_DECLS.
      
      	* pixmaps/Makefile.am
      	* pixmaps/wilber3.xpm: removed ...
      	* data/images/tips_wilber.png: ... and added here as PNG
      
      	* app/gui/tips-dialog.c: load the Wilber on demand using GdkPixbuf.
      
      	* data/images/gimp_splash.ppm: removed ...
      	* data/images/gimp_splash.png: ... and added as PNG
      
      	* app/app_procs.c
      	* app/gui/splash.[ch]: load the splash image using GdkPixbuf.
      
      	* app/gui/about-dialog.c: sink the GtkPreview.
      757017a8
  7. 14 Aug, 2001 1 commit
    • Michael Natterer's avatar
      an evil temp_hack which lets GimpContext managing the active display · e2daae31
      Michael Natterer authored
      2001-08-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/gdisplay.h: an evil temp_hack which lets GimpContext managing
      	the active display withoug including "gdisplay.h". Will go away as
      	soon ad context properties are registered dynamically.
      
      	* app/module_db.c: cleaned up the object code in preparation of
      	moving it to core/.
      
      	* app/path.c: connect to GimpImage's
      
      	* app/core/gimpobject.[ch]: derive it from GObject, not from
      	GtkObject any more (yeah :-)
      
      	* app/core/*.c: #include <glib-object.h> instead of <gtk/gtk.h>,
      	removed some remaining GtkObject-isms.
      
      	(left in a few #include <gtk/gtk.h> where bigger changes are needed
      	to get rid of the UI dependency).
      
      	* app/core/core-types.h: #include <gdk-pixbuf/gdk-pixbuf.h> here
      	temporarily.
      
      	* app/core/gimp.c (gimp_create_display): unref the image after
      	creating it's first display.
      
      	* app/core/gimpbrush.[ch]: disabled the parts of the code which
      	depend on GimpPaintTool.
      
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c: changed accordingly.
      
      	* app/core/gimpcontext.[ch]: evil hack (see above) to manage the
      	active display without including "gdisplay.h"
      
      	* app/core/gimpimage-mask.[ch]: pass a context to
      	gimage_mask_stroke() and get the current tool's PDB string from
      	there.
      
      	* app/core/gimpedit.c: changed accordingly.
      
      	* app/core/gimpimage.c: use gimp_image_update() instead of
      	gdisplays_update_full().
      
      	* app/gui/color-area.c
      	* app/gui/colormap-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/edit-commands.c
      	* app/gui/image-commands.c
      	* app/gui/toolbox.c: changed accordingly (don't use Gtk methods on
      	GObjects).
      
      	* app/gui/menus.c: fix some const warnings by explicit casting.
      
      	* app/tools/*.[ch]: ported all tools to GObject, some minor
      	cleanup while i was on it.
      
      	* app/widgets/gimpdialogfactory.[ch]: ported to GObject.
      
      	* app/widgets/gimplayerlistview.h: added FOO_GET_CLASS() macro.
      
      	* tools/pdbgen/app.pl: added a "widgets_eek" hack like "tools_eek"
      	which inserts #include "widgets/widgets-types.h" before ordinary
      	includes.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/edit_cmds.c: changed according to the stuff above.
      e2daae31
  8. 24 Jul, 2001 1 commit
    • Michael Natterer's avatar
      Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning) · 06b16890
      Michael Natterer authored
      2001-07-24  Michael Natterer  <mitch@gimp.org>
      
      	Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning)
      
      	* configure.in: require glib/gtk+ >= 1.3.7, commented out the
      	gtkxmhtml stuff.
      
      	From now on, you will need glib, pango, atk and gtk+ HEAD from CVS
      	to hack or use GIMP HEAD.
      
      	Beware, it crashes randomly :)
      
      	* app/core/Makefile.am
      	* app/core/gimpmarshal.list: new file plus rules to generate
      	gimpmarshal.[ch] from it.
      
      	* app/core/*
      	* app/tools/*
      	* app/widgets/*
      	* libgimpwidgets/*: started to use the glib object system. All
      	core/ objects are still gtk objects however. All signals are
      	created using g_signal_new(). There are many gtk+ artefacts left.
      	Finally, we will _not_ use the gtk_signal_foo() wrappers and
      	friends any more.
      
      	* app/colormaps.c
      	* app/devices.[ch]
      	* app/disp_callbacks.c
      	* app/errorconsole.c
      	* app/file-save.[ch]
      	* app/interface.c
      	* app/module_db.c
      	* app/nav_window.c
      	* app/ops_buttons.c
      	* app/scroll.c
      	* app/user_install.c
      	* app/gui/about-dialog.c
      	* app/gui/brush-editor.c
      	* app/gui/brushes-commands.c
      	* app/gui/color-notebook.c
      	* app/gui/colormap-dialog.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/file-commands.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradients-commands.c
      	* app/gui/image-commands.c
      	* app/gui/info-dialog.[ch]
      	* app/gui/layer-select.c
      	* app/gui/layers-commands.c
      	* app/gui/menus.c
      	* app/gui/offset-dialog.c
      	* app/gui/palette-editor.c
      	* app/gui/palettes-commands.c
      	* app/gui/patterns-commands.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.[ch]
      	* app/gui/splash.c
      	* app/gui/tips-dialog.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/toolbox.c
      	* app/gui/tools-commands.c
      	* libgimp/gimpbrushmenu.c
      	* libgimp/gimpmenu.c
      	* libgimp/gimppatternmenu.c
      	* libgimp/gimpui.c
      	* libgimpbase/gimpenv.c: tons and tons of changes like "const
      	gchar*", switch from GdkDeviceInfo to GdkDevice (very incomplete
      	and currently disables), lots of s/gtk_signal/g_signal/,
      	removal/replacement of deprecated stuff,
      	s/GtkSignalFunc/GCallback/ and lots of small changes and fixes
      	while I was on it, zillions of warnings left...
      
      	* modules/Makefile.am: disabled the water color selector
      	temporarily (XInput issues).
      
      	* plug-ins/Makefile.am
      	* plug-ins/common/.cvsignore
      	* plug-ins/common/Makefile.am
      	* plug-ins/common/plugin-defs.pl: simply excluded all plug-ins
      	which did not build (including Script-Fu). They are trivial to
      	fix.
      06b16890
  9. 29 Jun, 2001 1 commit
    • Michael Natterer's avatar
      removed GimpFillType. · d81b47ce
      Michael Natterer authored
      2001-06-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/appenums.h: removed GimpFillType.
      
      	* app/gimprc.c: parse the session-info's new "aux-info" field.
      
      	* app/global_edit.[ch]: removed the old "Paste Named" dialog and
      	prefixed all functions with "gimp_".
      
      	* app/core/core-types.h: added GimpFillType.
      
      	* app/core/gimpbrush.[ch]: new signal "spacing_changed".
      
      	* app/gui/Makefile.am
      	* app/gui/tools-commands.[ch]: one more file cut out of commands.[ch].
      
      	* app/gui/commands.[ch]: removed the tools stuff here.
      
      	* app/gui/brush-select.[ch]
      	* app/gui/dialogs-constructors.c: use the new GimpBrushFactoryView
      	(see below).
      
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/menus.[ch]:
      
      	- Made it 64bit safe again by passing the dialog factory's
      	  identifiers as GQuarks, not as guints created by GPOINTER_TO_UINT().
      	- Added a "gchar *quark_string" field to GimpItemFactoryEntry
      	  which gets transformed into a GQuark by menus_create_item().
      	- Added SEPARATOR() and BRANCH() macros which make the *_entries[]
      	  arrays more readable.
      	- Added a menu item to show/hide GimpImageDock's image menu.
      	- Removed file_last_opened_cmd_callback().
      
      	* app/gui/edit-commands.c: the global_edit functions are "gimp_"
      	prefixed now.
      
      	* app/gui/file-commands.[ch]: added file_last_opened_cmd_callback()
      	here.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpbrushfactoryview.[ch]: new widget: a
      	GimpDataFactory subclass with a "spacing" scale.
      
      	* app/widgets/gimpcontainereditor.[ch]:
      
      	- Connect to the GimpContainerView's "select_item",
      	  "activate_item" and "context_item" signals here once instead of
      	  in each subclass and dispatch them via new virtual functions.
      	- Added a convenience function which makes DND to the buttons much
      	  less painful for subclasses.
      
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpdatafactoryview.[ch]: changed accordingly.
      
      	* app/widgets/gimpdialogfactory.[ch]:
      
      	- Added gimp_dialog_factory_dialog_raise() which can raise
      	  toplevel dialogs _and_ dockables (and creates them if they are
      	  not open yet).
      	- Keep track of all created dialogs (not only toplevels).
      	- Added an "aux_info" field to GimpSessionInfo which is a GList of
      	  gchar* and is saved in sessionrc.
      	- Remember if GimpImageDock's image menu is visible by using an
      	  aux_info string.
      	- The code did not become nicer with all those new constraints. I
      	  have to add comments before I forget how it works.
      
      	* app/widgets/gimpdockbook.c: set the state of the "Show Image Menu"
      	menu item before popping up the item factory.
      
      	* app/widgets/gimpimagedock.[ch]: added
      	gimp_image_dock_set_show_image_meu().
      
      	* plug-ins/gdyntext/gdyntext.c
      	* plug-ins/perl/examples/fit-text
      	* plug-ins/perl/examples/terral_text
      	* plug-ins/perl/examples/tex-to-float: register all text rendering
      	plug-ins under <Image>/Filters/Text
      
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/enums.pl
      	* po/POTFILES.in: changed according to all the stuff above.
      d81b47ce
  10. 09 May, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed. · d1022c34
      Michael Natterer authored
      2001-05-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/asupsample.[ch]: removed.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/tools/Makefile.am
      	* app/tools/tools-types.h: new files.
      
      	* app/tools/gimptoolinfo.[ch]: removed.
      	* app/core/gimptoolinfo.[ch]: added here.
      
      	* libgimp/Makefile.am
      	* libgimp/gimp.h
      	* libgimp/gimpadaptivesupersample.[ch]
      	* libgimp/gimpbilinear.[ch]: removed here...
      
      	* libgimpcolor/Makefile.am
      	* libgimpcolor/gimpcolortypes.h
      	* libgimpcolor/gimpadaptivesupersample.[ch]
      	* libgimpcolor/gimpbilinear.[ch]: ..and added here.
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/paths.pdb
      
      	* app/*.c: changed tons of #include's
      d1022c34
  11. 27 Feb, 2001 1 commit
  12. 14 Feb, 2001 1 commit
    • Michael Natterer's avatar
      added a note about apptype.h and about not including headers in headers. · 22371de3
      Michael Natterer authored
      2001-02-14  Michael Natterer  <mitch@gimp.org>
      
      	* HACKING: added a note about apptype.h and about not including
      	headers in headers.
      
      	* app/apptypes.h: added GimpTool and BitmapCursor.
      
      	* app/cursorutil.h
      	* app/devices.h
      	* app/draw_core.h
      	* app/tools/color_picker.h
      	* app/tools/tool.h
      	* app/tools/tool_options.h
      	* app/gimpcontext.h: removed includes of "tools/tool.h"
      
      	* app/gimprc.[ch]: indentadion cleanup, added
      	"module_db_load_inhibit".
      
      	* app/module_db.c: removed the above variable here.
      
      	* app/gimpdata.[ch]: added a vitrual "duplicate" method.
      
      	* app/gimpbrush.[ch]
      	* app/gimpbrushgenerated.[ch]
      	* app/gimpbrushpipe.[ch]
      	* app/gimpgradient.[ch]
      	* app/gimppalette.[ch]
      	* app/gimppattern.[ch]: all "load", "new" and "get_standard"
      	functions return a GimpData pointer now.
      
      	* app/gimpdatafactory.[ch]: made some stuff const.
      
      	* app/gimpdatafactoryview.c: activate the "duplicate" button and
      	set the initial button sensitivity correctly.
      
      	* app/brush_select.c
      	* app/gradient_select.c
      	* app/pattern_select.c: use the new GimpDataFactoryView.
      
      	* libgimp/Makefile.am: grouped the file to sort out what _may_
      	go to subdirs or separate libs.
      
      	* libgimp/gimpenv.[ch]: added many "const".
      
      	* app/app_procs.c
      	* app/brush_edit.c
      	* app/gimpcontext.c
      	* app/gimpdnd.c
      	* app/gradient_editor.c
      	* app/palette.c
      	* app/palette_import.c
      	* app/user_install.c: many related changes.
      
      	* libgimpmath/gimpmathtypes.h
      	* libgimpmath/gimpvector.[ch]: minor cleanups.
      
      	* plug-ins/script-fu/script-fu.c: gimp_data_directory() is const now.
      22371de3
  13. 13 Feb, 2001 1 commit
    • Michael Natterer's avatar
      gimprc.in user_install user_install.bat app/gimprc.[ch] removed the · b5d8536f
      Michael Natterer authored
      2001-02-13  Michael Natterer  <mitch@gimp.org>
      
      	* gimprc.in
      	* user_install
      	* user_install.bat
      	* app/gimprc.[ch]
      	* app/preferences_dialog.c: removed the "brush_vbr_path" variable,
      	because all data types will be editable and saveable soon.
      
      	* app/Makefile.am
      	* app/apptypes.h
      	* app/gimpdatafactory.[ch]: new object which holds a data list and
      	knows how to create, edit, duplicate etc. the items in it. Will
      	completely replace the brushes.[ch], patterns.[ch], ... files soon.
      
      	* po/POTFILES.in
      	* app/gimpdatacontainerview.[ch]: removed.
      	* app/gimpdatafactoryview.[ch]: added.
      
      	A view on the GimpDataFactory with a GUI for creating, editing,
      	deleting etc. items (mostly unimplemented).
      
      	* app/context_manager.[ch]: replaced the global data lists by global
      	data factories.
      
      	* app/brush_select.c
      	* app/brushes.[ch]
      	* app/commands.c
      	* app/convert.c
      	* app/devices.c
      	* app/gimpbrush.[ch]
      	* app/gimpbrushgenerated.c
      	* app/gimpcontext.c
      	* app/gimpdata.[ch]
      	* app/gimpdatalist.[ch]
      	* app/gimpdnd.c
      	* app/gimpgradient.[ch]
      	* app/gimppalette.[ch]
      	* app/gimppattern.[ch]
      	* app/gradient_editor.c
      	* app/gradient_select.c
      	* app/gradients.[ch]
      	* app/indicator_area.c
      	* app/palette.c
      	* app/palette_import.c
      	* app/palette_select.c
      	* app/palettes.[ch]
      	* app/pattern_select.c
      	* app/patterns.[ch]
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/convert_cmds.c
      	* app/pdb/gradient_select_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/pattern_select_cmds.c
      	* app/pdb/patterns_cmds.c
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb: changed accordingly.
      b5d8536f
  14. 11 Feb, 2001 2 commits
    • Michael Natterer's avatar
      Made a GimpContainer out of the palette list: · 68216c6f
      Michael Natterer authored
      2001-02-11  Michael Natterer  <mitch@gimp.org>
      
      	Made a GimpContainer out of the palette list:
      
      	* app/Makefile.am
      	* app/palettes.[ch]: new files for the global palette list.
      
      	* app/gimpgradientpreview.[ch]
      	* app/gimppalettepreview.[ch]: new widgets.
      
      	* app/gimppalette.[ch]: derive it from GimpData to get all the
      	preview etc. stuff.
      
      	* app/datafiles.[ch]: new function datafiles_check_extension(),
      	added a "loader_data" parameter to datafiles_read_directories()
      	and pass it to the loader function.
      
      	* app/gimpcontext.[ch]: added the palette (not really used yet
      	except by the test dialogs).
      
      	* app/gimpdatalist.[ch]: new function gimp_data_list_save_and_clear()
      	which does everything needed for patterns_free(), brushes_free() ...
      
      	* app/gimpdnd.c: added palette DND.
      
      	* app/app_procs.c
      	* app/brushes.c
      	* app/color_notebook.h
      	* app/commands.c
      	* app/convert.c
      	* app/gimpbrush.h
      	* app/gimpbrushpipe.h
      	* app/gimpgradient.c
      	* app/gimppattern.h
      	* app/gimppreview.c
      	* app/gradients.c
      	* app/module_db.c
      	* app/palette.[ch]
      	* app/paletteP.h
      	* app/palette_import.c
      	* app/palette_select.[ch]
      	* app/patterns.c
      	* app/plug_in.c
      	* app/pdb/convert_cmds.c
      	* app/pdb/palette_cmds.c
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/palette.pdb: lotsa stuff: changed due to the above
      	API changes, #define the file extensions in the GimpData subclasses'
      	header files instead of hardcoding them in several places, ...
      
      	* data/palettes/*: The same file format change as for the gradient
      	files:
      
      	- Save the palette name in a parsable form (as part of the file
      	  format, not in a comment.
      	- Removed unserscores from the palette names.
      	- Added an extension (Gimp PaLettes are ".gpl" files now ;-)
      68216c6f
    • Michael Natterer's avatar
      app/Makefile.am app/apptypes.h new abstract base class for everything · e4bb2f93
      Michael Natterer authored
      2001-02-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/apptypes.h
      	* app/gimpdata.[ch]: new abstract base class for everything
      	(except images) which has a filename and can become dirty and must
      	be saved.
      
      	* app/gimpbrush.[ch]
      	* app/gimpgradient.[ch]
      	* app/gimppattern.[ch]: all derived from GimpData now.
      
      	* app/gimpbrushgenerated.[ch]
      	* app/brush_select.c
      	* app/brushes.c
      	* app/gimpbrushpipe.c
      	* app/gradient_editor.c
      	* app/gradients.c
      	* app/patterns.c: removed lots of code duplication due to common
      	file save magic.
      
      	The gradient file format has changed: it now contains the
      	gradient's name (no more ugly underscores). The files have the
      	extension ".ggr".
      
      	* app/gimpgradient.[ch]: save new gradients, load new and old
      	gradients.
      
      	* data/gradients/*: removed all old gradients and added the new
      	ones.
      e4bb2f93
  15. 07 Feb, 2001 1 commit
    • Michael Natterer's avatar
      app/gimpbrush.[ch] moved the scale and pipe indicator rendering code from · 3675004e
      Michael Natterer authored
      2001-02-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimpbrush.[ch]
      	* app/gimpbrushpreview.c: moved the scale and pipe indicator
      	rendering code from GimpBrush to GimpBrushPreview.
      	Removed the "dirty" signal from GimpBrush and use
      	"invalidate_preview" of the GimpViewable class.
      
      	* app/brush_edit.c
      	* app/brush_select.c
      	* app/gimpbrushgenerated.c
      	* app/gimpcontext.c
      	* app/gimpcontextpreview.c
      	* app/tools/paint_core.c: changed accordingly.
      3675004e
  16. 05 Feb, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am some new files and data types: · be0e7d11
      Michael Natterer authored
      2001-02-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/apptypes.h: some new files and data types:
      
      	* app/gimppreview.[ch]: new widgets which provides a view
      	of a GimpViewable.
      
      	* app/gimpcontainerview.[ch]: new abstract widget base class for
      	views of GimpContainers of GimpViewables
      
      	* app/gimpcontainerlistview.[ch]: (still) simple implementation of
      	a list view of the container.
      
      	* app/gimpbrush.[ch]
      	* app/gimppattern.[ch]: provide dumb implementations of the
      	GimpViewable's "preview" method.
      
      	* app/image_render.c: quick bad hack to enable preview sizes which
      	are != "preview_size": Always allocate data chunks for previews up
      	to 256 pixels width.
      
      	* app/drawable.c: emit the "incalidate_preview" signal from
      	drawable_update(). This may cause useless updates at the moment
      	but as we want to move from explicit updates to signal-driven
      	model-view stuff it's the right thing (TM).
      
      	* app/commands.[ch]
      	* app/interface.c
      	* app/menus.c: Added a "Test dialogs" menu to the Toolbox.
      
      	* app/pdb/image_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: propagated the new alpha channel stuff
      	to the autogenerated files.
      be0e7d11
  17. 14 Jan, 2001 1 commit
    • Michael Natterer's avatar
      app/apptypes.h app/brush_edit.c app/brush_select.c app/brushes_cmds.c · cac3f7cb
      Michael Natterer authored
      2001-01-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/apptypes.h
      	* app/brush_edit.c
      	* app/brush_select.c
      	* app/brushes_cmds.c
      	* app/channel.h
      	* app/colormap_dialog.c
      	* app/datafiles.[ch]
      	* app/devices.c
      	* app/docindex.c
      	* app/fileops.c
      	* app/gdisplay.c
      	* app/gimage.c
      	* app/gimpbrush.[ch]
      	* app/gimpbrushgenerated.[ch]
      	* app/gimpbrushlist.[ch]
      	* app/gimpbrushpipe.[ch]
      	* app/gimpcontext.[ch]
      	* app/gimpcontextpreview.c
      	* app/gimpdnd.c
      	* app/gimpdrawable.h
      	* app/gimpimage.[ch]
      	* app/gimplist.h
      	* app/gimpobject.h
      	* app/gimpset.[ch]
      	* app/gradient.c
      	* app/info_window.c
      	* app/layer.[ch]
      	* app/module_db.c
      	* app/palette.[ch]
      	* app/patterns.[ch]
      	* app/plug_in.[ch]
      	* app/undo_history.c
      	* app/xcf.c
      	* tools/pdbgen/pdb/brushes.pdb
      
      	- Removed the "name" argument from all objects and use
      	  GimpObject's name.
      	- Use the same code in all "uniquefy name" functions (this
      	  functionality will be a method of the "GimpContainer" class).
      	- Renamed the parent instances of all objects to "parent instance".
      	- Added missing instance and class cast macros.
      	- Changed some "gchar *" to "const gchar *" parameters.
      cac3f7cb
  18. 10 Jan, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed. added. · 92c45a90
      Michael Natterer authored
      2001-01-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimpsignal.[ch]: removed.
      	* app/gimpmarshal.[ch]: added.
      
      	* app/channel.[ch]
      	* app/gimpbrush.[ch]
      	* app/gimpbrushgenerated.c
      	* app/gimpbrushlist.[ch]
      	* app/gimpbrushpipe.[ch]
      	* app/gimpcontext.c
      	* app/gimpdrawable.c
      	* app/gimpimage.c
      	* app/gimplist.[ch]
      	* app/gimpobject.[ch]
      	* app/gimpset.[ch]
      	* app/layer.c
      	* app/layers_dialog.c
      	* app/module_db.c
      	* app/parasitelist.[ch]: removed gimp_signal_new() and
      	GIMP_TYPE_INIT(). Fixed lots of object related uglyness.
      92c45a90
  19. 29 Dec, 2000 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/channel_pvt.h app/drawable_pvt.h app/gdisplayF.h · 8d6c335f
      Michael Natterer authored
      2000-12-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/channel_pvt.h
      	* app/drawable_pvt.h
      	* app/gdisplayF.h
      	* app/gimpdrawableP.h
      	* app/gimpimageP.h
      	* app/layer_pvt.h
      	* app/toolsF.h: removed these files.
      
      	* app/apptypes.h
      	* tools/pdbgen/enums.pl: added tons of opaque typedefs and enums.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/tools.pdb
      	* app/*: chainsaw #include cleanup:
      
      	- Never (never!!) include stuff in header files except where we
      	  need access to structures' contents (like derived objects).
      	- Added prototypes and proper formating in many files.
      	- The #include order in *all* *.c files is as follows:
      
      	#include "config.h"
      
      	#include <system stuff>
      
      	#include <gtk/gtk.h>
      
      	#include "apptypes.h"
      
      	#include "gimp stuff"
      
      	#include "libgimp stuff"
      
      	#include "libgimp/gimpintl.h"
      
      	By following this scheme we can easily see a file's dependencies
      	from it's #include's and can grep for the inclusion to find out
      	where a file is used.
      
      	* tools/pdbgen/app.pl: changed to follow the include scheme above.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpuitypes.h: new file, included from libgimp/gimpui.h
      	and from app/apptypes.h.
      
      	* libgimp/gimpcolorbutton.[ch]
      	* libgimp/gimpdialog.[ch]
      	* libgimp/gimphelpui.[ch]
      	* libgimp/gimpparasite.[ch]
      	* libgimp/gimppatheditor.[ch]
      	* libgimp/gimpprotocol.c
      	* libgimp/gimpquerybox.[ch]
      	* libgimp/gimpsizeentry.[ch]
      	* libgimp/gimptypes.h
      	* libgimp/gimpui.h
      	* libgimp/gimpunit.h
      	* libgimp/gimpunitmenu.[ch]
      	* libgimp/gimpwidgets.[ch]: changed accordingly.
      
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/gdyntext/message_window.c
      	* plug-ins/imagemap/imap_default_dialog.c
      	* plug-ins/imagemap/imap_file.c: these files used to include
      	"libgimp/gimpui.h" without including "libgimp/gimp.h". This is
      	no longer possible because the libgimpui headers don't inlcude
      	"libgimp/gimpunit.h" any more.
      8d6c335f
  20. 18 Dec, 2000 1 commit
    • Sven Neumann's avatar
      Jens Lautenbacher <jtl@gimp.org> · 3cff8419
      Sven Neumann authored
      2000-12-18  Sven Neumann  <sven@gimp.org>
      	    Jens Lautenbacher <jtl@gimp.org>
      
      	* app/Makefile.am
      
      	* app/gimpbrushlistP.h
      	* app/gimpbrushpipeP.h
      	* app/gimpobjectP.h: removed these three files
      
      	* app/parasitelistP.h
      	* app/channels_dialog.c
      	* app/docindex.c
      	* app/gimpdrawable.c
      	* app/gimpdrawableP.h
      	* app/gimpimage.c
      	* app/gimpimageP.h
      	* app/gimplist.[ch]
      	* app/gimpobject.c
      	* app/gimpobject.h
      	* app/gimpsetP.h: changed according to header removal
      
      	* app/airbrush.c
      	* app/brush_select.[ch]
      	* app/brushes_cmds.c
      	* app/gimpbrush.[ch]
      	* app/gimpbrushgenerated.[ch]
      	* app/gimpbrushlist.[ch]
      	* app/gimpbrushpipe.[ch]
      	* app/gimpcontextpreview.c
      	* app/paint_core.c
      	* app/paintbrush.c
      	* app/pencil.c
      	* tools/pdbgen/pdb/brushes.pdb: Big Brushes Cleanup.
      
      	The GimpBrush* object hierarchy and the file formats were broken by
      	"design". This made it overly difficult to read and write pixmap
      	brushes and brush pipes, leading to the situation that The GIMP was
      	not able to read it's very own file formats. Since the GimpBrush
      	format did support arbitrary color depths, the introduction of a
      	file format for pixmap brushes was unnecessary.
      
      	The GimpBrushPixmap object is dead. GimpBrush has an additional
      	pixmap temp_buf and handles pixmap brushes transparently. The file
      	format of pixmap brushes is not any longer a grayscale brush plus
      	a pattern, but a simple brush with RGBA data. The old brushes can
      	still be loaded, but the .gpb format is deprecated.
      
      	GimpBrushPipe derives from GimpBrush. The fileformat is still a text
      	header, followed by a number of brushes, but those brushes are stored
      	in the new GimpBrush format (no pattern anymore). The pipe does not
      	care about the depth of the contained GimpBrushes, so we get
      	grayscale BrushPipes for free. Since the brush loader still loads the
      	old format, old .gih files can also still be loaded.
      
      	Since the brushes in the GimpBrushPipe do not any longer contain a
      	pointer to the pipe object, we do only temporarily switch brushes
      	in the paint_core routines. This is not very elegant, but the best
      	we can do without a major redesign.
      
      	* app/patterns.[ch]: changed the loader to work with a filedescriptor
      	instead of a filehandle to make it work with the new brush loading
      	code.
      
      	* plug-ins/common/.cvsignore
      	* plug-ins/common/Makefile.am
      	* plug-ins/common/plugin-defs.pl
      	* plug-ins/common/gih.c: new plug-in that saves GIH files in the
      	new format (loader will follow soon)
      
      	* plug-ins/common/gpb.c: removed since Pixmap Brushes are no longer
      	supported as a special file format.
      
      	* plug-ins/common/gbr.c: load and save brushes in the new brush format
      	which allows RGBA brushes too.
      
      	* plug-ins/common/pat.c: load and save grayscale patterns too
      3cff8419
  21. 16 Dec, 2000 1 commit
    • Sven Neumann's avatar
      Last-minute cleanup: · dfa2bed5
      Sven Neumann authored
      2000-12-16  Sven Neumann  <sven@gimp.org>
      
      	Last-minute cleanup:
      
      	* app/gimpdrawableF.h
      	* app/gimphistogramF.h
      	* app/gimpimageF.h
      	* app/gimplistF.h
      	* app/gimplutF.h
      	* app/gimpobjectF.h
      	* app/gimpsetF.h
      	* app/layerF.h
      	* app/parasitelistF.h: removed these files
      
      	* app/Makefile.am
      	* tools/pdbgen/Makefile.am: changed accordingly
      
      	* app/[almost every file]: include cleanup
      dfa2bed5
  22. 29 Sep, 2000 1 commit
    • Michael Natterer's avatar
      app/brush_edit.[ch] app/brush_header.h app/gimpbrush.[ch] · f38cdf12
      Michael Natterer authored
      2000-09-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/brush_edit.[ch]
      	* app/brush_header.h
      	* app/gimpbrush.[ch]
      	* app/gimpbrushgenerated.[ch]
      	* app/gimpbrushlist.[ch]
      	* app/gimpbrushpipe.[ch]
      	* app/gimpcontext.h
      	* app/gimplist.[ch]
      	* app/gimpobject.[ch]
      	* app/gimpset.[ch]
      	* app/gimpsignal.[ch]
      	* app/parasitelist.h: Lotsa fixes in the brush referencing code
      	and cleanups in many GtkObjects:
      
      	- Reference brushes correctly (call gtk_object_sink() after adding
      	  them to the brush list). Don't crash when renaming a brush
      	  multiple times.
      	- Replaced all gtk_object_destroy() with gtk_object_unref|sink().
      	- Removed the "Fake Gimp object system" (gimp_object_destroy() et.al.)
      	  all over the place (while it's a good idea to have a common Gimp
      	  base object, it's totally useless to try to imitate Gtk's object
      	  system).
      	- s/sz_BrushHeader/sizeof(BrushHeader)/g
      	- And of course various indentation and coding style paranoia changes
      	  in all files I visited.
      f38cdf12
  23. 27 Sep, 2000 1 commit
  24. 24 Feb, 2000 1 commit
    • Michael Natterer's avatar
      app/gimpbrush.[ch] app/gimpbrushgenerated.[ch] app/gimpbrushlist.[ch] · 8f4adbad
      Michael Natterer authored
      2000-02-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimpbrush.[ch]
      	* app/gimpbrushgenerated.[ch]
      	* app/gimpbrushlist.[ch]
      	* app/gimpbrushlistP.h
      	* app/gimpbrushpipe.[ch]
      	* app/gimpbrushpipeP.h: did a brushes code-review: indentation,
      	removed some includes, didn't find a bug :-)
      
      	* app/gradient.c
      	* app/palette.c: we were leaking all gradient and palette preview
      	pixmaps as well as all lists of palette colors on each refresh.
      
      	* libgimp/gimpenv.c: updated documentation.
      8f4adbad
  25. 14 Feb, 2000 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed. · 2715fd15
      Michael Natterer authored
      2000-02-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/vector2d.[ch]: removed.
      
      	* app/gimpbrush.h
      	* app/paint_core.c: use the vectors from libgimp.
      2715fd15
  26. 26 Oct, 1999 1 commit
  27. 30 Aug, 1999 1 commit
    • Tor Lillqvist's avatar
      Add a new method, gboolean want_null_motion(), that tells if the brush · 26b70edd
      Tor Lillqvist authored
      1999-08-30  Tor Lillqvist  <tml@iki.fi>
      
      * app/gimpbrush.h (GimpBrushClass): Add a new method, gboolean
      want_null_motion(), that tells if the brush wants to be painted
      when we don't know the direction yet. This is needed (so far) by
      brush pipes that select the brush based on direction.
      
      * app/gimpbrush.c: Implement above method returning always TRUE.
      
      * app/gimpbrushpipe.c: Here, implement it returning FALSE or TRUE
      on whether the brush pipe has any angular (direction) dependent
      dimension or not.
      
      * app/paint_core.c (paint_core_button_press): Call the method
      if current point == last point.
      26b70edd
  28. 26 Aug, 1999 1 commit
    • Tor Lillqvist's avatar
      Overhaul of pixmap brushes and pipes: No separate pixmap pipe · 868bdfff
      Tor Lillqvist authored
      brush tool any longer. The paintbrush, airbrush and pencil
      tools, which already knew how to handle the single-pixmap
      brushes now also handle the pipes as well.
      
      * app/pixmapbrush.{h,c}
      * app/gimpbrushpixmap.{h,c}: Removed these files.
      
      * app/Makefile.am
      * app/makefile.{cygwin,msc}: Remove from here, too.
      
      * app/gimpbrushpipe.{h,c}: Total overhaul.
      
      * app/paint_core.h
      * app/apptypes.h: Some more types moved to apptypes.h
      
      * app/context_manager.c
      * app/tool_options.c
      * app/tools.c
      * app/toolsF.h: Remove PIXMAPBRUSH tool.
      
      * app/gimpbrush.h: New method: select_brush. Used to change the
      brush in paint_core, for pipe brushes.
      
      * app/gimpbrush.c: Add gimp_brush_select_brush, which is dummy for
      the normal brushes (returns the same brush).
      
      * app/paint_core.c: Call the brush's select_brush method to get a
      potential new brush before calling the paint_func.
      
      * app/gimpbrushlist.c: Various changes related to the pixmap and
      pipe overhaul.
      
      * app/airbrush.c
      * app/pencil.c: Reorder code a bit in the tool motion function to
      avoid executing unnecessary code in the case of a pixmap brush.
      
      Other changes in the same commit:
      
      * app/install.c: Make quote_spaces extern.
      
      * app/appenv.h: Declare it.
      
      * libgimp/gimpui.def: Add missing entry points.
      
      * libgimp/makefile.{cygwin,msc}: Add missing objects to gimpui.
      868bdfff
  29. 23 Aug, 1999 1 commit
    • EDT 1999 Adrian Likins's avatar
      app/gimpbrushhose.c removed. app/gimpbrushpipe.c New files to replace the · 5c61305f
      EDT 1999 Adrian Likins authored
      Mon Aug 23 00:56:59 EDT 1999 Adrian Likins <alikins@redhat.com>
      
              * app/gimpbrushhose.c
              * app/gimpbrushhose.h:
                      removed.
              * app/gimpbrushpipe.c
              * app/gimpbrushpipe.h:
                      New files to replace the above
              * app/gimpbrushlist.c
              * app/paintbrush.c
              * app/pixmapbrush.c
              * app/Makefile.am:
                      s/hose/pipe. Seems someone else uses that name,
              so change it to pipe.
      
              * app/gimpbrush.c
              * app/gimpbrush.h
              * app/gimpbrushpixmap.c
              * app/patterns.c
              * app/patterns.h
              * app/pixmapbrush.c:
                      Added functions to do the actual loading of
              brush/pattern data. Use them where approriate instead
              of cut&pasting the same code all over the place.
      
              * app/pixmapbrush.c: Fix the bug where masks and brush
              data werent aligned. I didnt quite notice that
              paint_core_get_paint_area returns an area with a 1 pixel
              border larger than the brush. Ooops.
      
              * TODO: just update a few things while I'm at it
              (pixmap/pipe stuff in particular)
      5c61305f
  30. 22 Apr, 1999 1 commit
    • Michael Natterer's avatar
      First version of per-tool paint options. No PDB interface yet. The tool · ca2cbd32
      Michael Natterer authored
      1999-04-22  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	First version of per-tool paint options. No PDB interface yet.
      	The tool options dialog got rather big when in per-tool mode, so
      	it will probably have to become a notebook.
      
      	It's not yet 100% consistent. If switched off, everything should
      	behave exactly like before.
      
      	* app/Makefile.am
      	* app/paint_options.h: new file
      
      	* app/tool_options.c: PaintOptions gui. Maintain a list of all
      	paint tools' ToolOptions to enable switching between global and
      	per-tool paint options.
      
      	* app/brush_select.[ch]: changed packing boxes, tables, ...
      	The paint options in the brush selection can be hidden now.
      	Moved create_paint_mode_menu() to paint_options.h and
      	tool_options.c and renamed it to paint_mode_menu_new().
      
      	* app/gimage_mask.c
      	* app/gimpbrush.[ch]
      	* app/gimpbrushlist.[ch]
      	* app/paint_core.c: moved gimp_brush_[set|get]_spacing() from
      	gimpbrushlist.[ch] to gimpbrush.[ch].
      	Moved gimp_brush_[get|set]_[opacity|paint_mode]() to
      	paint_options.h and tool_options.c and renamed them to
      	paint_options_*_*().  They are "global paint options" now.
      
      	* app/airbrush.c
      	* app/blend.c
      	* app/bucket_fill.c
      	* app/clone.c
      	* app/convolve.c
      	* app/eraser.c
      	* app/ink.c
      	* app/paintbrush.c
      	* app/pencil.c: all paint tools' options are derived from
      	"PaintOptions" now. Opacity and paint mode are obtained through
      	macros which take into account the current paint options mode.
      
      	* app/buildmenu.h: #include <gtk/gtk.h>
      
      	* app/color_picker.c
      	* app/text_tool.c: changed spacings.
      
      	* app/gimprc.[ch]: new gimprc option "global-paint-options"
      
      	* app/preferences_dialog.c: Added a "Tool Options" page. Code
      	cleanup. Some work on the convenience constructors test site.
      
      	* app/tools.c: fixed "unused variable" warning.
      ca2cbd32
  31. 24 Jul, 1998 1 commit
    • jaycox's avatar
      ---------------------------------------------------------------------- · 69d92241
      jaycox authored
      ```-------------------------------------------------------------------
       Modified Files:
       	ChangeLog app/Makefile.am app/brush_select.c app/gimpbrush.c
       	app/gimpbrush.h app/gimpbrushgenerated.c app/gimpbrushlist.c
       	app/gimplist.c app/paint_core.c app/paint_core.h
          added axis to brushes.  paint_core now references a brush instead
          of a mask.  cleaned up some [brush]list removal stuff.
      
      
       Added Files:
       	app/vector2d.c app/vector2d.h
          very basic vector math struct/functions.
      ```
      
      -------------------------------------------------------------------
      69d92241
  32. 20 Jul, 1998 1 commit
    • jaycox's avatar
      ---------------------------------------------------------------------- · 2f93825e
      jaycox authored
      
       ----------------------------------------------------------------------
       Modified Files:
       	ChangeLog app/brush_select.c
       	app/gimpbrush.c app/gimpbrush.h app/gimpbrushgenerated.c
       	app/gimpbrushlist.c app/gimpbrushlist.h
           removed the index field from GimpBrush.  tweaked the brush renaming
           code
      
      	app/edit_selection.c:
           look ahead in the event queue and process as many arrow keys as we
           can.
       ----------------------------------------------------------------------
      2f93825e
  33. 19 Jul, 1998 1 commit
    • jaycox's avatar
      ---------------------------------------------------------------------- · 33cc34dd
      jaycox authored
      
       ----------------------------------------------------------------------
       Modified Files:
       	ChangeLog app/brush_select.c app/gimpbrush.c app/gimpbrush.h
       	app/gimpbrushlist.c
            made the scrollbars recalc in brush_select when a brush is
            added/removed.
            GimpBrushLists now force brush names to be unique.
       ----------------------------------------------------------------------
      33cc34dd
  34. 09 Jul, 1998 1 commit
    • jaycox's avatar
      Modified Files: ChangeLog app/Makefile.am app/airbrush.c app/app_procs.c · b7d8e6ea
      jaycox authored
      
       Modified Files:
       	ChangeLog app/Makefile.am app/airbrush.c app/app_procs.c
       	app/brush_select.c app/brush_select.h app/clone.c
       	app/colormaps.c app/commands.c app/convolve.c app/devices.c
       	app/eraser.c app/gimage_mask.c app/gimpobject.h app/ink.c
       	app/internal_procs.c app/paint_core.c app/paint_core.h
       	app/paintbrush.c app/pencil.c app/preferences_dialog.c
            Minor modifications to support new brush functionality
      
       Added Files:
       	app/brush_edit.c app/brush_edit.h app/gimpbrush.c
       	app/gimpbrush.h app/gimpbrushgenerated.c
       	app/gimpbrushgenerated.h app/gimpbrushlist.c
       	app/gimpbrushlist.h
            new files to support vector generated brushes and
            reorganization/objectification of the brush class
      
       Removed Files:
       	app/brushes.c app/brushes.h
          Obsoleted by gimpbrush.? and gimpbrushlist.?
      
       ----------------------------------------------------------------------
      b7d8e6ea