[gimp] pygimp: port to gimp_item_to_selection()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] pygimp: port to gimp_item_to_selection()
- Date: Mon, 6 Sep 2010 22:35:56 +0000 (UTC)
commit 4264afbb0ebe721aaf97ac13b26e75da0bf58904
Author: Michael Natterer <mitch gimp org>
Date: Tue Sep 7 00:35:28 2010 +0200
pygimp: port to gimp_item_to_selection()
plug-ins/pygimp/pygimp-vectors.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/pygimp/pygimp-vectors.c b/plug-ins/pygimp/pygimp-vectors.c
index ac9f330..a2b9c7b 100644
--- a/plug-ins/pygimp/pygimp-vectors.c
+++ b/plug-ins/pygimp/pygimp-vectors.c
@@ -631,8 +631,12 @@ vectors_to_selection(PyGimpVectors *self, PyObject *args, PyObject *kwargs)
&feather_radius_x, &feather_radius_y))
return NULL;
- gimp_vectors_to_selection(self->ID, operation, antialias, feather,
- feather_radius_x, feather_radius_y);
+ gimp_context_push();
+ gimp_context_set_antialias(antialias);
+ gimp_context_set_feather(feather);
+ gimp_context_set_feather_radius(feather_radius_x, feather_radius_y);
+ gimp_item_to_selection(self->ID, operation);
+ gimp_context_pop();
Py_INCREF(Py_None);
return Py_None;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]