static void attach (GeglOperation *self) { GeglOperation *operation = GEGL_OPERATION (self); GObjectClass *object_class = G_OBJECT_GET_CLASS (self); gegl_operation_create_pad (operation, g_object_class_find_property (object_class, "output")); gegl_operation_create_pad (operation, g_object_class_find_property (object_class, "input")); }
static void attach (GeglOperation *self) { GeglOperation *operation = GEGL_OPERATION (self); GParamSpec *pspec; pspec = g_param_spec_object ("output", "Output", "Output pad for generated image buffer.", GEGL_TYPE_BUFFER, G_PARAM_READABLE | GEGL_PARAM_PAD_OUTPUT); gegl_operation_create_pad (operation, pspec); g_param_spec_sink (pspec); pspec = g_param_spec_object ("input", "Input", "Input pad, for image buffer input.", GEGL_TYPE_BUFFER, G_PARAM_READWRITE | GEGL_PARAM_PAD_INPUT); gegl_operation_create_pad (operation, pspec); g_param_spec_sink (pspec); pspec = g_param_spec_object ("aux", "Aux", "Auxiliary image buffer input pad.", GEGL_TYPE_BUFFER, G_PARAM_READWRITE | GEGL_PARAM_PAD_INPUT); gegl_operation_create_pad (operation, pspec); g_param_spec_sink (pspec); pspec = g_param_spec_object ("aux2", "Aux2", "Second auxiliary image buffer input pad.", GEGL_TYPE_BUFFER, G_PARAM_READWRITE | GEGL_PARAM_PAD_INPUT); gegl_operation_create_pad (operation, pspec); g_param_spec_sink (pspec); }
static void gimp_operation_histogram_sink_attach (GeglOperation *self) { GeglOperation *operation = GEGL_OPERATION (self); GObjectClass *object_class = G_OBJECT_GET_CLASS (self); GEGL_OPERATION_CLASS (parent_class)->attach (self); gegl_operation_create_pad (operation, g_object_class_find_property (object_class, "aux")); }