[gimp] Filter out linked children of linked items to translate
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Filter out linked children of linked items to translate
- Date: Tue, 25 Aug 2009 19:31:21 +0000 (UTC)
commit f61f435699de4bea4740519e142014ca7ab89993
Author: Michael Natterer <mitch gimp org>
Date: Tue Aug 25 15:57:04 2009 +0200
Filter out linked children of linked items to translate
app/tools/gimpeditselectiontool.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpeditselectiontool.c b/app/tools/gimpeditselectiontool.c
index ed47916..fe1efa8 100644
--- a/app/tools/gimpeditselectiontool.c
+++ b/app/tools/gimpeditselectiontool.c
@@ -360,6 +360,9 @@ gimp_edit_selection_tool_start (GimpTool *parent_tool,
GIMP_ITEM_TYPE_LAYERS,
GIMP_ITEM_SET_LINKED);
+ linked = gimp_image_item_list_filter (active_item, linked,
+ TRUE, FALSE);
+
/* Expand the rectangle to include all linked layers as well */
for (list = linked; list; list = g_list_next (list))
{
@@ -405,6 +408,9 @@ gimp_edit_selection_tool_start (GimpTool *parent_tool,
GIMP_ITEM_TYPE_VECTORS,
GIMP_ITEM_SET_LINKED);
+ linked = gimp_image_item_list_filter (active_item, linked,
+ TRUE, FALSE);
+
for (list = linked; list; list = g_list_next (list))
{
GimpItem *item = list->data;
@@ -537,6 +543,9 @@ gimp_edit_selection_tool_button_release (GimpTool *tool,
GIMP_ITEM_TYPE_CHANNELS,
GIMP_ITEM_SET_LINKED);
+ linked = gimp_image_item_list_filter (active_item, linked,
+ TRUE, FALSE);
+
gimp_image_item_list_translate (display->image,
linked,
edit_select->cumlx,
@@ -667,6 +676,9 @@ gimp_edit_selection_tool_update_motion (GimpEditSelectionTool *edit_select,
GIMP_ITEM_TYPE_VECTORS,
GIMP_ITEM_SET_LINKED);
+ linked = gimp_image_item_list_filter (active_item, linked,
+ TRUE, FALSE);
+
gimp_image_item_list_translate (display->image,
linked,
xoffset, yoffset,
@@ -872,6 +884,9 @@ gimp_edit_selection_tool_draw (GimpDrawTool *draw_tool)
GIMP_ITEM_TYPE_LAYERS,
GIMP_ITEM_SET_LINKED);
+ linked = gimp_image_item_list_filter (active_item, linked,
+ TRUE, FALSE);
+
for (list = linked; list; list = g_list_next (list))
{
GimpItem *item = list->data;
@@ -925,6 +940,9 @@ gimp_edit_selection_tool_draw (GimpDrawTool *draw_tool)
GIMP_ITEM_TYPE_VECTORS,
GIMP_ITEM_SET_LINKED);
+ linked = gimp_image_item_list_filter (active_item, linked,
+ TRUE, FALSE);
+
for (list = linked; list; list = g_list_next (list))
{
GimpItem *item = list->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]