[gimp/wip/Jehan/layers-dockable-refresh: 100/105] app, devel-docs, libgimp, pdb: now removing gimp_item_linked_rotate().
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/Jehan/layers-dockable-refresh: 100/105] app, devel-docs, libgimp, pdb: now removing gimp_item_linked_rotate().
- Date: Thu, 23 Dec 2021 00:44:40 +0000 (UTC)
commit 5bab24cb0583b51a64a79a699a7526087fe01623
Author: Jehan <jehan girinstud io>
Date: Wed Dec 15 23:42:40 2021 +0100
app, devel-docs, libgimp, pdb: now removing gimp_item_linked_rotate().
app/actions/drawable-commands.c | 14 +++-----------
app/core/gimpitem-linked.c | 29 -----------------------------
app/core/gimpitem-linked.h | 6 ------
app/gimpcore.def | 1 -
app/pdb/item-transform-cmds.c | 10 ++--------
devel-docs/app/app-sections.txt | 1 -
libgimp/gimpitemtransform_pdb.c | 7 ++-----
pdb/groups/item_transform.pdb | 13 ++-----------
8 files changed, 9 insertions(+), 72 deletions(-)
---
diff --git a/app/actions/drawable-commands.c b/app/actions/drawable-commands.c
index aa69ad9660..c5648993bc 100644
--- a/app/actions/drawable-commands.c
+++ b/app/actions/drawable-commands.c
@@ -290,17 +290,9 @@ drawable_rotate_cmd_callback (GimpAction *action,
center_x = ((gdouble) off_x + (gdouble) gimp_item_get_width (item) / 2.0);
center_y = ((gdouble) off_y + (gdouble) gimp_item_get_height (item) / 2.0);
- if (gimp_item_get_linked (item))
- {
- gimp_item_linked_rotate (item, context, rotation_type,
- center_x, center_y, FALSE);
- }
- else
- {
- gimp_item_rotate (item, context,
- rotation_type, center_x, center_y,
- gimp_item_get_clip (item, FALSE));
- }
+ gimp_item_rotate (item, context,
+ rotation_type, center_x, center_y,
+ gimp_item_get_clip (item, FALSE));
gimp_image_flush (image);
}
diff --git a/app/core/gimpitem-linked.c b/app/core/gimpitem-linked.c
index 25613a88ac..260c109f11 100644
--- a/app/core/gimpitem-linked.c
+++ b/app/core/gimpitem-linked.c
@@ -69,35 +69,6 @@ gimp_item_linked_is_locked (GimpItem *item)
return locked;
}
-void
-gimp_item_linked_rotate (GimpItem *item,
- GimpContext *context,
- GimpRotationType rotate_type,
- gdouble center_x,
- gdouble center_y,
- gboolean clip_result)
-{
- GimpImage *image;
- GList *items;
-
- g_return_if_fail (GIMP_IS_ITEM (item));
- g_return_if_fail (GIMP_IS_CONTEXT (context));
- g_return_if_fail (gimp_item_get_linked (item) == TRUE);
- g_return_if_fail (gimp_item_is_attached (item));
-
- image = gimp_item_get_image (item);
-
- items = gimp_image_item_list_get_list (image,
- GIMP_ITEM_TYPE_ALL,
- GIMP_ITEM_SET_LINKED);
- items = gimp_image_item_list_filter (items);
-
- gimp_image_item_list_rotate (image, items, context,
- rotate_type, center_x, center_y, clip_result);
-
- g_list_free (items);
-}
-
void
gimp_item_linked_transform (GimpItem *item,
GimpContext *context,
diff --git a/app/core/gimpitem-linked.h b/app/core/gimpitem-linked.h
index e6d5be3cb4..ff8e265fb2 100644
--- a/app/core/gimpitem-linked.h
+++ b/app/core/gimpitem-linked.h
@@ -21,12 +21,6 @@
gboolean gimp_item_linked_is_locked (GimpItem *item);
-void gimp_item_linked_rotate (GimpItem *item,
- GimpContext *context,
- GimpRotationType rotate_type,
- gdouble center_x,
- gdouble center_y,
- gboolean clip_result);
void gimp_item_linked_transform (GimpItem *item,
GimpContext *context,
const GimpMatrix3 *matrix,
diff --git a/app/gimpcore.def b/app/gimpcore.def
index eb645397e4..c02f647210 100644
--- a/app/gimpcore.def
+++ b/app/gimpcore.def
@@ -400,7 +400,6 @@ EXPORTS
gimp_item_get_visible
gimp_item_height
gimp_item_is_text_layer
- gimp_item_linked_rotate
gimp_item_linked_transform
gimp_item_offsets
gimp_item_rename
diff --git a/app/pdb/item-transform-cmds.c b/app/pdb/item-transform-cmds.c
index c72688d1f6..9fe548bf0e 100644
--- a/app/pdb/item-transform-cmds.c
+++ b/app/pdb/item-transform-cmds.c
@@ -438,13 +438,6 @@ item_transform_rotate_simple_invoker (GimpProcedure *procedure,
else
success = FALSE;
}
- else if (gimp_item_get_linked (item))
- {
- gimp_item_linked_rotate (item, context,
- rotate_type,
- center_x, center_y,
- pdb_context->transform_resize);
- }
else
{
gimp_item_rotate (item, context,
@@ -1260,7 +1253,8 @@ register_item_transform_procs (GimpPDB *pdb)
"\n"
"If a selection exists and the item is a drawable, the portion of the
drawable which lies under the selection is cut from the drawable and made into a floating selection which is
then rotated by the specified amount. If auto_center is set to TRUE, the rotation is around the selection's
center. Otherwise, the coordinate of the center point needs to be specified. The return value is the ID of
the rotated floating selection.\n"
"\n"
- "If there is no selection or the item is not a drawable, the entire
item will be rotated around its center if auto_center is set to TRUE, otherwise the coordinate of the center
point needs to be specified. Additionally, if the item has its linked flag set to TRUE, all additional items
contained in the image which have the linked flag set to TRUE will also be rotated around the same center
point. The return value will be equal to the item ID supplied as input.\n"
+ "If there is no selection or the item is not a drawable, the entire
item will be rotated around its center if auto_center is set to TRUE, otherwise the coordinate of the center
point needs to be specified.\n"
+ "The return value will be equal to the item ID supplied as input.\n"
"\n"
"This procedure is affected by the following context setters:
'gimp-context-set-transform-resize'.",
NULL);
diff --git a/devel-docs/app/app-sections.txt b/devel-docs/app/app-sections.txt
index e468de9526..57f8a1e522 100644
--- a/devel-docs/app/app-sections.txt
+++ b/devel-docs/app/app-sections.txt
@@ -11422,7 +11422,6 @@ gimp_item_toggle_exclusive_visible
<SECTION>
<FILE>gimpitem-linked</FILE>
<TITLE>GimpItem-linked</TITLE>
-gimp_item_linked_rotate
gimp_item_linked_transform
</SECTION>
diff --git a/libgimp/gimpitemtransform_pdb.c b/libgimp/gimpitemtransform_pdb.c
index 8db5546264..3208f8b50a 100644
--- a/libgimp/gimpitemtransform_pdb.c
+++ b/libgimp/gimpitemtransform_pdb.c
@@ -313,11 +313,8 @@ gimp_item_transform_perspective (GimpItem *item,
* If there is no selection or the item is not a drawable, the entire
* item will be rotated around its center if auto_center is set to
* TRUE, otherwise the coordinate of the center point needs to be
- * specified. Additionally, if the item has its linked flag set to
- * TRUE, all additional items contained in the image which have the
- * linked flag set to TRUE will also be rotated around the same center
- * point. The return value will be equal to the item ID supplied as
- * input.
+ * specified.
+ * The return value will be equal to the item ID supplied as input.
*
* This procedure is affected by the following context setters:
* gimp_context_set_transform_resize().
diff --git a/pdb/groups/item_transform.pdb b/pdb/groups/item_transform.pdb
index 3314ffce70..296fd9343f 100644
--- a/pdb/groups/item_transform.pdb
+++ b/pdb/groups/item_transform.pdb
@@ -407,10 +407,8 @@ floating selection.
If there is no selection or the item is not a drawable, the entire
item will be rotated around its center if auto_center is set to TRUE,
otherwise the coordinate of the center point needs to be specified.
-Additionally, if the item has its linked flag set to TRUE, all
-additional items contained in the image which have the linked flag set
-to TRUE will also be rotated around the same center point. The return
-value will be equal to the item ID supplied as input.
+
+The return value will be equal to the item ID supplied as input.
This procedure is affected by the following context setters:
@@ -479,13 +477,6 @@ HELP
else
success = FALSE;
}
- else if (gimp_item_get_linked (item))
- {
- gimp_item_linked_rotate (item, context,
- rotate_type,
- center_x, center_y,
- pdb_context->transform_resize);
- }
else
{
gimp_item_rotate (item, context,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]