Rename orientation -> image_orientation.
authorHosang Kim <hosang12.kim@samsung.com>
Fri, 12 Jul 2019 08:22:16 +0000 (10:22 +0200)
committerTaehyub Kim <taehyub.kim@samsung.com>
Wed, 17 Jul 2019 07:18:05 +0000 (16:18 +0900)
Summary:
Efl.Gfx.Image_Orientable and Efl.Ui.Layout_Orientable have same property name.
So when class extends both interfaces, it makes conflict.

Relates to T7924

Reviewers: woohyun, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9299

src/lib/efl/interfaces/efl_gfx_image_orientable.eo
src/lib/elementary/efl_ui_image.c
src/lib/elementary/efl_ui_image.eo
src/lib/elementary/efl_ui_image_zoomable.c
src/lib/elementary/efl_ui_image_zoomable.eo
src/lib/evas/canvas/efl_canvas_image_internal.eo
src/lib/evas/canvas/evas_object_image.c

index ad6d05ae5f3c654376bc290da40213d1631e3abe..5a3003094bd924bcadf84eda7fe9fa0018f83e7b 100644 (file)
@@ -28,9 +28,9 @@ enum Efl.Gfx.Image_Orientation
 interface Efl.Gfx.Image_Orientable
 {
    [[Interface for objects which can be oriented.]]
-   c_prefix: efl_gfx_image;
+   c_prefix: efl_gfx;
    methods {
-       @property orientation {
+       @property image_orientation {
          [[Control the orientation (rotation and flipping) of a visual object.
 
            This can be used to set the rotation on an image or a window, for
index b4abeec3164522af5970659afdea5f20557014f3..92fbb456284fc1c725fa0f7b6292bc17f9165d58 100644 (file)
@@ -1378,7 +1378,7 @@ _efl_ui_image_efl_gfx_image_load_controller_load_size_get(const Eo *obj EINA_UNU
 }
 
 EOLIAN static void
-_efl_ui_image_efl_gfx_image_orientable_orientation_set(Eo *obj, Efl_Ui_Image_Data *sd, Efl_Gfx_Image_Orientation orient)
+_efl_ui_image_efl_gfx_image_orientable_image_orientation_set(Eo *obj, Efl_Ui_Image_Data *sd, Efl_Gfx_Image_Orientation orient)
 {
    if (sd->edje) return;
    if (sd->orient == orient) return;
@@ -1388,7 +1388,7 @@ _efl_ui_image_efl_gfx_image_orientable_orientation_set(Eo *obj, Efl_Ui_Image_Dat
 }
 
 EOLIAN static Efl_Gfx_Image_Orientation
-_efl_ui_image_efl_gfx_image_orientable_orientation_get(const Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *sd)
+_efl_ui_image_efl_gfx_image_orientable_image_orientation_get(const Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *sd)
 {
    return sd->orient;
 }
index 521e99743b8b7cc0f042162ffe9ec9a1751bbca2..d6db562358b344755ce88db28e57bcc00c273163 100644 (file)
@@ -100,7 +100,7 @@ class @beta Efl.Ui.Image extends Efl.Ui.Widget implements Efl.Ui.Clickable, Efl.
       Efl.Gfx.Image_Load_Controller.load_size { get; set; }
       Efl.Gfx.Image.smooth_scale { get; set; }
       Efl.Gfx.Image.scale_type { get; set; }
-      Efl.Gfx.Image_Orientable.orientation { get; set; }
+      Efl.Gfx.Image_Orientable.image_orientation { get; set; }
       Efl.Player.playable { get; }
       Efl.Player.play { get; set; }
       Efl.Layout.Signal.signal_emit;
index d50d5f8d2bb6fdcc80f1850333594f537cbe33e1..ee357463ea4f4221f5682ee5273a264d3e1c225c 100644 (file)
@@ -1344,7 +1344,7 @@ _orient_apply(Eo *obj, Efl_Ui_Image_Zoomable_Data *sd)
 }
 
 EOLIAN static void
-_efl_ui_image_zoomable_efl_gfx_image_orientable_orientation_set(Eo *obj, Efl_Ui_Image_Zoomable_Data *sd,
+_efl_ui_image_zoomable_efl_gfx_image_orientable_image_orientation_set(Eo *obj, Efl_Ui_Image_Zoomable_Data *sd,
                                                           Efl_Gfx_Image_Orientation orient)
 {
    if (sd->orient == orient) return;
@@ -1354,7 +1354,7 @@ _efl_ui_image_zoomable_efl_gfx_image_orientable_orientation_set(Eo *obj, Efl_Ui_
 }
 
 EOLIAN static Efl_Gfx_Image_Orientation
-_efl_ui_image_zoomable_efl_gfx_image_orientable_orientation_get(const Eo *obj EINA_UNUSED, Efl_Ui_Image_Zoomable_Data *sd)
+_efl_ui_image_zoomable_efl_gfx_image_orientable_image_orientation_get(const Eo *obj EINA_UNUSED, Efl_Ui_Image_Zoomable_Data *sd)
 {
    return sd->orient;
 }
index 85c553e0b03887730d1ef390cba9b8d82896f362..6b4dccdaa484e5e7be779edcaabc84330be17945 100644 (file)
@@ -65,7 +65,7 @@ class @beta Efl.Ui.Image_Zoomable extends Efl.Ui.Image implements Efl.Ui.Zoom,
       Efl.Access.Widget.Action.elm_actions { get; }
       Efl.File.load;
       Efl.File.file { get; set; }
-      Efl.Gfx.Image_Orientable.orientation { get; set; }
+      Efl.Gfx.Image_Orientable.image_orientation { get; set; }
       Efl.Layout.Group.group_size_min { get; }
       Efl.Layout.Group.group_size_max { get; }
      Efl.Layout.Signal.signal_callback_add;
index 20777020a8b8195f82af53f6773bbc4fa8290680..0e42c1c0f9fd6ff8a11ffa2504fcbdc824ea9e1b 100644 (file)
@@ -11,7 +11,7 @@ abstract @beta Efl.Canvas.Image_Internal extends Efl.Canvas.Object implements Ef
       Efl.Object.finalize;
       Efl.Object.debug_name_override;
       Efl.File_Save.save;
-      Efl.Gfx.Image_Orientable.orientation { get; set; }
+      Efl.Gfx.Image_Orientable.image_orientation { get; set; }
       Efl.Gfx.Image.smooth_scale { get; set; }
       Efl.Gfx.Image.ratio { get; }
       Efl.Gfx.Image.border { get; set; }
index 9362ef13768d97608a3c81397cf21d46a1312c1c..991adbb8feeb5b14125dd759079118611410165a 100755 (executable)
@@ -426,7 +426,7 @@ _evas_image_orientation_set(Eo *eo_obj, Evas_Image_Data *o, Evas_Image_Orient or
 }
 
 EOLIAN static void
-_efl_canvas_image_internal_efl_gfx_image_orientable_orientation_set(Eo *obj, Evas_Image_Data *o, Efl_Gfx_Image_Orientation efl_orient)
+_efl_canvas_image_internal_efl_gfx_image_orientable_image_orientation_set(Eo *obj, Evas_Image_Data *o, Efl_Gfx_Image_Orientation efl_orient)
 {
    // This array takes an Efl_Gfx_Image_Orientation and turns it into an Elm_Image_Orient
    static const Evas_Image_Orient evas_orient[16] = {
@@ -454,7 +454,7 @@ _efl_canvas_image_internal_efl_gfx_image_orientable_orientation_set(Eo *obj, Eva
 }
 
 EOLIAN static Efl_Gfx_Image_Orientation
-_efl_canvas_image_internal_efl_gfx_image_orientable_orientation_get(const Eo *obj EINA_UNUSED, Evas_Image_Data *o)
+_efl_canvas_image_internal_efl_gfx_image_orientable_image_orientation_get(const Eo *obj EINA_UNUSED, Evas_Image_Data *o)
 {
    return o->orient_value;
 }