[gimp] libgimp: fix gimp_procedure_add_*_from_property().
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimp: fix gimp_procedure_add_*_from_property().
- Date: Sat, 3 Aug 2019 14:44:21 +0000 (UTC)
commit 5cd09366e143d2289ba94d4da4521545f443956e
Author: Jehan <jehan girinstud io>
Date: Sat Aug 3 16:42:19 2019 +0200
libgimp: fix gimp_procedure_add_*_from_property().
Argh I changed the signature and added a new parameter, but forgot to
update the implementation!
libgimp/gimpprocedure.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libgimp/gimpprocedure.c b/libgimp/gimpprocedure.c
index 968d834e2a..c678d319d5 100644
--- a/libgimp/gimpprocedure.c
+++ b/libgimp/gimpprocedure.c
@@ -690,9 +690,10 @@ gimp_procedure_add_argument_from_property (GimpProcedure *procedure,
GParamSpec *pspec;
g_return_if_fail (GIMP_IS_PROCEDURE (procedure));
+ g_return_if_fail (G_IS_OBJECT (config));
g_return_if_fail (prop_name != NULL);
- pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (procedure->priv->plug_in), prop_name);
+ pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (config), prop_name);
g_return_if_fail (pspec != NULL);
@@ -749,9 +750,10 @@ gimp_procedure_add_return_value_from_property (GimpProcedure *procedure,
GParamSpec *pspec;
g_return_if_fail (GIMP_IS_PROCEDURE (procedure));
+ g_return_if_fail (G_IS_OBJECT (config));
g_return_if_fail (prop_name != NULL);
- pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (procedure->priv->plug_in), prop_name);
+ pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (config), prop_name);
g_return_if_fail (pspec != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]