GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

  1. 11 Jan, 2006 1 commit
  2. 05 Aug, 2005 1 commit
  3. 02 Aug, 2005 1 commit
    • Michael Natterer's avatar
      Changed naming scheme for PDB procedure names from · 853f04d5
      Michael Natterer authored
      2005-08-03  Michael Natterer  <mitch@gimp.org>
      
      	Changed naming scheme for PDB procedure names from
      	random_crap_that_traditionally_has_underscores to
      	enforced-canonical-identifiers. I'm pretty sure some things are
      	broken after this commit. More changes to come...
      
      	* libgimpbase/gimpbase.def
      	* libgimpbase/gimputils.[ch]: added gimp_canonicalize_identifier().
      
      	* app/pdb/procedural_db.[ch] (struct ProcRecord): added
      	"gchar *original_name" to keep a procedure's original name as
      	reigstered by plug-ins (compat cruft).
      
      	(procedural_db_init_procs): canonicalized list of deprecated
      	procedures.
      
      	* app/plug-in/plug-in-proc-def.c (plug_in_proc_def_free): free
      	original_name.
      
      	* app/plug-in/plug-in-message.c: canonicalize procedure names
      	which are received over the wire.
      
      	* app/plug-in/plug-in-rc.c: serialize the original_name and create
      	the canonicalized name on-the-fly when deserializing.
      
      	* app/plug-in/plug-in-run.c: pass the original_name to plug-ins
      	when running them because they strcmp() the passed procedure name.
      
      	* app/plug-in/plug-ins.c (plug_ins_add_to_db): pass
      	canonical procedure names to procedural_db_execute().
      
      	(plug_ins_file_proc_compare): special-case "gimp-xcf", not "gimp_xcf".
      
      	* app/xcf/xcf.c: changed static XCF procedures accordingly.
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/lib.pl: do some trivial substitutions to generate
      	canonicalized names in app/, and C identifiers with underscores in
      	libgimp/.
      
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: canonicaloized procedure
      	names in calls to std_pdb_deprecated() and in procedure names in
      	generated C code.
      
      	* app/pdb/*_cmds.c
      	* libgimp/*_pdb.c: regenerated.
      853f04d5
  4. 04 May, 2005 1 commit
    • Michael Natterer's avatar
      new function which finds a proc_def in a GSList by its procedure name. · 4f2e5afc
      Michael Natterer authored
      2005-05-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-proc-def.[ch] (plug_in_proc_def_find): new
      	function which finds a proc_def in a GSList by its procedure name.
      
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-ins.c
      	* tools/pdbgen/pdb/plug_in.pdb: use it instead of iterating and
      	comparing manually.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      
      	* app/plug-in/plug-in-def.c: minor cleanups.
      4f2e5afc
  5. 03 May, 2005 1 commit
    • Michael Natterer's avatar
      new function. · e103a880
      Michael Natterer authored
      2005-05-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-proc-def.[ch] (plug_in_proc_def_set_icon):
      	new function.
      
      	* tools/pdbgen/pdb/plug_in.pdb: removed the same code here and use
      	the new function.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      e103a880
  6. 05 Apr, 2005 2 commits
  7. 24 Mar, 2005 1 commit
    • Michael Natterer's avatar
      Added API to explicitly register dynamic menu items hierarchies. Fixes bug · 0a5ce16b
      Michael Natterer authored
      2005-03-24  Michael Natterer  <mitch@gimp.org>
      
      	Added API to explicitly register dynamic menu items hierarchies.
      	Fixes bug #170623.
      
      	* app/core/gimp.h: added "GSList *plug_in_menu_branches".
      
      	* app/plug-in/plug-in-types.h
      
      	* app/plug-in/plug-ins.[ch]: added API to register plug-in menu
      	branches, just as for locale and help domans. Cleaned up handling
      	of locale and help domains.
      
      	(plug_ins_exit): free the registered menu branches.
      
      	* app/actions/plug-in-actions.[ch] (plug_in_actions_add_branch):
      	new function to explicitly add a menu branch action.
      
      	(plug_in_actions_setup): add the registered menu branches to each
      	new action group.
      
      	(plug_in_actions_build_path): always strip the untranslated menu
      	path from underlines before using it as hash table key or action
      	name.
      
      	* app/menus/plug-in-menus.c (plug_in_menus_add_proc): changed
      	accordingly: strip underlines from untranslated menu paths before
      	passing them to plug_in_menus_build_path().
      
      	* app/core/gimp-gui.[ch]: added gimp_menus_create_branch() plus
      	vtable entry to access the new stuff from the core. Renamed the
      	functions desling with items from gimp_foo_entry() to
      	gimp_foo_item().
      
      	* app/gui/gui-vtable.c: implement create_branch() and add the
      	branch action to all existing "plug-in" action groups. Note that
      	we don't need to create any menus because that happens implicitly
      	when adding menu items.
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_branch_register): new
      	PDB wrapper to access branch registering from plug-ins.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/plug_in_cmds.c
      	* libgimp/gimpplugin_pdb.[ch]: regenerated.
      
      	* libgimp/gimp.def: changed accordingly.
      
      	* plug-ins/script-fu/script-fu-scripts.c (script_fu_find_scripts):
      	register the menu branches for all included scripts.
      0a5ce16b
  8. 18 Nov, 2004 1 commit
    • Michael Natterer's avatar
      The following fixes have no visible effect because nobody uses · b8344d51
      Michael Natterer authored
      2004-11-18  Michael Natterer  <mitch@gimp.org>
      
      	The following fixes have no visible effect because nobody
      	uses gimp_plugin_menu_register() on temp_procs yet:
      
      	* app/actions/plug-in-actions.[ch]: added
      	plug_in_actions_add_path() which just adds the actions needed for
      	a given menu math, but not the procedure action itself.
      
      	* app/gui/gui-vtable.c (gui_menus_create_entry): create the
      	menu_path's actions using above function so adding of submenus to
      	existing ui managers works.
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_register_invoker):
      	don't add a menu if "no_interface" is TRUE.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      
      	* plug-ins/script-fu/script-fu-scripts.c: pass untranslated
      	menu_paths to the core, not translated ones. Don't store the
      	scripts directly in the "script_list" tree but use a list of
      	scripts per key because there can be identical keys for different
      	scripts now. Fixed sorting of menu entries and menus.
      b8344d51
  9. 17 Nov, 2004 1 commit
    • Michael Natterer's avatar
      Made plug-in menu registration work the same way for ordinary and · d871be74
      Michael Natterer authored
      2004-11-17  Michael Natterer  <mitch@gimp.org>
      
      	Made plug-in menu registration work the same way for ordinary and
      	temporary procedures. Addresses bug #158117.
      
      	* app/core/gimp-gui.[ch]: added "const gchar *menu_path" to
      	gimp_menus_create_entry().
      
      	* app/gui/gui-vtable.c (gui_menus_create_entry): if menu_path is
      	NULL, behave as before and create an action and its menu entries
      	for all the procedure's menu_paths. If it is non-NULL, skip action
      	creation and create a menu entry just for that path.
      
      	* app/plug-in/plug-ins.c (plug_ins_temp_proc_def_add): call
      	gimp_menus_create_entry() with a NULL menu path and call it if
      	proc_def->menu_paths *or* proc_def->menu_label is non-NULL, so
      	it creates at least the procedure's action, even if it has
      	no menu_path (yet).
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_register): check both
      	the list of procs and temp_procs when trying to register the
      	entry.  Allow ordinary procedures and extensions to install stuff
      	at query() and init() time and allow temp_procs to install stuff
      	at any time.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      d871be74
  10. 06 Oct, 2004 2 commits
    • Michael Natterer's avatar
      changed new member "deprecated" from "gboolean" to a "gchar*" which holds · 6f42c42d
      Michael Natterer authored
      2004-10-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/procedural_db.h (struct ProcRecord): changed new member
      	"deprecated" from "gboolean" to a "gchar*" which holds the name of
      	the replacement procedure.
      
      	* tools/pdbgen/app.pl: changed accordingly.
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run): show
      	the name of the replacement procedure in the warning message.
      
      	* tools/pdbgen/stddefs.pdb: added utility function
      	std_pdb_deprecated() which takes the name of the replacement
      	procedure and fills the blurb, help, author, copyright, date and
      	deprecated fields of the procedure definition.
      
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/text_tool.pdb: use it instead of duplicating
      	the same code and strings for all deprecated procedures.
      
      	* app/pdb/*_cmds.c: regenerated.
      6f42c42d
    • Michael Natterer's avatar
      return the mask's bpp and the brush's pixmap data if it has one. · 7ed9a288
      Michael Natterer authored
      2004-10-06  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brush.pdb: return the mask's bpp and the
      	brush's pixmap data if it has one.
      
      	* tools/pdbgen/pdb/pattern.pdb: cleaned up.
      
      	* tools/pdbgen/pdb/image.pdb: added $deprecated = 1 to deprecated
      	functions even if they are not exported to libgimp any more.
      
      	* app/pdb/procedural_db.h (struct ProcRecord): added member
      	"gboolean deprecated".
      
      	* tools/pdbgen/app.pl
      	* app/xcf/xcf.c: fill it accordingly.
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run): warn
      	not only for deprecated procedured which are in the compat hach
      	table, but also for procedures with deprecated flag set to TRUE.
      
      	* app/pdb/*_cmds.c
      	* libgimp/gimpbrush_pdb.[ch]
      	* libgimp/gimppattern_pdb.[ch]: regenerated.
      
      	* libgimp/gimpbrushmenu.c
      	* plug-ins/gfig/gfig-style.c: changed accordingly.
      7ed9a288
  11. 30 Sep, 2004 1 commit
    • Michael Natterer's avatar
      Cleaned up the DB Browser and Plugin Details code and GUI. It's not · 95c903ec
      Michael Natterer authored
      2004-09-30  Michael Natterer  <mitch@gimp.org>
      
      	Cleaned up the DB Browser and Plugin Details code and GUI.  It's
      	not perfect yet but at least they don't look like crap any more.
      	Fixes bug #131490.
      
      	* plug-ins/common/plugin-defs.pl
      	* plug-ins/common/plugindetails.c: removed this plugin.
      
      	* plug-ins/common/.cvsignore
      	* plug-ins/common/Makefile.am: regenerated.
      
      	* plug-ins/dbbrowser/Makefile.am
      	* plug-ins/dbbrowser/dbbrowser.c
      	* plug-ins/dbbrowser/dbbrowser_utils.[ch]: removed these files.
      
      	* plug-ins/dbbrowser/gimpprocbrowser.[ch]
      	* plug-ins/dbbrowser/gimpprocview.[ch]: new cleaned up files.
      
      	* plug-ins/dbbrowser/plugin-browser.c: the former plugindetails.
      	* plug-ins/dbbrowser/procedure-browser.c: the former dbbrowser.
      
      	* plug-ins/script-fu/Makefile.am: link against the new library
      	libgimpprocbrowser.a
      
      	* plug-ins/script-fu/script-fu-console.c: changed #includes
      	accordingly. Monir cleanup.
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugins_query): fixed menu_path
      	return value. Was broken since the plug-in menu registering
      	changes.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      95c903ec
  12. 22 Sep, 2004 1 commit
    • Michael Natterer's avatar
      app/plug-in/Makefile.am removed... ...and added with a new name. · 9ffc00be
      Michael Natterer authored
      2004-09-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-proc.[ch]: removed...
      	* app/plug-in/plug-in-proc-def.[ch]: ...and added with a new name.
      
      	* app/plug-in/plug-in-def.[ch]
      	* app/plug-in/plug-in-message.[ch]
      	* app/plug-in/plug-in-progress.[ch]
      	* app/plug-in/plug-in-rc.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins.[ch]
      	* app/actions/plug-in-actions.c
      	* app/actions/plug-in-commands.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/file/file-utils.[ch]
      	* app/gui/gui-vtable.c
      	* app/menus/plug-in-menus.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpfileprocview.c
      	* app/widgets/gimppluginaction.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly plus some
      	minor cosmetic cleanups.
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      9ffc00be
  13. 27 Aug, 2004 1 commit
    • Michael Natterer's avatar
      Moved the gimp_progress_init() and gimp_progress_update() PDB functions to · d7f73e6f
      Michael Natterer authored
      2004-08-27  Michael Natterer  <mitch@gimp.org>
      
      	Moved the gimp_progress_init() and gimp_progress_update() PDB
      	functions to their own group because they don't belong to the
      	"Plug-In" namespace and will soon get more functions.
      
      	* tools/pdbgen/pdb/plug_in.pdb: removed the progress stuff...
      
      	* tools/pdbgen/pdb/progress.pdb: ...and added it here.
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl
      	* app/pdb/Makefile.am
      	* libgimp/Makefile.am: changed accordingly.
      
      	* libgimp/gimpprogress_pdb.[ch]: new generated files.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/plug_in_cmds.c
      	* libgimp/gimp_pdb.h
      	* libgimp/gimpplugin_pdb.[ch]: regenerated.
      d7f73e6f
  14. 10 Aug, 2004 1 commit
    • Michael Natterer's avatar
      Redid the whole internal progress stuff: don't pass around · 02d2b990
      Michael Natterer authored
      2004-08-10  Michael Natterer  <mitch@gimp.org>
      
      	Redid the whole internal progress stuff: don't pass around
      	progress_callback and progress_data; instead, provide a
      	pointer to a GimpProgressInterface which can be implemented
      	by a variety of backends.
      
      	Addresses (but not yet fixes) bugs #6010, #97266 and #135185.
      
      	* app/display/Makefile.am
      	* app/display/gimpprogress.[ch]: removed the old progress hack.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpprogress.[ch]: implement GimpProgressInterface.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpprogressdialog.[ch]: the standalone progress
      	dialog as widget implementing GimpProgressInterface.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpstatusbar.[ch]
      	* app/widgets/gimpfiledialog.[ch]
      	* app/widgets/gimpthumbbox.[ch]: added GimpProgressInterface
      	implementation to these classes.
      
      	* app/core/gimp-gui.[ch]
      	* app/gui/gui-vtable.c: replaced the old progress vtable entries
      	by two new to create and destroy a GimpProgressDialog in case
      	no other progress is available.
      
      	* app/pdb/procedural_db.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* tools/pdbgen/app.pl: pass a GimpProgress to all PDB wrappers and
      	all plug-ins.
      
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c: handle the case there the
      	plug-in was crated with a progress as well as the case where it
      	wasn't.
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/xcf/xcf.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimpfontselect.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimppaletteselect.c
      	* app/widgets/gimppatternselect.c: changed accordingly.
      
      	* app/core/gimpimagefile.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-open-location-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c: pass a GimpProgress to all file
      	related functions. Embed the progress in the file dialog where
      	possible.
      
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-convert.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage-scale.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimplayer.c
      	* app/core/gimpselection.c
      	* app/vectors/gimpvectors.c: replaced callback/data by GimpProgress.
      
      	* app/tools/gimpblendtool.c
      	* app/tools/gimptransformtool.c
      	* app/gui/convert-dialog.c
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed callers accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      02d2b990
  15. 16 Jul, 2004 1 commit
    • Michael Natterer's avatar
      include "libgimpbase/gimpbase.h" instead of "libgimpbase/gimpparasite.h" · a456ac9b
      Michael Natterer authored
      2004-07-16  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb.pl: include "libgimpbase/gimpbase.h" instead of
      	"libgimpbase/gimpparasite.h" for getting the GimpParasite type.
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/image.pdb: removed redundant #includes.
      
      	* tools/pdbgen/pdb/plug_in.pdb: standardized "success" logic.
      	Consistetly fail if there is no currently queried plugin.
      
      	* app/pdb/*.c: regenerated.
      a456ac9b
  16. 20 May, 2004 1 commit
    • Manish Singh's avatar
      remove unnecessary G_OBJECT() casts. · f5fd7288
      Manish Singh authored
      2004-05-19  Manish Singh  <yosh@gimp.org>
      
              * app/actions/file-actions.c: remove unnecessary G_OBJECT() casts.
      
              * tools/pdbgen/pdb/help.pdb
              * tools/pdbgen/pdb/image.pdb
              * tools/pdbgen/pdb/paths.pdb
              * tools/pdbgen/pdb/plug_in.pdb: a bit of quoting clean up.
      
              * tools/pdbgen/pdb/plug_in.pdb: handle icon_data_length properly.
      
              * app/pdb/plug_in_cmds.c: regenerated.
      f5fd7288
  17. 18 May, 2004 1 commit
    • Michael Natterer's avatar
      Allow plug-ins to register menu icons. Fixes bug #120500. · 3fb934b2
      Michael Natterer authored
      2004-05-18  Michael Natterer  <mitch@gimp.org>
      
      	Allow plug-ins to register menu icons. Fixes bug #120500.
      
      	* app/core/core-enums.[ch]: added enum GimpIconType which can
      	be one of { STOCK_ID, IMAGE_FILE, INLINE_PIXBUF }.
      
      	* app/config/gimpconfigwriter.[ch] (gimp_config_writer_data)
      	* app/config/gimpscanner.[ch] (gimp_scanner_parse_data): new
      	functions which write/parse raw binary data. Needed for storing
      	inline pixbufs in pluginrc.
      
      	* app/config/gimpconfigwriter.[ch] (gimp_config_writer_identifier):
      	new function which writes out an unquoted and unescaped string.
      
      	* app/plug-in/plug-in-proc.[ch] (struct PlugInProcDef): added
      	new members "icon_type", "icon_data_length" and "icon_data".
      	Reordered members so file_proc specific stuff is at the end.
      
      	(plug_in_proc_def_get_stock_id)
      	(plug_in_proc_def_get_pixbuf): new functions to access the
      	procedure's icon.
      
      	* app/plug-in/plug-in-rc.c: save/restore the registered icons.
      
      	* app/actions/file-dialog-actions.c
      	* app/actions/plug-in-actions.c: set the action's stock ID from
      	the procedure's stock ID.
      
      	* app/widgets/gimppluginaction.c
      	(gimp_plug_in_action_connect_proxy): if the procedure provides a
      	pixbuf, set it as icon for the menu item.
      
      	* app/menus/file-dialog-menu.[ch]
      	* app/menus/file-open-menu.c
      	* app/menus/file-save-menu.c
      	* app/xcf/xcf.c: changed accordingly.
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugin_icon_register): new PDB
      	function which can be called during query().
      
      	* tools/pdbgen/enums.pl
      	* app/pdb/internal_procs.c
      	* app/pdb/plug_in_cmds.c
      	* libgimp/gimpenums.h
      	* libgimp/gimpplugin_pdb.c
      	* libgimp/gimpplugin_pdb.h
      	* plug-ins/pygimp/gimpenums.py
      	* plug-ins/script-fu/script-fu-constants.c: regenerated.
      
      	* plug-ins/common/plugindetails.c
      	* plug-ins/common/uniteditor.c
      	* plug-ins/print/print.c: register stock_id icons.
      
      	* plug-ins/common/screenshot.c: register an inline_pixbuf icon for
      	testing purposes (used emblem-camera.png from gnome-icon-theme).
      
      	* app/actions/dialogs-actions.c
      	* app/actions/file-actions.c: unrelated: added some more icons
      	to menu items.
      3fb934b2
  18. 07 May, 2004 2 commits
    • Michael Natterer's avatar
      removed member "accelerator". It was never set and this is the · 9b7196a0
      Michael Natterer authored
      2004-05-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-proc.[ch]: removed member "accelerator".
      	It was never set and this is the conceptually wrong place to store
      	it anyway.
      
      	* app/actions/file-dialog-actions.c
      	* app/actions/plug-in-actions.c
      	* app/plug-in/plug-in-message.c
      	* app/xcf/xcf.c: changed accordingly.
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugins_query): always return NULL
      	as accelerator. Cleaned up the function a bit and made it aware of
      	proc_def->menu_label added below.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      9b7196a0
    • Michael Natterer's avatar
      Changed plug-in menu registration again to allow passing just the menu · ca179a77
      Michael Natterer authored
      2004-05-07  Michael Natterer  <mitch@gimp.org>
      
      	Changed plug-in menu registration again to allow passing just the
      	menu item's label (not the full path) in gimp_install_procedure()
      	and only the path (excluding the item's label) in
      	gimp_plugin_menu_register(). Matches the internal action system
      	better and makes translating the menu paths much easier.
      
      	(Of yourse it's still possible to use the old syntax for backward
      	compatibility).
      
      	* app/plug-in/plug-in-proc.[ch]: added "gchar *menu_label".
      
      	* app/plug-in/plug-in-params.[ch]: added new functions
      	plug_in_param_defs_check() and plug_in_proc_args_check() which
      	check if a procedure's parameters match its menu location
      	(e.g. <Image> needs RUN-MODE, IMAGE, DRAWABLE).
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_install): if
      	registering an old-style (full) menu_path, use
      	plug_in_param_defs_check(), set proc_def->menu_label otherwise.
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_register): use
      	plug_in_proc_args_check() on the passed menu_path and make sugre
      	old and new style menu registration are not mixed.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      
      	* app/plug-in/plug-in-rc.c: save/restore "menu_label".
      
      	* app/actions/file-dialog-actions.c
      	* app/actions/plug-in-actions.c
      	* app/menus/plug-in-menus.c: changed action/menu creation
      	accordingly. Some hacks needed to allow both old and new style
      	menu_label/menu_paths.
      
      	* app/plug-in/plug-in.c
      	* app/widgets/gimpfiledialog.c
      	* app/xcf/xcf.c: changed accordingly.
      
      	* plug-ins/common/align_layers.c
      	* plug-ins/common/animationplay.c
      	* plug-ins/common/animoptimize.c
      	* plug-ins/common/apply_lens.c
      	* plug-ins/common/autocrop.c
      	* plug-ins/common/autostretch_hsv.c
      	* plug-ins/common/blinds.c
      	* plug-ins/common/blur.c
      	* plug-ins/common/borderaverage.c
      	* plug-ins/common/bumpmap.c
      	* plug-ins/common/c_astretch.c
      	* plug-ins/common/ccanalyze.c
      	* plug-ins/common/channel_mixer.c
      	* plug-ins/common/checkerboard.c
      	* plug-ins/common/color_enhance.c
      	* plug-ins/common/colorify.c
      	* plug-ins/common/colortoalpha.c
      	* plug-ins/common/compose.c
      	* plug-ins/common/convmatrix.c
      	* plug-ins/common/cubism.c
      	* plug-ins/common/curve_bend.c
      	* plug-ins/common/decompose.c
      	* plug-ins/common/deinterlace.c
      	* plug-ins/common/depthmerge.c
      	* plug-ins/common/destripe.c
      	* plug-ins/common/diffraction.c
      	* plug-ins/common/displace.c
      	* plug-ins/common/edge.c
      	* plug-ins/common/emboss.c
      	* plug-ins/common/engrave.c
      	* plug-ins/common/exchange.c
      	* plug-ins/common/film.c
      	* plug-ins/common/flarefx.c
      	* plug-ins/common/fractaltrace.c
      	* plug-ins/common/screenshot.c: ported the first few plug-ins
      	to the new registration scheme.
      ca179a77
  19. 06 May, 2004 3 commits
    • Manish Singh's avatar
      make libgimp* headers always included before any app headers. · 61a3b048
      Manish Singh authored
      2004-05-06  Manish Singh  <yosh@gimp.org>
      
              * tools/pdbgen/pdb/app.pl: make libgimp* headers always included
              before any app headers.
      
              * tools/pdbgen/pdb/paint_tools.pdb: Fix silly "Dodgebure" typo.
      
              * app/pdb/*_cmds.c: regenerated.
      61a3b048
    • Michael Natterer's avatar
      renamed gimp_plugin_menu_add() to gimp_plugin_menu_register() for · de791034
      Michael Natterer authored
      2004-05-06  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/plug_in.pdb: renamed gimp_plugin_menu_add() to
      	gimp_plugin_menu_register() for consistency with other
      	gimp_plugin_foo_register() functions which can be called during
      	query().
      
      	* app/pdb/plug_in_cmds.c
      	* libgimp/gimpplugin_pdb.[ch]: regenerated.
      
      	* plug-ins/common/ccanalyze.c
      	* plug-ins/common/colortoalpha.c
      	* plug-ins/common/screenshot.c
      	* plug-ins/winsnap/winsnap.c: changed accordingly.
      de791034
    • Michael Natterer's avatar
      Enabled multiple menu entries per plug-in procedure: · 7b943b64
      Michael Natterer authored
      2004-05-06  Michael Natterer  <mitch@gimp.org>
      
      	Enabled multiple menu entries per plug-in procedure:
      
      	* app/plug-in/plug-in-proc.[ch]: changed "gchar *menu_path" to
      	"GList *menu_paths".
      
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins.c
      	* app/menus/menus.c
      	* app/widgets/gimpfiledialog.c
      	* app/xcf/xcf.c: changed accordingly.
      
      	* app/actions/file-dialog-actions.c
      	* app/actions/plug-in-actions.c: create an action for the first
      	element of proc_def->menu_paths.
      
      	* app/gui/gui-vtable.c
      	* app/menus/plug-in-menus.[ch]: create proxy widgets for each
      	element of proc_def->menu_paths.
      
      	* tools/pdbgen/pdb/plug_in.pdb: added new function
      	gimp_plugin_menu_add() which can be called during query() and adds
      	a menu path to a procedure registered by the calling plugin.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/plug_in_cmds.c
      	* libgimp/gimpplugin_pdb.[ch]: regenerated.
      
      	* menus/image-menu.xml.in
      	* menus/toolbox-menu.xml.in: added lots of <placeholder>s for
      	logical groups (like Image/Resize, Image/Scale, Image/Crop
      	etc.). Added empty placeholder File/Send for stuff like print and
      	mail. Added an "Acquire" menu under <Image>/File
      
      	* plug-ins/common/mail.c
      	* plug-ins/print/print.c
      	* plug-ins/common/winprint.c: register under File/Send.
      
      	* plug-ins/common/screenshot.c
      	* plug-ins/winsnap/winsnap.c: also register under
      	<Image>/File/Acquire.
      
      	* plug-ins/common/autocrop.c
      	* plug-ins/common/ccanalyze.c
      	* plug-ins/common/colortoalpha.c
      	* plug-ins/common/threshold_alpha.c
      	* plug-ins/common/zealouscrop.c: register additional menu entries
      	under placeholders in the "Image" and "Layer" menus. This is not
      	meant to be final but just a hint to keep in mind when
      	reorganizing the plug-in menus.
      7b943b64
  20. 14 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Get rid of the "current_context" which was in fact just a bunch of global · 18d9161e
      Michael Natterer authored
      2004-04-15  Michael Natterer  <mitch@gimp.org>
      
      	Get rid of the "current_context" which was in fact just a bunch of
      	global variables. Instead, pass the needed context all the way
      	from the GUI and the PDB to the core. This is a prerequisite for
      	macro recording and generally helps separating the various
      	subsystems from each other. Work in progress...
      
      	* app/core/gimp.[ch]: removed member "current_context" and
      	gimp_[get|set]_current_context().
      
      	* app/core/gimp-edit.[ch]
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-bucket-fill.[ch]
      	* app/core/gimpdrawable-offset.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-crop.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-merge.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimagefile.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimpselection.[ch]
      	* app/core/gimptemplate.[ch]
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/pdb/procedural_db.[ch]
      	* app/text/gimptext-compat.[ch]
      	* app/text/gimptextlayer-transform.[ch]
      	* app/gui/brush-select.[ch]
      	* app/gui/font-select.[ch]
      	* app/gui/gradient-select.[ch]
      	* app/gui/palette-select.[ch]
      	* app/gui/pattern-select.[ch]: added tons of "GimpContext *context"
      	parameters and use the passed context instead of
      	gimp_get_current_context().
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-ins.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimptransformtool.c
      	* app/vectors/gimpvectors.c
      	* app/gui/convert-dialog.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpthumbbox.c: pass gimp_get_user_context() or
      	GIMP_CONTEXT(tool_options) or whatever is the right context
      	to the changed core functions.
      
      	* tools/pdbgen/app.pl: pass "GimpContext *context" to all
      	generated PDB invokers.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: pass the new context
      	parameter to the changed core functions.
      
      	* app/pdb/*_cmds.c: regenerated.
      18d9161e
  21. 26 Mar, 2004 1 commit
    • Manish Singh's avatar
      don't generate code with tabs. · 83cae161
      Manish Singh authored
      2004-03-26  Manish Singh  <yosh@gimp.org>
      
              * tools/pdbgen/app.pl: don't generate code with tabs.
      
              * tools/pdbgen/pdb/procedural_db.pdb: convert tabs to spaces in
              helper function declaration.
      
              * app/pdb/procedural_db.c: convert tabs to spaces.
      
              * app/pdb/*.c: regenerated, no code changes, only tabs->spaces.
      83cae161
  22. 19 Dec, 2003 1 commit
    • Michael Natterer's avatar
      renamed gimp_temp_PDB_name() to gimp_procedurab_db_temp_name() · 14c75713
      Michael Natterer authored
      2003-12-19  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/plug_in.pdb: renamed gimp_temp_PDB_name()
      	* tools/pdbgen/pdb/procedural_db.pdb: to gimp_procedurab_db_temp_name()
      
      	* app/pdb/procedural_db.c
      	* libgimp/gimpcompat.h: added compat cruft.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* libgimp/gimpplugin_pdb.[ch]
      	* libgimp/gimpproceduraldb_pdb.[ch]: regenerated.
      
      	* libgimp/gimpbrushselect.c
      	* libgimp/gimpfontselect.c
      	* libgimp/gimpgradientselect.c
      	* libgimp/gimppatternselect.c: changed accordingly.
      14c75713
  23. 04 Sep, 2003 1 commit
  24. 31 Aug, 2003 1 commit
    • Manish Singh's avatar
      added a prominent comment for translators to make sure they have all 4 po · 8caca0bf
      Manish Singh authored
      2003-08-31  Manish Singh  <yosh@gimp.org>
      
              * configure.in: added a prominent comment for translators to make
              sure they have all 4 po files before adding to ALL_LINGUAS.
      
              * app/gui/plug-in-menus.c: remove redudant #include of gimpenv.h
      
              * tools/pdbgen/pdb/plug_in.pdb: gimp_strip_uline menu_path before
              passing it up.
      
              * app/pdb/plug_in_cmds.c: regenerated.
      
              * plug-ins/common/mng.c
              * plug-ins/common/psd_save.c
              * plug-ins/common/psp.c: use G_N_ELEMENTS
      
              * plug-ins/common/screenshot.c: use GDK_WINDOWING_* for #includes
              too. GDK cursor enums are ok to pass to XCreateFontCursor.
      
              * plug-ins/dbbrowser/dbbrowser_utils.c: minor cleanups, also use
              gtk_cell_renderer_text_set_fixed_height_from_font as an optimization.
      
              * plug-ins/libgck/gck/gckcolor.c: #undef GDK_DISABLE_DEPRECATED and
              add warning.
      
              * plug-ins/pygimp/gimpfu.py: remove some redundant import gtk's
      8caca0bf
  25. 28 Aug, 2003 2 commits
    • Henrik Brix Andersen's avatar
      rewrote a large part of the screenshot plug-in. The plug-in now no longer · f33c7af7
      Henrik Brix Andersen authored
      2003-08-28 Henrik Brix Andersen <brix@gimp.org>
      
      * plug-ins/common/screenshot.c: rewrote a large part of the
      screenshot plug-in. The plug-in now no longer depends on the xwd
      utility, but uses Xlib/GDK functionality to obtain the screen shot.
      
      The window to shoot is now selected prior to the time out. This
      fixes bug #103852.
      
      The ability to obtain a screen shot of a window without
      decorations has had to go since this can not be done using plain
      Xlib/GDK (one would have to depend on libXmu to do this).
      
      The source is prepared for G_OS_WIN32 but the win32 specific code
      is yet to be written.
      
      * tools/pdbgen/pdb/plug_in.pdb (gimp_progress_update): improved the
      inline documentation
      
      * app/pdb/plug_in_cmds.c
      * libgimp/gimpplugin_pdb.c: regenerated
      f33c7af7
    • 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
  26. 19 Aug, 2003 1 commit
    • Manish Singh's avatar
      Default all strings to validate UTF-8, use no_validate to disable. Also · 78071018
      Manish Singh authored
      2003-08-18  Manish Singh  <yosh@gimp.org>
      
              * tools/pdbgen/app.pl: Default all strings to validate UTF-8, use
              no_validate to disable. Also added a null_ok parameter which does
              validate UTF-8, but allows NULL.
      
              * tools/pdbgen/pdb/brush_select.pdb
              * tools/pdbgen/pdb/brushes.pdb
              * tools/pdbgen/pdb/channel.pdb
              * tools/pdbgen/pdb/convert.pdb
              * tools/pdbgen/pdb/fileops.pdb
              * tools/pdbgen/pdb/font_select.pdb
              * tools/pdbgen/pdb/gimprc.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/message.pdb
              * tools/pdbgen/pdb/palette_select.pdb
              * tools/pdbgen/pdb/palettes.pdb
              * tools/pdbgen/pdb/parasite.pdb
              * tools/pdbgen/pdb/paths.pdb
              * tools/pdbgen/pdb/pattern_select.pdb
              * tools/pdbgen/pdb/patterns.pdb
              * tools/pdbgen/pdb/plug_in.pdb
              * tools/pdbgen/pdb/procedural_db.pdb
              * tools/pdbgen/pdb/text_tool.pdb
              * tools/pdbgen/pdb/unit.pdb: removed utf8, added no_validate and
              null_ok where appropriate.
      
              * app/pdb/brush_select_cmds.c
              * app/pdb/font_select_cmds.c
              * app/pdb/gradient_select_cmds.c
              * app/pdb/layer_cmds.c
              * app/pdb/palette_select_cmds.c
              * app/pdb/pattern_select_cmds.c
              * app/pdb/plug_in_cmds.c: regenerated.
      78071018
  27. 18 Aug, 2003 1 commit
    • Michael Natterer's avatar
      tools/pdbgen/pdb/brush_select.pdb tools/pdbgen/pdb/brushes.pdb · db2db08f
      Michael Natterer authored
      2003-08-18  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/gimprc.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/unit.pdb: UTF-8 validate all strings except
      	filenames. Does not work yet for string params which may be NULL.
      	They currently don't get checked because I still don't understand
      	pdbgen enough :)
      
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/convert_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/fileops_cmds.c
      	* app/pdb/font_select_cmds.c
      	* app/pdb/gimprc_cmds.c
      	* app/pdb/gradient_select_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/palette_select_cmds.c
      	* app/pdb/palettes_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/pattern_select_cmds.c
      	* app/pdb/patterns_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/unit_cmds.c: regenerated.
      db2db08f
  28. 03 Jul, 2003 1 commit
    • Manish Singh's avatar
      fix spelling of "quality" in comment · 122c0065
      Manish Singh authored
      2003-07-03  Manish Singh  <yosh@gimp.org>
      
              * plug-ins/common/jpeg.c: fix spelling of "quality" in comment
      
              * tools/pdbgen/*.pl: update copyright strings to 2003
      
              * libgimp/gimpenums.h
              * libgimp/*_pdb.[ch]
              * app/pdb/*_cmds.[ch]
              * app/pdb/internal_procs.[ch]
              * plug-ins/pygimp/gimpenums.py
              * plug-ins/script-fu/script-fu-constants.c: regenerated
      122c0065
  29. 13 Feb, 2003 1 commit
  30. 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
  31. 20 Jan, 2003 1 commit
    • Michael Natterer's avatar
      renamed plug_in_progress_init() to plug_in_progress_start() so it matches · d407244f
      Michael Natterer authored
      2003-01-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-progress.[ch]: renamed plug_in_progress_init()
      	to plug_in_progress_start() so it matches plug_in_progress_end().
      	Added g_return_if_fail() to all functions.
      
      	* app/plug-in/plug-in.[ch]: plug_in_new(): require the passed
      	path to be absolute. Removed plug_in_search_in_path(). Replaced
      	some if(plug_in){...} by g_return_if_fail(plug_in!=NULL). Cleanup.
      
      	* app/plug-in/plug-ins.c: plug_ins_def_add_from_rc(): refuse to
      	add plug_in_defs with non-absolute paths (should never happen).
      	Misc cleanup all over the place like s/GSList *tmp/GSList *list/.
      
      	* app/plug-in/plug-in-params.c: cleanup.
      
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      
      	* app/gui/brush-select.c
      	* app/gui/gradient-select.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c: some code review & cleanup.
      d407244f
  32. 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
  33. 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
  34. 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