[gimp] Move gimp_image_raise_layer_to_top() around
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Move gimp_image_raise_layer_to_top() around
- Date: Mon, 10 Aug 2009 10:14:16 +0000 (UTC)
commit 28aa03e52549d658f8c023e4f40a2a78601f283f
Author: Michael Natterer <mitch gimp org>
Date: Fri Aug 7 10:27:50 2009 +0200
Move gimp_image_raise_layer_to_top() around
Reorder functions so layer reorder function are in the same
order as channel and vectors ones.
app/core/gimpimage.c | 32 ++++++++++++++++----------------
app/core/gimpimage.h | 4 ++--
2 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index f1e0d3a..cff03ac 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -3344,6 +3344,22 @@ gimp_image_raise_layer (GimpImage *image,
}
gboolean
+gimp_image_raise_layer_to_top (GimpImage *image,
+ GimpLayer *layer)
+{
+ GimpLayer *parent;
+
+ g_return_val_if_fail (GIMP_IS_IMAGE (image), FALSE);
+ g_return_val_if_fail (GIMP_IS_LAYER (layer), FALSE);
+
+ parent = GIMP_LAYER (gimp_viewable_get_parent (GIMP_VIEWABLE (layer)));
+
+ return gimp_image_reorder_layer (image, layer,
+ parent, 0,
+ TRUE, _("Raise Layer to Top"));
+}
+
+gboolean
gimp_image_lower_layer (GimpImage *image,
GimpLayer *layer,
GError **error)
@@ -3375,22 +3391,6 @@ gimp_image_lower_layer (GimpImage *image,
}
gboolean
-gimp_image_raise_layer_to_top (GimpImage *image,
- GimpLayer *layer)
-{
- GimpLayer *parent;
-
- g_return_val_if_fail (GIMP_IS_IMAGE (image), FALSE);
- g_return_val_if_fail (GIMP_IS_LAYER (layer), FALSE);
-
- parent = GIMP_LAYER (gimp_viewable_get_parent (GIMP_VIEWABLE (layer)));
-
- return gimp_image_reorder_layer (image, layer,
- parent, 0,
- TRUE, _("Raise Layer to Top"));
-}
-
-gboolean
gimp_image_lower_layer_to_bottom (GimpImage *image,
GimpLayer *layer)
{
diff --git a/app/core/gimpimage.h b/app/core/gimpimage.h
index b5884f1..5b5df35 100644
--- a/app/core/gimpimage.h
+++ b/app/core/gimpimage.h
@@ -486,11 +486,11 @@ void gimp_image_add_layers (GimpImage *image,
gboolean gimp_image_raise_layer (GimpImage *image,
GimpLayer *layer,
GError **error);
+gboolean gimp_image_raise_layer_to_top (GimpImage *image,
+ GimpLayer *layer);
gboolean gimp_image_lower_layer (GimpImage *image,
GimpLayer *layer,
GError **error);
-gboolean gimp_image_raise_layer_to_top (GimpImage *image,
- GimpLayer *layer);
gboolean gimp_image_lower_layer_to_bottom (GimpImage *image,
GimpLayer *layer);
gboolean gimp_image_reorder_layer (GimpImage *image,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]