1. 20 Jun, 2003 1 commit
  2. 19 Jun, 2003 1 commit
    • Michael Natterer's avatar
      Changed the semantics of GIMP_EXTENSION and (to some extent) of · ecb0b584
      Michael Natterer authored
      2003-06-19  Michael Natterer  <mitch@gimp.org>
      
      	Changed the semantics of GIMP_EXTENSION and (to some extent)
      	of GIMP_PLUGIN:
      
      	The old meaning of EXTENSION was "I live in the toolbox" and
      	PLUGIN meant "I take RUN-MODE,IMAGE,DRAWABLE args (but only if I
      	am invoked interactively)". This is completely useless, since
      	living in the toolbox means having "<Toolbox>" in the menu_path
      	and taking RUN-MODE,IMAGE,DRAWABLE means just that, regardless of
      	what type of procedure we are.
      
      	The new meaning of GIMP_PLUGIN is just "I am an ordinary procedure,
      	I am invoked, do my job and finish", while GIMP_EXTENSION means
      	"I will install temporary procedures and I will keep running to
      	keep them available".
      
      	(A GIMP_EXTENSION *must* call gimp_extension_ack() now to tell the
      	core that it's ready to run, or the core will block waiting for
      	the message !!!).
      
      	* configure.in: bumped version number to 1.3.16.
      
      	* libgimpbase/gimpprotocol.h: increased protocol version number so
      	old extensions will refuse to load.
      
      	* app/gui/plug-in-commands.c (plug_in_run_cmd_callback): don't
      	blindly pass RUN-MODE,IMAGE,DRAWABLE to GIMP_PLUGIN procedures but
      	look at their parameters and pass them either RUN-MODE, or
      	RUN-MODE,IMAGE, or RUN-MODE,IMAGE,DRAWABLE.
      
      	* app/pdb/procedural_db.c: cleaned up, better error reporting,
      	replaced an impossible error message by g_return_if_fail()
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_install):
      	better error messages.
      
      	* app/plug-in/plug-in-params.c: allocate parameter arrays using
      	g_new0() so we don't have to worry about uninitialized stuff
      	later.
      
      	* app/plug-in/plug-in-run.c (plug_in_run): wait for
      	gimp_extension_ack() installation confirmation for ALL extensions,
      	not just for automatically started ones.
      
      	* app/plug-in/plug-ins.c: cleanup.
      
      	* libgimp/gimp.[ch]: cleaned up and API-documented massively. Made
      	all magic values given in the GPConfig message static and added
      	accessor functions for them. Added gimp_tile_width()/height().
      	Added new function gimp_extension_enable() which turns on
      	asynchronous processing of temp_proc run requests without having
      	to enter an endless gimp_extension_process() loop. Moved all
      	private functions to the end of the file. Added tons of
      	g_return_if_fail() all over the place.  Call gimp_run_procedure2()
      	from gimp_run_procedure() instead of duplicating the
      	code. Indentation, spacing, stuff...
      
      	* libgimp/gimptile.[ch]: removed gimp_tile_width()/height().
      
      	* libgimp/gimpdrawable.c
      	* libgimp/gimppixelrgn.c
      	* libgimp/gimptile.c: use the gimp_tile_width()/height() accessor
      	functions.
      
      	* libgimp/gimp.def: added gimp_extension_enable.
      
      	* libgimp/gimpmenu.c: removed evil code which connected to
      	_readchannel manually and use gimp_extension_enable() for watching
      	temp_procs.
      
      	* plug-ins/helpbrowser/helpbrowser.c: removed the same evil code
      	here and call gimp_extension_enable(). Call gimp_extension_ack()
      	to let the core know that the temp_proc is installed.
      
      	* plug-ins/script-fu/script-fu.c: made all procedures except the
      	permanently running "extension_script_fu" ordinary GIMP_PLUGIN
      	procedures.
      
      	* plug-ins/common/curve_bend.c
      	* plug-ins/common/plugindetails.c
      	* plug-ins/common/screenshot.c
      	* plug-ins/common/uniteditor.c
      	* plug-ins/common/winclipboard.c
      	* plug-ins/dbbrowser/dbbrowser.c
      	* plug-ins/gfli/gfli.c
      	* plug-ins/twain/twain.c
      	* plug-ins/webbrowser/webbrowser.c
      	* plug-ins/winsnap/winsnap.c: made them all ordinary GIMP_PLUGIN
      	procedures and renamed them from "extension_*" to "plug_in_*".
      	Random cleanups.
      
      	* app/widgets/gimphelp.c
      	* plug-ins/maze/maze_face.c: call "plug_in_web_browser" now.
      ecb0b584
  3. 11 Feb, 2003 1 commit
    • Michael Natterer's avatar
      added lots of members for the complete state of the plug-ins. · af330e96
      Michael Natterer authored
      2003-02-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp.h: added lots of members for the complete
      	state of the plug-ins.
      
      	* app/plug-in/plug-in-types.h: added PlugInShm typedef.
      
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-rc.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* app/plug-in/plug-in-shm.c
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins.[ch]: removed all global & static variables
      	and pass around more "Gimp" pointers.
      
      	* app/plug-in/plug-in-debug.c: use G_N_ELEMENTS().
      
      	* app/gui/image-menu.c
      	* app/gui/plug-in-commands.c
      	* app/gui/plug-in-menus.c
      	* app/gui/toolbox-menu.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      af330e96
  4. 30 Jan, 2003 1 commit
    • Michael Natterer's avatar
      renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of · a3c38814
      Michael Natterer authored
      2003-01-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in.[ch]: renamed plug_in->busy to
      	plug_in->in_temp_proc. Added a stack of GMainLoops to each
      	plug-in. Added the "current_return_vals" to the PlugIn
      	struct. Renamed plug_in_kill() to plug_in_exit(). Removed
      	the stuff added below. Cleanup.
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-message.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* app/plug-in/plug-in-shm.[ch]: new files taking out functionality
      	from the overloaded plug-in.c. Added the code back in that implements
      	temp proc return messages (inside an #ifdef) because i don't
      	really get why it was removed on Sep 19 1998.
      
      	* app/plug-in/plug-ins.c: changed accordingly.
      
      	* app/plug-in/plug-in-def.c
      	* app/plug-in/plug-in-params.c: removed inclusion of <gtk/gtk.h>.
      
      	* app/gui/file-save-dialog.c
      	* app/gui/paths-dialog.c
      	* app/gui/plug-in-commands.c
      	* app/gui/plug-in-menus.c
      	* app/pdb/procedural_db.c
      	* app/widgets/gimphelp.c: changed plug-in includes accordingly.
      
      	* app/gui/plug-in-commands.c: don't use "the_gimp" from
      	"app_procs.h" but get it from the GimpItemFactory that invoked the
      	plug-in callback.
      a3c38814
  5. 14 Dec, 2002 2 commits
    • Michael Natterer's avatar
      use gdisp->gimage->gimp instead of the_gimp. · 1d1be9f0
      Michael Natterer authored
      2002-12-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/plug-in-commands.c (plug_in_repeat_cmd_callback):
      	use gdisp->gimage->gimp instead of the_gimp.
      
      	* app/tools/gimpimagemaptool.c: pass update_popup == FALSE to
      	gimp_display_shell_set_menu_sensitivity().
      1d1be9f0
    • Sven Neumann's avatar
      data is not a Gimp pointer if this function is called from an image · b9b40c45
      Sven Neumann authored
      2002-12-14  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/plug-in-commands.c (plug_in_repeat_cmd_callback): data
      	is not a Gimp pointer if this function is called from an image
      	menubar. Use the_gimp instead of crashing.
      b9b40c45
  6. 10 Dec, 2002 1 commit
    • Michael Natterer's avatar
      The unbelievable happened: a menu bar per display (optionally) · b1ebd9cd
      Michael Natterer authored
      2002-12-10  Michael Natterer  <mitch@gimp.org>
      
      	The unbelievable happened: a menu bar per display (optionally)
      
      	* app/widgets/gimpitemfactory.[ch]: Added the possibility to have
      	more than one item factory per <Prefix>. Added
      	gimp_item_factories_set_foobar() variants of all functions which
      	set menu item properties (label, sensitive, ...). Removed
      	the #ifndef ENABLE_NLS code since that's no longer possible.
      
      	* app/widgets/gimptoolbox.c: made it robust againt the <Image>
      	factory not existing at the time of toolbox creation.
      
      	* app/config/gimpconfig-blurbs.h
      	* app/config/gimpdisplayconfig.[ch]: added boolean
      	"menu_bar_per_display" property.
      
      	* app/gui/preferences-dialog.c: added a toggle for the new option.
      
      	* app/gui/menus.[ch]: added menus_get_new_image_factory() as
      	temporary solution. Will add a GimpMenuFactory which creates the
      	item factories soon.
      
      	* app/display/gimpdisplayshell.c: add the menu bar if requested.
      	Changed widget packing slightly for the menu bar case.
      
      	* app/display/gimpdisplayshell-callbacks.c: changed accordingly.
      	Currently there is no right-click popup menu when we have a menu
      	bar. This will change soon.
      
      	* app/gui/file-dialog-utils.c
      	* app/gui/gui.c: use gimp_item_factories_set_foo().
      
      	* app/gui/channels-commands.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/plug-in-commands.c
      	* app/gui/select-commands.c
      	* app/gui/tools-commands.c
      	* app/gui/vectors-commands.c
      	* app/gui/view-commands.c: per-display item factories pass the
      	GimpDisplay as user_data to callbacks, not a Gimp. Changed all
      	return_if_no_foo() macros to handle both cases.
      
      	Cleaned up the plug-in menu stuff:
      
      	* app/plug-in/plug-in-types.h: removed PlugInMenuEntry type.
      
      	* app/plug-in/plug-ins.[ch]: added plug_ins_proc_def_add() as
      	counterpart to plug_ins_proc_def_remove(). Added
      	plug_ins_locale_domain() as counterpart to plug_ins_help_path().
      	Remember the locale domains just as the help paths. Changed
      	plug-in initialization so that their menus can be created multiple
      	times.
      
      	* app/plug-in/plug-in.[ch]: use plug_ins_proc_def_add() instead of
      	doing it manually.
      
      	* app/gui/plug-in-menus.[ch]: added plug_in_menus_init() which
      	just registers the locale domains. Changed plug_in_make_menu() to
      	take a list of proc_defs, not plug_ins_defs so it can be used
      	after plug-in query.
      b1ebd9cd
  7. 20 Mar, 2002 1 commit
    • Michael Natterer's avatar
      badly chopped into the new files below. Pass around much more "PlugIn" and · 47c5473e
      Michael Natterer authored
      2002-03-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in.[ch]: badly chopped into the new files below.
      	Pass around much more "PlugIn" and "Gimp" pointers instead of
      	using "current_plug_in" and "the_gimp". Needs much more hacking
      	though... :(
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-def.[ch]
      	* app/plug-in/plug-in-params.[ch]
      	* app/plug-in/plug-in-progress.[ch]
      	* app/plug-in/plug-ins.[ch]: new files.
      
      	* app/gui/Makefile.am
      	* app/gui/plug-in-commands.[ch]
      	* app/gui/plug-in-menus.[ch]: ditto.
      
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in-types.h: changed accordingly.
      
      	* app/pdb/procedural_db.c: changed procedural_db_destroy_args()
      	so it can be used from plug_in_args_destroy(). Fixed a parasite
      	memory leak (or introduced a new SEGV, we'll see...).
      
      	* app/display/Makefile.am: another "truly ugly hack" until the
      	plug-in menu stuff is chopped even more...
      
      	* app/gui/commands.[ch]: removed filters_repeat_cmd_callback() here,
      	it is now in plug-in-commands.[ch].
      
      	* app/widgets/gimpitemfactory.[ch]: removed all gimp_menu_item_*()
      	hacks. We have a GimpItemFactory available in most cases we used
      	to call this functions, and can use gimp_item_factors_from_path()
      	in all other cases. The item factory stuff needs more work
      	anyway...
      
      	* app/app_procs.c
      	* app/gimphelp.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.[ch]
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/paths-dialog.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly (includes,
      	renamed functions and gimp_menu_item_*() removal).
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/help_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      47c5473e
  8. 12 Mar, 2002 1 commit
    • Michael Natterer's avatar
      app/gimprc.[ch] app/gui/preferences-dialog.c · 17d655c1
      Michael Natterer authored
      2002-03-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimprc.[ch]
      	* app/gui/preferences-dialog.c
      	* app/paint/gimppaintoptions.[ch]
      	* app/tools/paint_options.[ch]
      	* app/tools/tool_manager.[ch]: removed the "global_paint_options"
      	gimprc option because it doesn't quite fit the new dockable dialog
      	architecture.
      
      	* app/gui/brush-select.[ch]
      	* app/gui/gradient-select.[ch]
      	* app/gui/palette-select.[ch]
      	* app/gui/pattern-select.[ch]: removed the "Global Brush/Pattern/...
      	Selection" part of them. They are now only used for temp popup
      	selections and the PDB. *Lots* of cleanup.
      
      	* app/gui/convert-dialog.c
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/palette-import-dialog.c
      	* app/plug-in/plug-in.c: changed accordingly.
      
      	Cleaned up the palette and other data PDB stuff:
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl: added "palette_select" and "palettes".
      
      	* tools/pdbgen/pdb/palette_select.pdb: new file. Makes the palette
      	selection PDB controllable.
      
      	* tools/pdbgen/pdb/palettes.pdb: new file cut out of palette.pdb
      	because of API symmetry with brushes, patterns, ...
      
      	* tools/pdbgen/pdb/palette.pdb: removed from here.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb: lots of cleanup.
      
      	Autogenerated stuff:
      
      	* app/pdb/Makefile.am
      	* app/pdb/palette_select_cmds.c
      	* app/pdb/palettes_cmds.c: new files.
      
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/gradient_select_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/pattern_select_cmds.c
      	* app/pdb/patterns_cmds.c: regenerated.
      
      	* libgimp/Makefile.am
      	* libgimp/gimp_pdb.h
      	* libgimp/gimppalettes_pdb.[ch]
      	* libgimp/gimppaletteselect_pdb.[ch]: new files.
      
      	* libgimp/gimpgradientselect_pdb.[ch]
      	* libgimp/gimppalette_pdb.[ch]
      	* libgimp/gimppatterns_pdb.c: regenerated.
      
      	* devel-docs/libgimp/tmpl/gimpgradients.sgml
      	* devel-docs/libgimp/tmpl/gimppalette.sgml: regenerated.
      17d655c1
  9. 25 Feb, 2002 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new base class for something · cdf2a90b
      Michael Natterer authored
      2002-02-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpitem.[ch]: new base class for something which is a
      	child of an image, has a PDB ID, a tattoo, parasites and emits
      	a "removed" signal.
      
      	* app/core/gimpdrawable.[ch]
      	* app/vectors/gimpvectors.[ch]: derive from GimpItem. Removed
      	lots of stuff from GimpDrawable.
      
      	* app/core/gimp.[ch]: changed gimp->drawable_table and
      	gimp->next_drawable_ID to gimp->item_table and gimp->next_item_id.
      
      	* app/undo.[ch]: s/undo_push_drawable_parasite/undo_push_item_parasite/,
      	minor cleanups.
      
      	* app/core/gimplayer.[ch]: changed gimp_layer_new_from_tiles() and
      	gimp_layer_new_from_drawable() to take the "dest_gimage" as
      	second, not first parameter.
      
      	* app/image_map.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-histogram.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-pick-color.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-save.c
      	* app/gui/channels-commands.c
      	* app/gui/file-save-dialog.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/paths-dialog.c
      	* app/gui/toolbox.c
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/plug-in/plug-in.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimppainttool.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/widgets/gimpdrawablepreview.c: changed accordingly.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpitemlistview.[ch]: new widget implementing most
      	of the stuff formerly done by GimpDrawableListView.
      
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimpdrawablelistview.[ch]
      	* app/widgets/gimplayerlistview.c: changed accordingly.
      
      	* app/widgets/gimpdnd.[ch]: added a vectors DND type.
      
      	* app/gui/menus.c
      	* app/gui/dialogs.c
      	* app/gui/dialogs-constructors.[ch]: added a vectors dialog and
      	a vectors item_factory.
      
      	* app/gui/Makefile.am
      	* app/gui/vectors-commands.[ch]: new files implementing the
      	callbacks for the new vectors dialog and item_factory.
      
      	* app/pdb/pdb_glue.h: some more ugly hacks to keep intermediate
      	perl code working...
      
      	* tools/pdbgen/pdb.pl: added a vectors type, use GimpItem for all
      	ID lookups.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/misc_tools.pdb
      	* tools/pdbgen/pdb/parasite.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: misc changes according to
      	stuff above.
      
      	* 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/misc_tools_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      cdf2a90b
  10. 22 Feb, 2002 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed... · ac0c4af0
      Michael Natterer authored
      2002-02-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimpprogress.[ch]: removed...
      
      	* app/display/Makefile.am
      	* app/display/gimpprogress.[ch]: ...and added here. Prefixed
      	everything with "gimp_".
      
      	* app/gui/image-commands.c
      	* app/plug-in/plug-in.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimptransformtool.c: changed accordingly.
      ac0c4af0
  11. 18 Feb, 2002 1 commit
    • Sven Neumann's avatar
      app/app_procs.c app/base/temp-buf.c app/core/gimpmodules.c · fe2c9e8b
      Sven Neumann authored
      2002-02-18  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.c
      	* app/base/temp-buf.c
      	* app/core/gimpmodules.c
      	* app/plug-in/plug-in.c
      	* libgimpbase/gimpenv.c
      	* libgimpwidgets/gimpfileselection.c
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/FractalExplorer/FractalExplorer.c
      	* plug-ins/flame/flame.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gflare/gflare.c
      	* plug-ins/gimpressionist/gimpressionist.[ch]: use g_file_test()
      	instead of stat() whereever possible. Improves code readability.
      fe2c9e8b
  12. 12 Feb, 2002 2 commits
  13. 11 Feb, 2002 1 commit
    • Michael Natterer's avatar
      small hack that strips the ellipses from the "Repeat" and "Re-Show" menu · 12ef22e0
      Michael Natterer authored
      2002-02-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in.c: small hack that strips the ellipses
      	from the "Repeat" and "Re-Show" menu entries.
      
      	* plug-ins/mosaic/mosaic.c: register under "Filters/Distorts", not
      	"Filters/Render" because this plug-in changes the image and
      	doesn't render something from scratch.
      12ef22e0
  14. 28 Dec, 2001 1 commit
    • Sven Neumann's avatar
      write comment to top of gimprc. · 64424f6c
      Sven Neumann authored
      2001-12-28  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimprc.c: write comment to top of gimprc.
      
      	* app/core/gimpscanconvert.c: removed redundant CLAMP statements.
      
      	* app/plug-in/plug-in-rc.[ch]
      	* app/plug-in/plug-in.c: rewrote pluginrc scanner and moved the code
      	that writes the pluginrc into plug-in-rc.c.
      64424f6c
  15. 27 Dec, 2001 2 commits
    • Sven Neumann's avatar
      app/plug-in/Makefile.am new files that parse pluginrc using a GScanner. · 97824930
      Sven Neumann authored
      2001-12-28  Sven Neumann  <sven@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-rc.[ch]: new files that parse pluginrc using a
      	GScanner.
      
      	* app/plug-in/plug-in.[ch]: made PlugInDef public again so we can use
      	it from the pluginrc parser.
      
      	* tools/pdbgen/pdb/procedural_db.pdb: made regex string matching
      	robust against NULL pointers.
      
      	* app/pdb/procedural_db_cmds.c: regenerated.
      
      	* app/gimprc.c: removed old pluginrc parser.
      97824930
    • Sven Neumann's avatar
      INSTALL NEWS require latest versions of glib, gtk+ and friends. Bumped our · 7e309cc1
      Sven Neumann authored
      2001-12-27  Sven Neumann  <sven@gimp.org>
      
      	* INSTALL
      	* NEWS
      	* configure.in: require latest versions of glib, gtk+ and friends.
      	Bumped our version number to 1.3.2.
      
      	* app/plug-in/plug-in.c (plug_in_params_destroy, plug_in_args_destroy):
      	moved condition out of the switch statement, simplified code.
      
      	* app/plug-in/plug-in-proc.[ch]: moved plug_in_proc_def_destroy() here.
      
      	* app/gimprc.c: use plug_in_proc_def_destroy().
      
      	* app/pdb/procedural_db.c: use g_string_hash() instead of our own hash
      	function.
      
      	* app/xcf/xcf.c: initialize all fields of the PlugInProcDef struct.
      7e309cc1
  16. 19 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/plug-in/Makefile.am new files. Started to split plug-in.c into smaller · 774caf0e
      Sven Neumann authored
      2001-12-19  Sven Neumann  <sven@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in-proc/plug-in-proc.[ch]: new files. Started to split
      	plug-in.c into smaller pieces.
      
      	* app/plug-in/plug-in-types.h: namespacified GimpRunModeType enum and
      	renamed it to GimpRunMode.
      
      	* app/plug-in/plug-in.[ch]
      	* app/gimphelp.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/file/file-utils.c
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/paths-dialog.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
      
      	* app/pdb/fileops_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* libgimp/gimpfileops_pdb.[ch]
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpcompat.h: added gimpcompat.h mostly as a place to
      	document plug-in API changes.
      
      	* plug-ins/*: changed all occurences of GimpRunModeType to GimpRunMode.
      774caf0e
  17. 14 Dec, 2001 1 commit
    • Michael Natterer's avatar
      added GIMP_IMAGE_TYPE_IS_[RGB|GRAY|INDEXED]() and · 37269769
      Michael Natterer authored
      2001-12-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.[ch]: added
      	GIMP_IMAGE_TYPE_IS_[RGB|GRAY|INDEXED]() and
      	GIMP_IMAGE_TYPE_BASE_TYPE() macros.
      
      	* app/plug-in/plug-in.[ch]: new enum PlugInImageType instead of
      	multiple #defines.
      
      	* app/gui/file-dialog-utils.[ch]: file_dialog_update_menus(): take
      	a GimpImageType instead of the PlugInImageType.
      
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimplayermask.c
      	* app/core/gimppalette-import.c
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/file-save-dialog.c
      	* app/gui/toolbox.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/image.pdb: use the new macros, cleanups like
      	storing GimpImageType in GimpImageType variables, not just gint.
      
      	* app/pdb/convert_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      
      	* app/widgets/gimpdialogfactory.c: save the state of the "Auto"
      	button in sessionrc.
      37269769
  18. 11 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/base/base-enums.h moved all remaining enums to base-enums.h · 03a6c044
      Sven Neumann authored
      2001-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/base/base-enums.h
      	* app/base/base-types.h: moved all remaining enums to base-enums.h
      
      	* app/core/core-enums.h
      	* app/core/core-types.h: moved GimpImageType to core-enums.h and
      	changed the values from RGB_GIMAGE to GIMP_RGB_IMAGE and the like.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/core/gimppalette-import.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/file-save-dialog.c
      	* app/gui/toolbox.c
      	* app/plug-in/plug-in.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpdodgeburntool.c: changed accordingly.
      
      	* tools/pdbgen/Makefile.am: no need to parse app/base/base-types.h
      	any longer.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* tools/pdbgen/enums.pl: regenerated.
      03a6c044
  19. 08 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/core/Makefile.am new file that holds enums that are registered with · a65e1a39
      Sven Neumann authored
      2001-12-08  Sven Neumann  <sven@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-enums.h: new file that holds enums that are registered
      	with the type system and is used to generate core-enums.c.
      
      	* app/core/core-types.h: include core-enums.h
      
      	* app/base/base-types.h: namespace cleanup. Prefix all enumeration
      	types with Gimp and their values with GIMP. Moved GimpLayerModeEffects
      	enum ...
      
      	* app/base/base-enums.h: ... here.
      
      	* app/image_map.c
      	* app/base/temp-buf.c
      	* app/core/gimpcontext.[ch]
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/brush-select.c
      	* app/gui/layers-commands.c
      	* app/gui/preferences-dialog.c
      	* app/gui/toolbox.c
      	* app/paint-funcs/paint-funcs.[ch]
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimptexttool.c
      	* app/tools/paint_options.c
      	* app/widgets/gimplayerlistview.c
      	* app/widgets/gimpwidgets-constructors.[ch]
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/tools.pdb: changed accordingly.
      
      	* libgimpbase/gimpbasetypes.h: no need to chop GIMP prefix off the
      	enums any longer.
      
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/gimprc.c: removed code to parse for "plug_in" keyword which was
      	left over from some very early gimp days.
      
      	* app/plug-in/plug-in.[ch]: removed now unused function plug_in_add().
      a65e1a39
  20. 02 Dec, 2001 1 commit
    • Sven Neumann's avatar
      use g_tree_foreach() instead of deprecated g_tree_traverse(). · 83468fca
      Sven Neumann authored
      2001-12-02  Sven Neumann  <sven@gimp.org>
      
      	* app/plug-in/plug-in.c: use g_tree_foreach() instead of deprecated
      	g_tree_traverse().
      
      	* app/undo_history.c
      	* app/display/gimpdisplayshell-selection.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/about-dialog.c
      	* app/gui/color-area.c
      	* app/gui/color-select.c
      	* app/gui/gradient-editor.c
      	* app/gui/gui.c
      	* app/gui/paths-dialog.c
      	* app/gui/user-install-dialog.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpinktool.c
      	* app/widgets/gimpcursor.c
      	* app/widgets/gimpnavigationpreview.c
      	* libgimpwidgets/gimpchainbutton.c
      	* libgimpwidgets/gimppixmap.c
      	* plug-ins/common/animationplay.c
      	* plug-ins/common/uniteditor.c
      	* plug-ins/ifscompose/ifscompose.c: s/gdk_gc_unref/g_object_unref/,
      	s/gdk_drawable_unref/g_object_unref/
      83468fca
  21. 01 Dec, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed... · 77863d88
      Michael Natterer authored
      2001-11-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/plug_in.[ch]: removed...
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-types.h
      	* app/plug-in/plug-in.[ch]: ...and added here.
      
      	* app/appenv.h: removed StackTraceMode and MessageHandlerType...
      
      	* libgimpbase/gimpbasetypes.h: ...and added them here.
      
      	* tools/pdbgen/Makefile.am: don't scan "app/apptypes.h" for enums.
      
      	* tools/pdbgen/enumcode.pl: added a general check to prevent
      	enums which are defined in libgimp* from being written to
      	"libgimp/gimpenums.c".
      
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/core/core-types.h: include "pdb/pdb-types.h" so including
      	"core/core-types.h" gets the whole core type space.
      
      	* app/core/gimp.[ch]: added a "stack_trace_mode" parameter to the
      	constructor and store it in the Gimp struct because the value is
      	also passed to plug-ins and nobody should include "appenv.h".
      
      	* app/gimprc.[ch]: pass the alternate_system_gimprc and
      	alternate_gimprc filenames from the command line to gimprc_prase()
      	so we don't need to include "appenv.h".
      
      	* app/batch.[ch]: pass the "batch_cmds" as parameter, don't
      	include "append.h".
      
      	* app/app_procs.c: pass more parameters around.
      
      	* app/devices.c
      	* app/errors.c
      	* app/gimphelp.c
      	* app/main.c
      	* app/core/gimpgradient.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/file/file-utils.c
      	* app/gui/commands.c
      	* app/gui/error-console-dialog.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/paths-dialog.c
      	* app/gui/user-install-dialog.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/xinput_airbrush.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly:
      
      	- changed "plug-in.h" include where needed.
      	- don't call gimp_fatal_error() directly, it's called via the log
      	  handler when calling g_error().
      	- don't incude "errors.h" except from main.c.
      	- changed stack_trace and message_handler enum names.
      	- get "stack_trace_mode" from Gimp.
      	- removed many inclusions of "appenv.h".
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/help_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db.c: regenerated.
      77863d88
  22. 28 Nov, 2001 1 commit
    • Michael Natterer's avatar
      include the new "paint-funcs/paint-funcs-types.h". · 6cf34005
      Michael Natterer authored
      2001-11-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/base-types.h: include the new
      	"paint-funcs/paint-funcs-types.h".
      
      	* app/paint-funcs/Makefile.am
      	* app/paint-funcs/paint-funcs-types.h: new file. Includes
      	"base/base-types.h".
      
      	* app/paint-funcs/paint-funcs.[ch]: removed the enums here,
      	include "paint-funcs-types.h".
      
      	* app/widgets/widgets-types.h: include "display/display-types.h"
      
      	* app/display/display-types.h: include "widgets/widgets-types.h".
      
      	* app/tools/tools-types.h: include "display/display-types.h"
      
      	* app/gui/gui-types.h: include "tools/tools-types.h".
      
      	The order of namespaces/dependencies should be (but is not):
      
      	(base, paint-funcs) -> (core, file, xcf, pdb) ->
      	(widgets, display) -> tools -> gui
      
      	* app/path.c: include "tools/tools-types.h".
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-guides.[ch]
      	* app/core/gimpimage-merge.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-scale.[ch]: new files.
      
      	* app/core/gimpimage.[ch]: removed the stuff which is in the new
      	files. Reordered all functions in both the .h and .c files,
      	commented the groups of functions.
      
      	* app/core/gimpcontainer.c: create the handler_id using a counter,
      	not the address of a pointer, because the address *may* be the
      	same twice, added debugging output.
      
      	* app/core/gimpviewable.[ch]: added primitive support for getting
      	a preview GdkPixbuf.
      
      	* app/nav_window.c
      	* app/undo.c
      	* app/undo_history.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.[ch]
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/palette-import-dialog.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/widgets/gimpcontainerview-utils.c
      	* app/xcf/xcf-load.c: changed accordingly, some cleanup.
      
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/image.pdb: changed accordingly, reordered functions.
      
      	* app/plug_in.c: set the labels of the "Repeat" and "Re-Show" menu
      	items to the name of the last plug-in (Fixes #50986).
      
      	* app/display/gimpdisplayshell.[ch]: set the labels of "Undo" and
      	"Redo" to the resp. undo names. Much simplified the WM icon stuff
      	by removing most code and using gimp_viewable_get_new_preview_pixbuf().
      
      	* app/widgets/gimpbrushfactoryview.c: forgot to assign the GQuark
      	returned by gimp_container_add_handler().
      
      	* app/pdb/guides_cmds.c
      	* app/pdb/image_cmds.c
      	* libgimp/gimpimage_pdb.[ch]: regenerated.
      6cf34005
  23. 27 Nov, 2001 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am put the whole generic stuff from gui/menus.[ch] · 653f6999
      Michael Natterer authored
      2001-11-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimpitemfactory.[ch]: put the whole generic stuff
      	from gui/menus.[ch] here (where generic == less_evil because it at
      	least does not depend on particular menu entries).
      
      	* app/gui/menus.[ch]: removed the stuff here. Only the global menu
      	definitions and bad hacks to adjust them to our needs left.
      	Removed all menus_get_foobar_factory() functions because we can
      	use gtk_item_factory_from_path("<FooBar>") all over the place.
      
      	* app/plug_in.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/brushes-commands.c
      	* app/gui/buffers-commands.c
      	* app/gui/channels-commands.c
      	* app/gui/dialogs.c
      	* app/gui/documents-commands.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/gradients-commands.c
      	* app/gui/gui.c
      	* app/gui/layers-commands.c
      	* app/gui/palettes-commands.c
      	* app/gui/paths-dialog.c
      	* app/gui/patterns-commands.c
      	* app/gui/toolbox.c: changed accordingly. None of these files
      	except gui/gui.c includes gui/menus.h any more.
      653f6999
  24. 24 Nov, 2001 1 commit
  25. 17 Nov, 2001 1 commit
    • Michael Natterer's avatar
      Made --no-interface not calling gtk_init() (and thus not contacting the X · 14098dc0
      Michael Natterer authored
      2001-11-17  Michael Natterer  <mitch@gimp.org>
      
      	Made --no-interface not calling gtk_init() (and thus not
      	contacting the X server) any more. (Fixes #58961).
      
      	* app/core/gimp.[ch]: added two new function pointers
      	"gui_main_loop_func" and "gui_main_loop_quit_func" and an own
      	stack of GMainLoops which is used if they are not set.
      
      	* app/gui/gui.[ch]: added main loop functions here and set them as
      	pointers in the Gimp instance. Separated gui_libs_init() from
      	gui_themes_init() so it can be used as replacement for gtk_init()
      	and be called before command line parsing.
      
      	* app/main.c: check for "--no-interface" before initializing
      	anything. Added a "--g-fatal-warnings" option (cut'n'paste from
      	gtkmain.c). Added a check for "--" (end of options).
      
      	* app/app_procs.c: call the new gimp_main_loop() functions,
      	call gui_themes_init().
      
      	* app/devices.[ch]: reduce usage of "the_gimp" by passing "Gimp"
      	pointers to some functions.
      
      	* app/plug_in.c: some ugly checks for the_gimp->no_interface which
      	will go away once this file is core/ui chopped. Call
      	gimp_main_loop() stuff instead of gtk_main().
      
      	* app/core/gimptoolinfo.c: allow passing a NUL GdkPixbuf pointer.
      14098dc0
  26. 10 Nov, 2001 1 commit
    • Michael Natterer's avatar
      app/display/gimpdisplay-marching-ants.h removed... · 8dac8949
      Michael Natterer authored
      2001-11-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplay-marching-ants.h
      	* app/display/gimpdisplay-selection.[ch]: removed...
      
      	* app/display/gimpdisplayshell-marching-ants.h
      	* app/display/gimpdisplayshell-selection.[ch]: ...new names.
      
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell.[ch]: moved the Selection stuff
      	from GimpDisplay to GimpDisplayShell.
      
      	Renamed all functions which will stay in GimpDisplay from
      	gdisplay_foo() to gimp_display_foo(). Added gimp_display_get_ID(),
      	cleaned up the idle renderer.
      
      	* app/image_map.c
      	* app/plug_in.c
      	* app/display/Makefile.am
      	* app/display/gimpdisplay-foreach.[ch]
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/gui/gui.c
      	* app/gui/view-commands.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* tools/pdbgen/pdb.pl: changed accordingly, cleanup.
      
      	* app/pdb/display_cmds.c: regenerated.
      8dac8949
  27. 09 Nov, 2001 1 commit
    • Michael Natterer's avatar
      removed the "palette" PDB type again. Incremented protocol version. · a109f0ff
      Michael Natterer authored
      2001-11-09  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpbase/gimpprotocol.[ch]: removed the "palette" PDB type
      	again. Incremented protocol version.
      
      	* app/plug_in.c
      	* app/pdb/procedural_db.c
      	* libgimp/gimp.c
      	* libgimpbase/gimpbasetypes.h: changed accordingly.
      
      	* app/pdb/procedural_db_cmds.c
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      a109f0ff
  28. 28 Oct, 2001 1 commit
    • Nate Summers's avatar
      app/plug_in.c libgimp/gimp.c libgimpbase/gimpbasetypes.h · 6ffaf731
      Nate Summers authored
      
       	* app/plug_in.c
       	* libgimp/gimp.c
      	* libgimpbase/gimpbasetypes.h
       	* libgimpbase/gimpprotocol.c
       	* libgimpbase/gimpprotocol.h
       	* tools/pdbgen/pdb/palette.pdb: added preliminary pdb support to
       	manipulate palettes.  Incremented plugin interface version number.
      
       	* app/pdb/internal_procs.c
       	* app/pdb/palette_cmds.c
       	* app/pdb/procedural_db.c
      	* app/pdb/procedural_db_cmds.c
      	* libgimp/gimppalette_pdb.c
      	* libgimp/gimppalette_pdb.h
       	* plug-ins/script-fu/script-fu-constants.c
       	* tools/pdbgen/enums.pl: regenerated
      6ffaf731
  29. 24 Oct, 2001 1 commit
    • Michael Natterer's avatar
      app/file-open.c app/file-utils.c app/gimprc.c app/plug_in.c · 840a9700
      Michael Natterer authored
      2001-10-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/file-open.c
      	* app/file-utils.c
      	* app/gimprc.c
      	* app/plug_in.c
      	* app/user_install.c
      	* app/base/base.c
      	* app/base/temp-buf.c
      	* app/core/gimpdata.c
      	* app/core/gimpdatafiles.c
      	* app/core/gimpimagefile.c
      	* app/gui/about-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/splash.c
      	* app/gui/tips-dialog.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimplevelstool.c
      	* libgimpbase/gimpenv.c
      	* plug-ins/FractalExplorer/FractalExplorer.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gflare/gflare.c
      	* tools/pdbgen/pdb/fileops.pdb: use g_build_filename() all over
      	the place instead of g_strconcat() and friends together with
      	G_DIR_SEPARATOR_S. Also removed all attempts to manually detect
      	double dir separators. LibGimpBase's searchpath utility functions
      	don't append a G_DIR_SEPARATOR_S to all paths any more.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      840a9700
  30. 19 Oct, 2001 1 commit
    • Michael Natterer's avatar
      link the app in a different order as some init functions are called from · cc83594b
      Michael Natterer authored
      2001-10-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am: link the app in a different order as some init
      	functions are called from core/gimp.c instead of app_procs.c now.
      
      	* app/app_procs.[ch]: made app_init_update_status() private and
      	pass it as callback to various init functions.
      
      	* app/plug_in.[ch]: plug_in_init() take "gimp" and "status_callback"
      	parameters.
      
      	* app/undo.c: use "gimage->gimp" instead of "the_gimp", don't
      	include "app_procs.h".
      
      	* app/core/core-types.h: added "GimpInitStatusFunc" typedef.
      
      	* app/core/gimp.[ch]: gimp_initialize() and gimp_restore() now
      	take a "status_callback" as parameter. Don't include "app_procs.h".
      
      	* app/core/gimpmodules.c: putting the modules in a strong
      	container was a bad idea because it may be impossible to finalize
      	a GimpModuleInfo object belonging to a stalled module.
      
      	* app/gui/color-area.c: use G_N_ELEMENTS().
      
      	* app/gui/session.c: don't call app_init_update_status() and don't
      	include "app_procs.h" because this happens after the splash is
      	hidden.
      
      	* tools/pdbgen/app.pl
      	* app/pdb/internal_procs.[ch]: pass a "status_callback" to
      	internal_procs_init(), don't include "app_procs.h".
      
      	* plug-ins/Makefile.am: build gfig, gimpressionist and imagemap
      	again.
      
      	* plug-ins/MapObject/mapobject_preview.c
      	* plug-ins/MapObject/mapobject_ui.c: s/gdk_image_unref/g_object_unref/
      
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gimpressionist/brush.c
      	* plug-ins/gimpressionist/gimpressionist.c
      	* plug-ins/gimpressionist/ppmtool.[ch]
      	* plug-ins/gimpressionist/presets.c
      	* plug-ins/imagemap/imap_browse.[ch]
      	* plug-ins/imagemap/imap_csim.y
      	* plug-ins/imagemap/imap_edit_area_info.c
      	* plug-ins/imagemap/imap_file.c
      	* plug-ins/imagemap/imap_main.c
      	* plug-ins/imagemap/imap_menu.c
      	* plug-ins/imagemap/imap_polygon.c
      	* plug-ins/imagemap/imap_popup.c
      	* plug-ins/imagemap/imap_preferences.c
      	* plug-ins/imagemap/imap_taglist.c
      	* plug-ins/imagemap/imap_tools.c: ported to current GLib/Gtk+.
      
      	* plug-ins/gap/gap_arr_dialog.c
      	* plug-ins/gap/gap_decode_xanim.c
      	* plug-ins/gap/gap_filter_foreach.c
      	* plug-ins/gap/gap_filter_main.c
      	* plug-ins/gap/gap_frontends_main.c
      	* plug-ins/gap/gap_lib.c
      	* plug-ins/gap/gap_main.c
      	* plug-ins/gap/gap_mod_layer.c
      	* plug-ins/gap/gap_mov_dialog.c
      	* plug-ins/gap/gap_navigator_dialog.c
      	* plug-ins/gap/resize.c: half-way fixed this one too but I'm not
      	willing to fix tons of duplicated and deprecated app/ code...
      cc83594b
  31. 17 Oct, 2001 1 commit
    • Michael Natterer's avatar
      app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ · 18dd0728
      Michael Natterer authored
      2001-10-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimpprogress.[ch]
      	* app/undo.c: s/GDisplay/GimpDisplay/
      
      	* app/plug_in.[ch]: removed unused boolean "destroy" field of
      	the PlugIn struct.
      
      	* app/core/gimpedit.c: don't include "app_procs.h"
      
      	* app/display/gimpdisplay-callbacks.c: moved the "grab_abd_scroll"
      	stuff from gimpdisplay-scroll.* here (less complicated and easier
      	to cleanup...)
      
      	* app/display/gimpdisplay-scroll.[ch]: removed here.
      
      	* app/display/gimpdisplay-render.[ch]
      	* app/display/gimpdisplay-selection.[ch]
      	* app/display/gimpdisplayshell.c: s/GDisplay/GimpDisplay/g
      
      	* app/display/gimpdisplay.[ch]: ditto, removed gdisplay_active()
      	which was just a wrapper around
      	"gimp_context_get_display (gimp_get_user_context (the_gimp))"
      	(which is more to type but makes the use of the global
      	"the_gimp" variable more obvious).
      
      	* app/gui/color-area.h
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.h
      	* app/gui/paths-dialog.h
      	* app/gui/select-commands.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/tools-commands.c
      	* app/gui/view-commands.c: s/GDisplay/GimpDisplay/, gdisplay_active()
      	removal, include "app_procs.h" for "the_gimp".
      
      	* app/tools/gimpbezierselecttool.h
      	* app/tools/gimpbrightnesscontrasttool.[ch]
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpcolorbalancetool.[ch]
      	* app/tools/gimpcurvestool.[ch]
      	* app/tools/gimpeditselectiontool.h
      	* app/tools/gimphistogramtool.[ch]
      	* app/tools/gimphuesaturationtool.[ch]
      	* app/tools/gimplevelstool.[ch]
      	* app/tools/gimpmovetool.h
      	* app/tools/gimpperspectivetool.h
      	* app/tools/gimpposterizetool.[ch]
      	* app/tools/gimprotatetool.h
      	* app/tools/gimpscaletool.h
      	* app/tools/gimpsheartool.h
      	* app/tools/gimptexttool.h
      	* app/tools/gimpthresholdtool.[ch]
      	* app/tools/gimptool.[ch]
      	* app/tools/gimptransformtool.h
      	* app/tools/tool_manager.[ch]: lots of s/GDisplay/GimpDisplay/, made
      	all *_dialog_hide() functions private, cleanup.
      
      	* app/widgets/*: removed GtkType and gtk_type_* stuff entirely and
      	use GObject functions, removed lots of empty "destroy" methods and
      	use more type checking class cast macros instead of casting
      	directly.
      
      	* app/widgets/gimpcontainermenu.c: fixed item insert order.
      
      	* app/widgets/gimphistogramview.[ch]: cleaned up and renamed all
      	functions.
      
      	* app/widgets/gimpwidgets-utils.[ch]: removed gimp_dialog_hide() as
      	Gtk+ does the right thing (TM) now.
      
      	* tools/pdbgen/pdb/color.pdb: implemented "histogram" without
      	digging into tools/ and widgets/ (needs to be done for all
      	color PDB functions).
      
      	* tools/pdbgen/pdb/gimprc.pdb: no need to use "the_gimp" in a PDB
      	function as a "Gimp" pointer is passed to them all.
      
      	* tools/pdbgen/pdb/image.pdb: don't include "app_procs.h"
      
      	* app/pdb/color_cmds.c
      	* app/pdb/gimprc_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      
      	* app/pdb/procedural_db.c: don't include "app_procs.h"
      18dd0728
  32. 26 Sep, 2001 1 commit
    • Sven Neumann's avatar
      we require glib-1.3.9, pango-0.20, atk-0.5 and gtk+-1.3.9 available from · d4168a43
      Sven Neumann authored
      2001-09-26  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: we require glib-1.3.9, pango-0.20, atk-0.5 and
      	gtk+-1.3.9 available from ftp://ftp.gtk.org/pub/gtk/v1.3/.
      
      	* HACKING: mention the fact that we will try to keep our source
      	compileable against the latest development releases of gtk+ and
      	friends.
      
      	* app/plug_in.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* plug-ins/common/csource.c
      	* plug-ins/common/wmf.c: follow glib API changes.
      
      	* plug-ins/common/mail.c: fixed a warning.
      d4168a43
  33. 25 Sep, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] · f235eabb
      Michael Natterer authored
      2001-09-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/disp_callbacks.[ch]
      	* app/gdisplay.[ch]
      	* app/gdisplay_ops.[ch]
      	* app/gximage.[ch]
      	* app/image_render.[ch]
      	* app/interface.[ch]
      	* app/marching_ants.h
      	* app/scale.[ch]
      	* app/scroll.[ch]
      	* app/selection.[ch]: removed.
      
      	* app/display/Makefile.am
      	* app/display/display-types.h
      	* app/display/gimpdisplay-callbacks.[ch]
      	* app/display/gimpdisplay-marching-ants.h
      	* app/display/gimpdisplay-ops.[ch]
      	* app/display/gimpdisplay-render.[ch]
      	* app/display/gimpdisplay-scale.[ch]
      	* app/display/gimpdisplay-scroll.[ch]
      	* app/display/gimpdisplay-selection.[ch]
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell.[ch]
      	* app/display/gximage.[ch]: added here.
      
      	* app/[many files]
      	* app/gui/[many files]
      	* app/tools/*
      	* app/widgets/[many files]: changed accordingly. Still very
      	incomplete separation of the display stuff but it at least
      	compiles.
      
      	* tools/pdbgen/pdb.pl:
      	* tools/pdbgen/pdb/display.pdb: s/GDisplay/GimpDisplay/,
      	s/"gdisplay.h"/"display/gimpdisplay.h"/.
      
      	* app/pdb/display_cmds.c: regenerated.
      f235eabb
  34. 19 Sep, 2001 1 commit
    • Sven Neumann's avatar
      require GTK+-1.3.8 and PangoFT2-0.19. · 334911e2
      Sven Neumann authored
      2001-09-19  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: require GTK+-1.3.8 and PangoFT2-0.19.
      
      	* app/devices.c:
      	* app/tools/gimppainttool.c: removed intermediate hacks that are no
      	longer needed with the new GTK+ release.
      
      	* app/plug_in.c
      	* libgimp/gimp.[ch]
      	* libgimp/gimpui.c
      	* libgimpbase/gimpprotocol.[ch]: removed use_xshm and color_cube
      	variables and accessor functions.
      
      	* app/errors.c: use gtk_exit() instead of gdk_exit().
      
      	* app/gdisplay.c: use Pango API to determine cursor label width. This
      	does not work correctly, but at least it compiles...
      
      	* app/gui/splash.c: follow Pango API changes.
      
      	* app/tools/gimpcurvestool.[ch]: use PangoLayouts to draw text.
      
      	* app/tools/gimptexttool.c: follow Pango API changes.
      
      	* app/widgets/gimpfontselection-dialog.c
      	* app/widgets/gimpfontselection.c: mostly rewritten following the
      	changes in GtkFontSelection. This is unusable at the moment and
      	crashes, but at least it compiles again...
      
      	* plug-ins/Makefile.am: temporarily disabled build of ifscompose since
      	it does not compile any longer after the latest GDK cleanups.
      
      	* plug-ins/common/nlfilt.c: gimp_color_cube() is obsolete.
      334911e2
  35. 03 Sep, 2001 2 commits
    • Michael Natterer's avatar
      added -DGDK_DISABLE_DEPRECATED. · 1ccb029e
      Michael Natterer authored
      2001-09-02  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in: added -DGDK_DISABLE_DEPRECATED.
      
      	* app/gui/about-dialog.c
      	* plug-ins/common/wmf.c
      	* plug-ins/ifscompose/ifscompose_utils.c: #undef it here (too lazy...)
      
      	* app/colormaps.[ch]
      	* app/gdisplay.c
      	* app/module_db.c
      	* app/plug_in.c
      	* app/gui/brush-editor.c
      	* app/gui/color-notebook.c
      	* app/gui/gradient-select.c
      	* app/gui/palette-select.c
      	* app/gui/paths-dialog.c
      	* app/gui/select-commands.c
      	* app/widgets/gimpdialogfactory.c
      	* app/widgets/gimpdock.c
      	* app/widgets/gimpdockbook.c: replaced deprecated stuff,
      	g_list_free() the return value of gtk_container_get_children().
      
      	* plug-ins/Makefile.am: build gflare again.
      
      	* plug-ins/gflare/asupsample.[ch]: removed because the same function
      	is already in libgimpcolor.
      
      	* plug-ins/gflare/gtkmultioptionmenu.[ch]: removed because Gtk+
      	handles menu_height > screen_height by scrolling now.
      
      	* plug-ins/gflare/Makefile.am
      	* plug-ins/gflare/gflare.c: changed accordingly, cleanups.
      1ccb029e
    • Sven Neumann's avatar
      app/plug_in.c app/core/gimpbrush.c app/core/gimpbrushpipe.c · 083c7c91
      Sven Neumann authored
      2001-09-03  Sven Neumann  <sven@gimp.org>
      
      	* app/plug_in.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpgradient.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c: check strings from data files and plug-in
      	registration for UTF-8 validity. There are probably a lot more places
      	that need these checks.
      
      	* plug-ins/common/gqbist.c: converted PDB texts to UTF-8.
      083c7c91
  36. 30 Aug, 2001 1 commit
    • Michael Natterer's avatar
      app/plug_in.c libgimpbase/gimpwire.c removed GIOChannel · 51f99c32
      Michael Natterer authored
      2001-08-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug_in.c
      	* libgimpbase/gimpwire.c
      	* libgimp/gimp.c: removed GIOChannel "channel->funcs->io_foo()"
      	hacks and use plain g_io_channel_[read|write]_chars(). An
      	additional g_io_channel_set_buffered (channel, FALSE); is needed
      	to make the channels work in binary mode. Fixed misc other stuff
      	in the GIOChannel code.
      
      	* app/tools/gimpdrawtool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpdialogfactory.c
      	* libgimpwidgets/gimpcolorarea.c
      	* libgimp/gimpui.c: replaced some deprecated GDK functions.
      
      	* app/gui/palette-editor.c: block the color_name entry's "changed"
      	signal while setting it. Fixes invalid UTF-8 warnings.
      51f99c32