1. 28 Aug, 2003 1 commit
    • Michael Natterer's avatar
      Completed the new help infrastructure. Needs some polishing but basically · 1f2c75e5
      Michael Natterer authored
      2003-08-28  Michael Natterer  <mitch@gimp.org>
      
      	Completed the new help infrastructure. Needs some polishing but
      	basically works as proposed:
      
      	* tools/pdbgen/pdb/plug_in.pdb: changed gimp_plugin_help_register()
      	to take a "domain_name" (which is the XML namespace) and a
      	"domain_uri" (which is the root of the plug-in's help pages).
      
      	* tools/pdbgen/pdb/help.pdb: changed gimp_help() to take help_id
      	instead of a non-UTF-8 help_path.
      
      	* app/plug-in/plug-in-def.[ch]
      	* app/plug-in/plug-in-proc.[ch]
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-ins.[ch]: remember the plug-ins' help_domain
      	and help_uri instead of just help_path. Changed all plug-in APIs
      	to reflect this change.
      
      	* app/widgets/gimphelp.[ch]: on helpbrowser startup, pass it the
      	whole list of help domains. The actual help request is now made
      	using the browser's temporary procedure.
      
      	* app/core/gimp.h
      	* app/gui/file-open-menu.c
      	* app/gui/file-save-menu.c
      	* app/gui/plug-in-menus.[ch]
      	* app/widgets/gimpitemfactory.c: changed accordingly.
      
      	* app/pdb/help_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* libgimp/gimphelp_pdb.[ch]
      	* libgimp/gimpplugin_pdb.[ch]: regenerated.
      
      	Changed the help broser to load the pages according to the
      	new system:
      
      	- moved the browser window stuff to dialog.[ch]
      	- moved help domain handling to domain.[ch]
      	- added gimp-help.xml parsing to domain.c
      	- tons of cleanup
      
      	* plug-ins/helpbrowser/Makefile.am
      	* plug-ins/helpbrowser/dialog.[ch]
      	* plug-ins/helpbrowser/domain.[ch]: new files.
      	* plug-ins/helpbrowser/helpbrowser.c: chopped.
      1f2c75e5
  2. 26 Aug, 2003 1 commit
    • Michael Natterer's avatar
      Bye bye, "crappy/foo.html": · 86662cd6
      Michael Natterer authored
      2003-08-26  Michael Natterer  <mitch@gimp.org>
      
      	Bye bye, "crappy/foo.html":
      
      	* app/widgets/gimphelp-ids.h: replaced "crappy/foo.html" by
      	"gimp-proper-identifier".
      
      	* app/plug-in/plug-in-proc.[ch] (plug_in_proc_def_get_help_id):
      	added "const gchar *help_path" parameter and return a help ID
      	ready for attaching to a menu item.
      
      	The help ID is no longer constructed from the plug-in's executable
      	name but from the *procedure* name with '_' replaced by '-'. This
      	means we can now have help for each script-fu script and for each
      	of a plug-in's individual procedures.
      
      	* app/gui/plug-in-menus.c: removed even more duplicated wrong code
      	since plug_in_proc_def_get_help_id() is implemented correctly now.
      
      	* app/gui/file-open-menu.c
      	* app/gui/file-save-menu.c: ditto. Reorder the "XCF" menu item
      	before the separator and added GIMP_STOCK_WILBER.
      
      	* app/gui/file-dialog-utils.c: added a mnemonic to the
      	"Determine File Type:" label.
      86662cd6
  3. 25 Aug, 2003 1 commit
    • Michael Natterer's avatar
      removed the "locale_domain" and "help_path" parameters since the function · dec69db1
      Michael Natterer authored
      2003-08-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-ins.[ch] (plug_ins_temp_proc_def_add): removed
      	the "locale_domain" and "help_path" parameters since the function
      	can figure them by itself.
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_install):
      	changed accordingly.
      
      	* app/plug-in/plug-in-proc.[ch] (plug_in_proc_def_get_help_id):
      	new function which will soon be implemented correctly :-)
      
      	* app/gui/file-open-menu.c (file_open_menu_setup)
      	* app/gui/file-save-menu.c (file_save_menu_setup)
      	* app/gui/plug-in-menus.c (plug_in_menus_create_entry): use it
      	here instead of duplicating broken code.
      dec69db1
  4. 11 Feb, 2003 1 commit
    • Manish Singh's avatar
      added hooks for running plug-ins under a memory debugger. Also, removed · 96e7d31f
      Manish Singh authored
      2003-02-10  Manish Singh  <yosh@gimp.org>
      
              * app/plug-in/plug-in.[ch]: added hooks for running plug-ins under
              a memory debugger. Also, removed the args array from the PlugIn
              structure, replacing with simply a variable for the path to the
              plug-in (and one for a precalculated basename).
      
              * app/plug-in/plug-in-debug.[ch]: helper routines for the above
      
              * app/plug-in/plug-in-message.c
              * app/plug-in/plug-in-proc.c
              * app/plug-in/plug-in-progress.c: reflect new and renamed args members
      
              * app/plug-in/Makefile.am: added plug-in-debug.[ch]
      
              * app/core/core-types.h: added forward declaration for GimpPlugInDebug
      
              * app/core/gimp.[ch]: added structure member for GimpPlugInDebug
      
              * devel-docs/debug-plug-ins.txt: documented new feature
      96e7d31f
  5. 17 Jan, 2003 1 commit
    • Michael Natterer's avatar
      One more Plug-In cleanup, it's still a mess... · a31c0f7d
      Michael Natterer authored
      2003-01-17  Michael Natterer  <mitch@gimp.org>
      
      	One more Plug-In cleanup, it's still a mess...
      
      	* app/plug-in/plug-in-def.[ch]: renamed "gboolean query" field
      	to "needs_query". Added setters for all values. Added
      	g_return_if_fail() stuff to all functions.
      
      	* app/plug-in/plug-in-proc.[ch]: added plug_in_proc_def_new().
      	Removed the "gboolean data_only" parameter from
      	plug_in_proc_def_destroy() and renamed it to
      	plug_in_proc_def_free().  Added plug_in_proc_def_get_progname()
      	which handles GIMP_TEMPORARY procedures correctly.
      
      	* app/plug-in/plug-in-rc.c: use the new stuff above.
      
      	* app/plug-in/plug-in.[ch]: renamed field "user_data" to
      	"plug_in_def" and added a comment that it is valid only during
      	query() and init().  Use the new APIs above. Pass meaningful
      	locale_domains and help_paths when adding temporary procedures
      	(fixes Scrip-Fu menu translation the right way (TM)). Cleanup.
      
      	* app/plug-in/plug-ins.[ch]: renamed plug_ins_def_add() to
      	plug_ins_def_add_from_rc(). Renamed plug_ins_proc_def_[add|remove]()
      	to plug_ins_temp_proc_def_[add|remove](). Added "Gimp" parameters
      	to plug_ins_help_path() and plug_ins_locale_domain(). Removed
      	unused pre-1.2 cruft "gimprc_prof_defs" and plug_ins_image_types().
      	Reverse gimp->load_procs and gimp->save_procs after all procedures
      	are registered. Removed Script-Fu translation hack. Reordered stuff.
      
      	* app/gui/plug-in-menus.[ch]: changed accordingly. Named all
      	public functions plug_in_menus_*(). Fixed Script-Fu menu translation
      	by using plug_in_proc_def_get_progname(). Cleanup.
      
      	* app/gui/file-open-menu.c
      	* app/gui/file-save-menu.c: don't g_slist_reverse() gimp->load_procs
      	and gimp->save_procs here.
      
      	* app/gui/toolbox-menu.c
      	* app/gui/image-menu.c
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.
      
      	* app/pdb/help_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      
      	Unrelated:
      
      	* app/gui/image-menu.c
      	* app/widgets/gimpitemfactory.c: s/"tearoff1"/"tearoff"/g. I don't
      	get why the "1" was there. Minor cleanup.
      a31c0f7d
  6. 27 Dec, 2001 1 commit
    • 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
  7. 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
  8. 17 Aug, 2001 1 commit
    • Michael Natterer's avatar
      added app/display/ and app/plug-in/. Empty for now except for the types · 01b780d6
      Michael Natterer authored
      2001-08-17  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in: added app/display/ and app/plug-in/. Empty for
      	now except for the types files.
      
      	* app/Makefile.am
      	* app/appenums.h
      	* app/apptypes.h: removed.
      
      	* app/display/Makefile.am
      	* app/display/display-types.h
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-types.h
      	* app/gui/Makefile.am
      	* app/gui/gui-types.h
      	* app/pdb/Makefile.am
      	* app/pdb/pdb-types.h: new files for typedefs.
      
      	* app/appenv.h: added MessageHandlerType and StackTraceMode here.
      
      	* app/undo_types.h: moved undo struct typedefs here.
      
      	* app/tools/tools-types.h
      	* app/core/core-types.h: added some enums and Tattoo here
      	(renamed to GimpTattoo).
      
      	* app/gdisplay.h: temp_hack: #include "display/display-types.h"
      
      	* app/gimphelp.c: s/gtk_idle_add/g_idle_add/
      
      	* app/gimprc.c: don't use "gimprc" in token handlers but the
      	passed "val1p" and "val2p".
      
      	* app/image_map.[ch]: cleanup in preparation of making a GObject
      	out of it.
      
      	* app/base/pixel-region.[ch]: no need to pass the
      	PixelRegionIterator around as void pointer.
      
      	* app/core/gimp.[ch]
      	* app/core/gimpcontext.[ch]
      	* app/core/gimptoolinfo.[ch]
      	* app/tools/tool_manager.c
      	* app/widgets/gimpdnd.c: added the standard_tool_info to the Gimp
      	object.
      
      	* app/batch.c
      	* app/file-open.c
      	* app/file-save.c
      	* app/file-utils.c
      	* app/interface.c
      	* app/main.c
      	* app/path.[ch]
      	* app/pathP.h
      	* app/plug_in.h
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer.c
      	* app/gui/color-area.c
      	* app/gui/color-notebook.c
      	* app/gui/colormap-dialog.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/error-console-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradient-select.c
      	* app/gui/indicator-area.c
      	* app/gui/info-dialog.c
      	* app/gui/palette-editor.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c
      	* app/gui/session.c
      	* app/gui/splash.c
      	* app/gui/view-commands.c
      	* app/tools/gimpinktool-blob.c
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimpdockbook.c
      	* app/widgets/gimppreview.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/xcf/xcf.c: changed accordingly: s/Tattoo/GimpTattoo/, include
      	the new types files, include <glib-object.h> instead of >gtk/gtk.h>.
      	Bad hacks to get rid of SELECTION_OFF and friends in core/ (will
      	be replaced ba a signal soon).
      
      	* tools/pdbgen/Makefile.am: changed list of headers scanned for
      	enums accordingly.
      
      	* app/pdb/procedural_db.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb: same fixes as above, added
      	hacks to ensure that all foo-types.h files are included before all
      	other gimp internal includes, include "pdb-types.h" unconditionally.
      
      	* tools/pdbgen/enums.pl
      	* app/pdb/*_cmds.c: regenerated.
      01b780d6
  9. 08 Jul, 2001 1 commit
    • Michael Natterer's avatar
      the active_tool may change in the middle of gdisplay_canvas_events(), so · c5609420
      Michael Natterer authored
      2001-07-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/disp_callbacks.c: the active_tool may change in the middle
      	of gdisplay_canvas_events(), so re-get it after using it for
      	cursor_update.
      
      	* app/base/boundary.c: made some global variables local.
      
      	* app/core/gimpdrawable.c: don't call gimp_drawable_set_visible()
      	in gimp_drawable_configure() because we don't want signal
      	emissions while configuring the drawable.
      
      	* app/gui/Makefile.am
      	* app/gui/brushes-commands.[ch]
      	* app/gui/data-commands.[ch]
      	* app/gui/gradients-commands.[ch]
      	* app/gui/palettes-commands.[ch]
      	* app/gui/patterns-commands.[ch]: new files for new new item
      	factories' callbacks.
      
      	* app/gui/menus.[ch]: added context menus for brushes, patterns, ...
      
      	* app/gui/gradient-editor.c
      	* app/gui/palette-editor.c: removed the "Save as POV", "Import
      	Palette" and "Merge Palattes" buttons as they are item factory
      	callbacks now.
      
      	* app/widgets/gimpbrushfactoryview.[ch]
      	* app/widgets/gimpbufferview.[ch]
      	* app/widgets/gimpcontainereditor.[ch]
      	* app/widgets/gimpdatafactoryview.[ch]: pass a
      	"GimpContainerContextFunc" pointer to all GimpContainerEditor
      	subclasses' constructors. Use the function to show the context
      	menu.
      
      	* app/widgets/gimpcontainergridview.c: dispatch the previews'
      	"context" signal.
      
      	* app/widgets/gimppreview.[ch]: new signal "context" which is
      	emitted on right-click.
      
      	* app/gui/brush-select.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/gradient-select.c
      	* app/gui/layers-commands.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c
      	* app/gui/test-commands.c: changed accordingly.
      c5609420
  10. 20 May, 2001 1 commit
    • Michael Natterer's avatar
      app/base/Makefile.am new files for base_init() and base_exit() which · 711a8e70
      Michael Natterer authored
      2001-05-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/Makefile.am
      	* app/base/base.[ch]: new files for base_init() and base_exit()
      	which initialize/shutdown the paint_funcs and the tile_cache.
      
      	* app/app_procs.c: removed the stuff here.
      
      	* app/widgets/gimpchannellistitem.c: commented out unused code.
      711a8e70
  11. 21 May, 2000 1 commit
    • Michael Natterer's avatar
      These changes enable help support for 3rd party plug-ins which install · 9c6b0b0c
      Michael Natterer authored
      2000-05-21  Michael Natterer  <mitch@gimp.org>
      
      	These changes enable help support for 3rd party plug-ins which
      	install their help files outside GIMP's main help dir.
      
      	Instead of calling gimp_help(), gimp_plugin_help_func() etc.,
      	all help callbacks now have to call gimp_standard_help_func()
      	which has different implementations in the app and in libgimp.
      
      	There is a new function gimp_plugin_help_register() which can
      	be called during plug-in query. plug_in.c keeps a list of
      	executable_name/help_path pairs. Plug-ins have to pass their
      	exec. name to gimp_help() which uses the list to find the plug-in's
      	help directory.
      
      	* app/gimphelp.[ch]: gimp_help() now takes a help_path parameter.
      	help_path == NULL means the standard help directory. Various
      	changes to pass the help_path to the help browser.
      
      	* app/gimprc.c: save the plug-in's help_path in the pluginrc file.
      
      	* app/menus.c: ugly hack to enable help_paths in the "F1" callback...
      9c6b0b0c
  12. 24 Nov, 1997 1 commit