aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_object_image.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-06-19 17:38:28 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-06-25 14:36:09 +0900
commit84e3dd5c34f3ee7a8f07311eab6c950d1c76ea51 (patch)
tree5541d3fced9648bb2380002d0d6b5ba5477fd8e5 /src/lib/evas/canvas/evas_object_image.c
parentEvas filters: Complete support for image filtering (diff)
downloadefl-84e3dd5c34f3ee7a8f07311eab6c950d1c76ea51.tar.gz
Evas filters: Add name to the filters
Deep down internally there was already a name, but no API could really set it properly. Here Edje will set the name of the filter based on the part name or the data item name if relevant.
Diffstat (limited to 'src/lib/evas/canvas/evas_object_image.c')
-rw-r--r--src/lib/evas/canvas/evas_object_image.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index 7532c4ac53..7fa102fa90 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -4729,17 +4729,16 @@ evas_object_image_smooth_scale_get(const Eo *obj)
}
EOLIAN void
-_evas_image_efl_gfx_filter_program_set(Eo *obj, Evas_Image_Data *pd EINA_UNUSED, const char *code)
+_evas_image_efl_gfx_filter_program_set(Eo *obj, Evas_Image_Data *pd EINA_UNUSED, const char *code, const char *name)
{
pd->has_filter = (code != NULL);
- eo_do_super(obj, MY_CLASS, efl_gfx_filter_program_set(code));
+ eo_do_super(obj, MY_CLASS, efl_gfx_filter_program_set(code, name));
}
-EOLIAN const char *
-_evas_image_efl_gfx_filter_program_get(Eo *obj, Evas_Image_Data *pd EINA_UNUSED)
+EOLIAN void
+_evas_image_efl_gfx_filter_program_get(Eo *obj, Evas_Image_Data *pd EINA_UNUSED, const char **code, const char **name)
{
- const char *code;
- return eo_do_super_ret(obj, MY_CLASS, code, efl_gfx_filter_program_get());
+ eo_do_super(obj, MY_CLASS, efl_gfx_filter_program_get(code, name));
}
EOLIAN void