[gimp] app: switch the first two args of gimp_channel_new_from_buffer()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: switch the first two args of gimp_channel_new_from_buffer()
- Date: Tue, 3 Apr 2018 19:58:20 +0000 (UTC)
commit 65a697ff67df9ce63b219af1a821fb9222279b7a
Author: Michael Natterer <mitch gimp org>
Date: Tue Apr 3 21:57:43 2018 +0200
app: switch the first two args of gimp_channel_new_from_buffer()
app/core/gimpchannel.c | 6 +++---
app/core/gimpchannel.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/app/core/gimpchannel.c b/app/core/gimpchannel.c
index 956a80a..b481550 100644
--- a/app/core/gimpchannel.c
+++ b/app/core/gimpchannel.c
@@ -1559,16 +1559,16 @@ gimp_channel_new (GimpImage *image,
}
GimpChannel *
-gimp_channel_new_from_buffer (GeglBuffer *buffer,
- GimpImage *image,
+gimp_channel_new_from_buffer (GimpImage *image,
+ GeglBuffer *buffer,
const gchar *name,
const GimpRGB *color)
{
GimpChannel *channel;
GeglBuffer *dest;
- g_return_val_if_fail (GEGL_IS_BUFFER (buffer), NULL);
g_return_val_if_fail (GIMP_IS_IMAGE (image), NULL);
+ g_return_val_if_fail (GEGL_IS_BUFFER (buffer), NULL);
channel = gimp_channel_new (image,
gegl_buffer_get_width (buffer),
diff --git a/app/core/gimpchannel.h b/app/core/gimpchannel.h
index ef8526f..e14ed40 100644
--- a/app/core/gimpchannel.h
+++ b/app/core/gimpchannel.h
@@ -126,8 +126,8 @@ GimpChannel * gimp_channel_new (GimpImage *image,
gint height,
const gchar *name,
const GimpRGB *color);
-GimpChannel * gimp_channel_new_from_buffer (GeglBuffer *buffer,
- GimpImage *image,
+GimpChannel * gimp_channel_new_from_buffer (GimpImage *image,
+ GeglBuffer *buffer,
const gchar *name,
const GimpRGB *color);
GimpChannel * gimp_channel_new_from_alpha (GimpImage *image,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]