diff --git a/app/pdb/Makefile.am b/app/pdb/Makefile.am index 497698219a..f13db8543b 100644 --- a/app/pdb/Makefile.am +++ b/app/pdb/Makefile.am @@ -62,6 +62,7 @@ libappinternal_procs_a_SOURCES = \ help-cmds.c \ image-cmds.c \ image-select-cmds.c \ + image-undo-cmds.c \ item-cmds.c \ item-transform-cmds.c \ layer-cmds.c \ @@ -83,6 +84,5 @@ libappinternal_procs_a_SOURCES = \ text-layer-cmds.c \ text-tool-cmds.c \ transform-tools-cmds.c \ - undo-cmds.c \ unit-cmds.c \ vectors-cmds.c diff --git a/app/pdb/undo-cmds.c b/app/pdb/image-undo-cmds.c similarity index 99% rename from app/pdb/undo-cmds.c rename to app/pdb/image-undo-cmds.c index 68a87ae9aa..0188bc2ef8 100644 --- a/app/pdb/undo-cmds.c +++ b/app/pdb/image-undo-cmds.c @@ -280,7 +280,7 @@ image_undo_thaw_invoker (GimpProcedure *procedure, } void -register_undo_procs (GimpPDB *pdb) +register_image_undo_procs (GimpPDB *pdb) { GimpProcedure *procedure; diff --git a/app/pdb/internal-procs.c b/app/pdb/internal-procs.c index de885f7047..6075667ad7 100644 --- a/app/pdb/internal-procs.c +++ b/app/pdb/internal-procs.c @@ -63,6 +63,7 @@ internal_procs_init (GimpPDB *pdb) register_help_procs (pdb); register_image_procs (pdb); register_image_select_procs (pdb); + register_image_undo_procs (pdb); register_item_procs (pdb); register_item_transform_procs (pdb); register_layer_procs (pdb); @@ -84,7 +85,6 @@ internal_procs_init (GimpPDB *pdb) register_text_layer_procs (pdb); register_text_tool_procs (pdb); register_transform_tools_procs (pdb); - register_undo_procs (pdb); register_unit_procs (pdb); register_vectors_procs (pdb); } diff --git a/app/pdb/internal-procs.h b/app/pdb/internal-procs.h index c346f2622b..4248a3757f 100644 --- a/app/pdb/internal-procs.h +++ b/app/pdb/internal-procs.h @@ -52,6 +52,7 @@ void register_guides_procs (GimpPDB *pdb); void register_help_procs (GimpPDB *pdb); void register_image_procs (GimpPDB *pdb); void register_image_select_procs (GimpPDB *pdb); +void register_image_undo_procs (GimpPDB *pdb); void register_item_procs (GimpPDB *pdb); void register_item_transform_procs (GimpPDB *pdb); void register_layer_procs (GimpPDB *pdb); @@ -73,7 +74,6 @@ void register_selection_tools_procs (GimpPDB *pdb); void register_text_layer_procs (GimpPDB *pdb); void register_text_tool_procs (GimpPDB *pdb); void register_transform_tools_procs (GimpPDB *pdb); -void register_undo_procs (GimpPDB *pdb); void register_unit_procs (GimpPDB *pdb); void register_vectors_procs (GimpPDB *pdb); diff --git a/libgimp/Makefile.am b/libgimp/Makefile.am index d1540d4b70..21c6a2aad5 100644 --- a/libgimp/Makefile.am +++ b/libgimp/Makefile.am @@ -103,6 +103,7 @@ PDB_WRAPPERS_C = \ gimphelp_pdb.c \ gimpimage_pdb.c \ gimpimageselect_pdb.c \ + gimpimageundo_pdb.c \ gimpitem_pdb.c \ gimpitemtransform_pdb.c \ gimplayer_pdb.c \ @@ -123,7 +124,6 @@ PDB_WRAPPERS_C = \ gimptextlayer_pdb.c \ gimptexttool_pdb.c \ gimptransformtools_pdb.c \ - gimpundo_pdb.c \ gimpunit_pdb.c \ gimpvectors_pdb.c @@ -157,6 +157,7 @@ PDB_WRAPPERS_H = \ gimphelp_pdb.h \ gimpimage_pdb.h \ gimpimageselect_pdb.h \ + gimpimageundo_pdb.h \ gimpitem_pdb.h \ gimpitemtransform_pdb.h \ gimplayer_pdb.h \ @@ -177,7 +178,6 @@ PDB_WRAPPERS_H = \ gimptextlayer_pdb.h \ gimptexttool_pdb.h \ gimptransformtools_pdb.h \ - gimpundo_pdb.h \ gimpunit_pdb.h \ gimpvectors_pdb.h diff --git a/libgimp/gimp_pdb_headers.h b/libgimp/gimp_pdb_headers.h index 3e2f5e629c..7ec317e290 100644 --- a/libgimp/gimp_pdb_headers.h +++ b/libgimp/gimp_pdb_headers.h @@ -55,6 +55,7 @@ #include #include #include +#include #include #include #include @@ -75,7 +76,6 @@ #include #include #include -#include #include #include diff --git a/libgimp/gimpundo_pdb.c b/libgimp/gimpimageundo_pdb.c similarity index 98% rename from libgimp/gimpundo_pdb.c rename to libgimp/gimpimageundo_pdb.c index 389bd44980..b039bd763b 100644 --- a/libgimp/gimpundo_pdb.c +++ b/libgimp/gimpimageundo_pdb.c @@ -1,7 +1,7 @@ /* LIBGIMP - The GIMP Library * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball * - * gimpundo_pdb.c + * gimpimageundo_pdb.c * * This library is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -26,11 +26,11 @@ /** - * SECTION: gimpundo - * @title: gimpundo - * @short_description: Control of undo/redo. + * SECTION: gimpimageundo + * @title: gimpimageundo + * @short_description: Control of image undo/redo. * - * Control of undo/redo. + * Control of image undo/redo. **/ diff --git a/libgimp/gimpundo_pdb.h b/libgimp/gimpimageundo_pdb.h similarity index 91% rename from libgimp/gimpundo_pdb.h rename to libgimp/gimpimageundo_pdb.h index ec6b851ece..8278ab126c 100644 --- a/libgimp/gimpundo_pdb.h +++ b/libgimp/gimpimageundo_pdb.h @@ -1,7 +1,7 @@ /* LIBGIMP - The GIMP Library * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball * - * gimpundo_pdb.h + * gimpimageundo_pdb.h * * This library is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -24,8 +24,8 @@ #error "Only can be included directly." #endif -#ifndef __GIMP_UNDO_PDB_H__ -#define __GIMP_UNDO_PDB_H__ +#ifndef __GIMP_IMAGE_UNDO_PDB_H__ +#define __GIMP_IMAGE_UNDO_PDB_H__ G_BEGIN_DECLS @@ -43,4 +43,4 @@ gboolean gimp_image_undo_thaw (gint32 image_ID); G_END_DECLS -#endif /* __GIMP_UNDO_PDB_H__ */ +#endif /* __GIMP_IMAGE_UNDO_PDB_H__ */ diff --git a/po/POTFILES.in b/po/POTFILES.in index bc6ddfb231..ec95e60957 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -299,6 +299,7 @@ app/pdb/gimpprocedure.c app/pdb/guides-cmds.c app/pdb/image-cmds.c app/pdb/image-select-cmds.c +app/pdb/image-undo-cmds.c app/pdb/item-transform-cmds.c app/pdb/layer-cmds.c app/pdb/paths-cmds.c @@ -308,7 +309,6 @@ app/pdb/selection-cmds.c app/pdb/selection-tools-cmds.c app/pdb/text-layer-cmds.c app/pdb/transform-tools-cmds.c -app/pdb/undo-cmds.c app/pdb/vectors-cmds.c app/plug-in/gimpenvirontable.c diff --git a/tools/pdbgen/Makefile.am b/tools/pdbgen/Makefile.am index f9f78eb1c9..14707b3b9d 100644 --- a/tools/pdbgen/Makefile.am +++ b/tools/pdbgen/Makefile.am @@ -30,6 +30,7 @@ pdb_sources = \ pdb/help.pdb \ pdb/image.pdb \ pdb/image_select.pdb \ + pdb/image_undo.pdb \ pdb/item.pdb \ pdb/item_transform.pdb \ pdb/layer.pdb \ @@ -51,7 +52,6 @@ pdb_sources = \ pdb/text_layer.pdb \ pdb/text_tool.pdb \ pdb/transform_tools.pdb \ - pdb/undo.pdb \ pdb/unit.pdb \ pdb/vectors.pdb diff --git a/tools/pdbgen/groups.pl b/tools/pdbgen/groups.pl index 399a1ef75c..18eb334029 100644 --- a/tools/pdbgen/groups.pl +++ b/tools/pdbgen/groups.pl @@ -28,6 +28,7 @@ help image image_select + image_undo item item_transform layer @@ -49,7 +50,6 @@ text_layer text_tool transform_tools - undo unit vectors ); diff --git a/tools/pdbgen/pdb/undo.pdb b/tools/pdbgen/pdb/image_undo.pdb similarity index 98% rename from tools/pdbgen/pdb/undo.pdb rename to tools/pdbgen/pdb/image_undo.pdb index ca509abcf9..e1c94bb4f0 100644 --- a/tools/pdbgen/pdb/undo.pdb +++ b/tools/pdbgen/pdb/image_undo.pdb @@ -298,9 +298,9 @@ CODE %exports = (app => [@procs], lib => [@procs]); -$desc = 'Undo'; -$doc_title = 'gimpundo'; -$doc_short_desc = 'Control of undo/redo.'; -$doc_long_desc = 'Control of undo/redo.'; +$desc = 'Image Undo'; +$doc_title = 'gimpimageundo'; +$doc_short_desc = 'Control of image undo/redo.'; +$doc_long_desc = 'Control of image undo/redo.'; 1;