gegl r2940 - trunk/gegl/operation
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2940 - trunk/gegl/operation
- Date: Sun, 22 Feb 2009 18:54:10 +0000 (UTC)
Author: martinn
Date: Sun Feb 22 18:54:09 2009
New Revision: 2940
URL: http://svn.gnome.org/viewvc/gegl?rev=2940&view=rev
Log:
Improve formating of gegl_operation_context_set_object()
Modified:
trunk/gegl/operation/gegl-operation-context.c
Modified: trunk/gegl/operation/gegl-operation-context.c
==============================================================================
--- trunk/gegl/operation/gegl-operation-context.c (original)
+++ trunk/gegl/operation/gegl-operation-context.c Sun Feb 22 18:54:09 2009
@@ -249,19 +249,23 @@
*/
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (G_OBJECT (context->operation)), padname);
+
if (pspec)
- {
- GValue value = {0, };
- g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec));
+ {
+ GValue value = {0, };
+ g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec));
- g_value_set_object (&value, data);
- gegl_operation_context_set_property (context, padname, &value);
+ g_value_set_object (&value, data);
+ gegl_operation_context_set_property (context, padname, &value);
- g_value_unset (&value);
- }
+ g_value_unset (&value);
+ }
else
{
- g_warning ("%s: No paramspec found for pad we %s'%s'\n", G_STRFUNC, data?"we have data":"", padname);
+ g_warning ("%s: No paramspec found for pad we %s'%s'\n",
+ G_STRFUNC,
+ data ? "we have data" : "",
+ padname);
if (data)
g_object_unref (data); /* are we stealing the initial reference? */
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]