summaryrefslogtreecommitdiff
path: root/src/lib/ector/cairo/ector_cairo_surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ector/cairo/ector_cairo_surface.c')
-rw-r--r--src/lib/ector/cairo/ector_cairo_surface.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/lib/ector/cairo/ector_cairo_surface.c b/src/lib/ector/cairo/ector_cairo_surface.c
index 12538e7..3cc47e3 100644
--- a/src/lib/ector/cairo/ector_cairo_surface.c
+++ b/src/lib/ector/cairo/ector_cairo_surface.c
@@ -62,14 +62,11 @@ _ector_cairo_surface_ector_generic_surface_renderer_factory_new(Eo *obj,
62 const Eo_Class *type) 62 const Eo_Class *type)
63{ 63{
64 if (type == ECTOR_RENDERER_GENERIC_SHAPE_MIXIN) 64 if (type == ECTOR_RENDERER_GENERIC_SHAPE_MIXIN)
65 return eo_add(ECTOR_RENDERER_CAIRO_SHAPE_CLASS, NULL, 65 return eo_add(ECTOR_RENDERER_CAIRO_SHAPE_CLASS, NULL, ector_renderer_surface_set(eoid, obj));
66 ector_renderer_surface_set(obj));
67 else if (type == ECTOR_RENDERER_GENERIC_GRADIENT_LINEAR_MIXIN) 66 else if (type == ECTOR_RENDERER_GENERIC_GRADIENT_LINEAR_MIXIN)
68 return eo_add(ECTOR_RENDERER_CAIRO_GRADIENT_LINEAR_CLASS, NULL, 67 return eo_add(ECTOR_RENDERER_CAIRO_GRADIENT_LINEAR_CLASS, NULL, ector_renderer_surface_set(eoid, obj));
69 ector_renderer_surface_set(obj));
70 else if (type == ECTOR_RENDERER_GENERIC_GRADIENT_RADIAL_MIXIN) 68 else if (type == ECTOR_RENDERER_GENERIC_GRADIENT_RADIAL_MIXIN)
71 return eo_add(ECTOR_RENDERER_CAIRO_GRADIENT_RADIAL_CLASS, NULL, 69 return eo_add(ECTOR_RENDERER_CAIRO_GRADIENT_RADIAL_CLASS, NULL, ector_renderer_surface_set(eoid, obj));
72 ector_renderer_surface_set(obj));
73 70
74 ERR("Couldn't find class for type: %s\n", eo_class_name_get(type)); 71 ERR("Couldn't find class for type: %s\n", eo_class_name_get(type));
75 return NULL; 72 return NULL;
@@ -124,7 +121,7 @@ _ector_cairo_surface_eo_base_constructor(Eo *obj,
124 USE(obj, cairo_image_surface_create, NULL); 121 USE(obj, cairo_image_surface_create, NULL);
125 USE(obj, cairo_create, NULL); 122 USE(obj, cairo_create, NULL);
126 123
127 eo_do_super(obj, ECTOR_CAIRO_SURFACE_CLASS, obj = eo_constructor()); 124 obj = eo_constructor(eo_super(obj, ECTOR_CAIRO_SURFACE_CLASS));
128 if (!obj) return NULL; 125 if (!obj) return NULL;
129 126
130 _cairo_count++; 127 _cairo_count++;
@@ -138,7 +135,7 @@ static void
138_ector_cairo_surface_eo_base_destructor(Eo *obj EINA_UNUSED, 135_ector_cairo_surface_eo_base_destructor(Eo *obj EINA_UNUSED,
139 Ector_Cairo_Surface_Data *pd EINA_UNUSED) 136 Ector_Cairo_Surface_Data *pd EINA_UNUSED)
140{ 137{
141 eo_do_super(obj, ECTOR_CAIRO_SURFACE_CLASS, eo_destructor()); 138 eo_destructor(eo_super(obj, ECTOR_CAIRO_SURFACE_CLASS));
142 139
143 if (--_cairo_count) return ; 140 if (--_cairo_count) return ;
144 if (_cairo_so) eina_module_free(_cairo_so); 141 if (_cairo_so) eina_module_free(_cairo_so);