[gimp] libgimp: remove opacity and mode parameters from gimp_layer_new_from_surface()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimp: remove opacity and mode parameters from gimp_layer_new_from_surface()
- Date: Thu, 21 Apr 2011 19:11:36 +0000 (UTC)
commit 1616151b0e8935e4f90e238e96ea001028dee737
Author: Michael Natterer <mitch gimp org>
Date: Thu Apr 21 21:07:50 2011 +0200
libgimp: remove opacity and mode parameters from gimp_layer_new_from_surface()
They are passed as default values in almost all cases, and can simply
be set later if needed.
libgimp/gimplayer.c | 6 +-----
libgimp/gimplayer.h | 2 --
plug-ins/common/file-pdf-load.c | 1 -
3 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/libgimp/gimplayer.c b/libgimp/gimplayer.c
index 7b5f40c..3a33500 100644
--- a/libgimp/gimplayer.c
+++ b/libgimp/gimplayer.c
@@ -206,8 +206,6 @@ gimp_layer_new_from_pixbuf (gint32 image_ID,
* @image_ID: The RGB image to which to add the layer.
* @name: The layer name.
* @cairo_surface_t: A Cairo image surface.
- * @opacity: The layer opacity.
- * @mode: The layer combination mode.
* @progress_start: start of progress
* @progress_end: end of progress
*
@@ -229,8 +227,6 @@ gint32
gimp_layer_new_from_surface (gint32 image_ID,
const gchar *name,
cairo_surface_t *surface,
- gdouble opacity,
- GimpLayerModeEffects mode,
gdouble progress_start,
gdouble progress_end)
{
@@ -271,7 +267,7 @@ gimp_layer_new_from_surface (gint32 image_ID,
layer = gimp_layer_new (image_ID, name, width, height,
format == CAIRO_FORMAT_RGB24 ?
GIMP_RGB_IMAGE : GIMP_RGBA_IMAGE,
- opacity, mode);
+ 100.0, GIMP_NORMAL_MODE);
if (layer == -1)
return -1;
diff --git a/libgimp/gimplayer.h b/libgimp/gimplayer.h
index 22d4ad3..b51ebd7 100644
--- a/libgimp/gimplayer.h
+++ b/libgimp/gimplayer.h
@@ -45,8 +45,6 @@ gint32 gimp_layer_new_from_pixbuf (gint32 image_ID,
gint32 gimp_layer_new_from_surface (gint32 image_ID,
const gchar *name,
cairo_surface_t *surface,
- gdouble opacity,
- GimpLayerModeEffects mode,
gdouble progress_start,
gdouble progress_end);
diff --git a/plug-ins/common/file-pdf-load.c b/plug-ins/common/file-pdf-load.c
index 75f0d6d..5a29a82 100644
--- a/plug-ins/common/file-pdf-load.c
+++ b/plug-ins/common/file-pdf-load.c
@@ -761,7 +761,6 @@ layer_from_surface (gint32 image,
gdouble progress_scale)
{
gint32 layer = gimp_layer_new_from_surface (image, layer_name, surface,
- 100.0, GIMP_NORMAL_MODE,
progress_start,
progress_start + progress_scale);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]