summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_ui_image.c
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-09-16 11:06:02 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-09-16 11:06:02 +0200
commit944d5f37c7add5772a62d0d976db48b3a2a90982 (patch)
treefb50f8b08247c02c1b0f2f5c0f03e1125ba35233 /src/bin/elementary/test_ui_image.c
parente18d07b2979e5b80ce930fa6f525b9e02f19db01 (diff)
efl/image: Efl.Gfx.Image_Scale_Type -> Efl.Gfx.Image_Scale_Method
ref T7927, T7875 Depends on D9931
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_ui_image.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/bin/elementary/test_ui_image.c b/src/bin/elementary/test_ui_image.c
index 87ad9fb..c93fd4c 100644
--- a/src/bin/elementary/test_ui_image.c
+++ b/src/bin/elementary/test_ui_image.c
@@ -107,16 +107,16 @@ im_align_cb(void *data, Eo *obj EINA_UNUSED, void *event_info EINA_UNUSED)
107} 107}
108 108
109static const struct { 109static const struct {
110 Efl_Gfx_Image_Scale_Type scale_type; 110 Efl_Gfx_Image_Scale_Method scale_type;
111 const char *name; 111 const char *name;
112} images_scale_type[] = { 112} images_scale_type[] = {
113 { EFL_GFX_IMAGE_SCALE_TYPE_NONE, "None" }, 113 { EFL_GFX_IMAGE_SCALE_METHOD_NONE, "None" },
114 { EFL_GFX_IMAGE_SCALE_TYPE_FILL, "Fill" }, 114 { EFL_GFX_IMAGE_SCALE_METHOD_FILL, "Fill" },
115 { EFL_GFX_IMAGE_SCALE_TYPE_FIT, "Fit" }, 115 { EFL_GFX_IMAGE_SCALE_METHOD_FIT, "Fit" },
116 { EFL_GFX_IMAGE_SCALE_TYPE_FIT_WIDTH, "Fit Horizontally" }, 116 { EFL_GFX_IMAGE_SCALE_METHOD_FIT_WIDTH, "Fit Horizontally" },
117 { EFL_GFX_IMAGE_SCALE_TYPE_FIT_HEIGHT, "Fit Vertically" }, 117 { EFL_GFX_IMAGE_SCALE_METHOD_FIT_HEIGHT, "Fit Vertically" },
118 { EFL_GFX_IMAGE_SCALE_TYPE_EXPAND, "Expand" }, 118 { EFL_GFX_IMAGE_SCALE_METHOD_EXPAND, "Expand" },
119 { EFL_GFX_IMAGE_SCALE_TYPE_TILE, "Tile" }, 119 { EFL_GFX_IMAGE_SCALE_METHOD_TILE, "Tile" },
120 { 0, NULL } 120 { 0, NULL }
121}; 121};
122 122
@@ -128,9 +128,9 @@ my_im_scale_ch(void *data, const Efl_Event *ev EINA_UNUSED)
128 int v = efl_ui_radio_group_selected_value_get(ev->object); 128 int v = efl_ui_radio_group_selected_value_get(ev->object);
129 if (v == -1) v = 0; 129 if (v == -1) v = 0;
130 130
131 efl_gfx_image_scale_type_set(im, images_scale_type[v].scale_type); 131 efl_gfx_image_scale_method_set(im, images_scale_type[v].scale_type);
132 fprintf(stderr, "Set %d[%s] and got %d\n", 132 fprintf(stderr, "Set %d[%s] and got %d\n",
133 images_scale_type[v].scale_type, images_scale_type[v].name, efl_gfx_image_scale_type_get(im)); 133 images_scale_type[v].scale_type, images_scale_type[v].name, efl_gfx_image_scale_method_get(im));
134} 134}
135 135
136void 136void