[gimp] pdb, app, libgimp: rename the "undo" PDB group to "imageundo"



commit f269651cc6eb01caff19c0a5a1a19c4ea923090d
Author: Michael Natterer <mitch gimp org>
Date:   Sat May 30 15:00:36 2015 +0200

    pdb, app, libgimp: rename the "undo" PDB group to "imageundo"
    
    This only renames files, no code changes.

 app/pdb/Makefile.am                             |    2 +-
 app/pdb/{undo-cmds.c => image-undo-cmds.c}      |    2 +-
 app/pdb/internal-procs.c                        |    2 +-
 app/pdb/internal-procs.h                        |    2 +-
 libgimp/Makefile.am                             |    4 ++--
 libgimp/gimp_pdb_headers.h                      |    2 +-
 libgimp/{gimpundo_pdb.c => gimpimageundo_pdb.c} |   10 +++++-----
 libgimp/{gimpundo_pdb.h => gimpimageundo_pdb.h} |    8 ++++----
 po/POTFILES.in                                  |    2 +-
 tools/pdbgen/Makefile.am                        |    2 +-
 tools/pdbgen/groups.pl                          |    2 +-
 tools/pdbgen/pdb/{undo.pdb => image_undo.pdb}   |    8 ++++----
 12 files changed, 23 insertions(+), 23 deletions(-)
---
diff --git a/app/pdb/Makefile.am b/app/pdb/Makefile.am
index 4976982..f13db85 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 68a87ae..0188bc2 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 de885f7..6075667 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 c346f26..4248a37 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 d1540d4..21c6a2a 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 3e2f5e6..7ec317e 100644
--- a/libgimp/gimp_pdb_headers.h
+++ b/libgimp/gimp_pdb_headers.h
@@ -55,6 +55,7 @@
 #include <libgimp/gimphelp_pdb.h>
 #include <libgimp/gimpimage_pdb.h>
 #include <libgimp/gimpimageselect_pdb.h>
+#include <libgimp/gimpimageundo_pdb.h>
 #include <libgimp/gimpitem_pdb.h>
 #include <libgimp/gimpitemtransform_pdb.h>
 #include <libgimp/gimplayer_pdb.h>
@@ -75,7 +76,6 @@
 #include <libgimp/gimptextlayer_pdb.h>
 #include <libgimp/gimptexttool_pdb.h>
 #include <libgimp/gimptransformtools_pdb.h>
-#include <libgimp/gimpundo_pdb.h>
 #include <libgimp/gimpunit_pdb.h>
 #include <libgimp/gimpvectors_pdb.h>
 
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 389bd44..b039bd7 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 ec6b851..8278ab1 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 <libgimp/gimp.h> 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 bc6ddfb..ec95e60 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 f9f78eb..14707b3 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 399a1ef..18eb334 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 ca509ab..e1c94bb 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]