elm_win: Fix ABI break with missing EAPIs
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 11 Aug 2016 22:44:08 +0000 (07:44 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 11 Aug 2016 23:11:54 +0000 (08:11 +0900)
EAPI elm_win_type_set
EAPI elm_win_name_set

Those two APIs should never have been part of the legacy API,
but they have been generated since at least 1.16. The commits
  1aceb3bc198f3f9a07671f37564efc6657fe2a41
and
  41aa19447c2a324a8cca59799a0a058fea56b575
removed the legacy symbols generation. It seemed like a good
idea since the APIs shouldn't exist, but in fact this broke
ABI. I hate this. So sorry about it.

I'm adding them back in with no documentation and as
EINA_DEPRECATED.

This is an emergency commit before the 1.18.x release
announcement.

Fixes T4344
@fix

src/lib/elementary/efl_ui_win.c
src/lib/elementary/efl_ui_win.eo
src/lib/elementary/elm_deprecated.h

index 5560e5f..522557e 100644 (file)
@@ -6979,4 +6979,19 @@ elm_win_aspect_get(const Eo *obj)
    return _win_aspect_get(sd);
 }
 
+// deprecated
+EAPI void
+elm_win_name_set(Evas_Object *obj, const char *name)
+{
+   ERR("Calling deprecrated function '%s'", __FUNCTION__);
+   efl_ui_win_name_set(obj, name);
+}
+
+EAPI void
+elm_win_type_set(Evas_Object *obj, Elm_Win_Type type)
+{
+   ERR("Calling deprecrated function '%s'", __FUNCTION__);
+   efl_ui_win_type_set(obj, type);
+}
+
 #include "efl_ui_win.eo.c"
index c4ef976..8bcd0f0 100644 (file)
@@ -557,12 +557,6 @@ class Efl.Ui.Win (Elm.Widget, Efl.Canvas, Elm.Interface.Atspi.Window,
 
            Note: Once set, it can NOT be modified afterward.
          ]]
-         /* FIXME-doc
-         Example:
-         @code
-         win = eo_add(ELM_WIN_CLASS, NULL, elm_obj_win_name_set(ELM_WIN_BASIC));
-         @endcode
-         */
          set {
             [[Can only be used at creation time, within \@ref eo_add.]]
             legacy: null;
@@ -582,12 +576,6 @@ class Efl.Ui.Win (Elm.Widget, Efl.Canvas, Elm.Interface.Atspi.Window,
 
            Note: Once set, it can NOT be modified afterward.
          ]]
-         /* FIXME-doc
-         Example:
-         @code
-         win = eo_add(ELM_WIN_CLASS, NULL, elm_obj_win_type_set(ELM_WIN_BASIC));
-         @endcode
-         */
          set {
             [[Can only be used at creation time, within \@ref eo_add.]]
             legacy: null;
index 91c556c..db62228 100644 (file)
@@ -1640,3 +1640,7 @@ EINA_DEPRECATED EAPI const char *elm_fileselector_entry_selected_get(const Evas_
 //TODO: remvoe below - use elm_access_text_set(); or elm_access_cb_set();
 EINA_DEPRECATED EAPI void elm_access_external_info_set(Evas_Object *obj, const char *text);
 EINA_DEPRECATED EAPI char *elm_access_external_info_get(const Evas_Object *obj);
+
+// elm_win
+EINA_DEPRECATED EAPI void elm_win_type_set(Evas_Object *obj, Elm_Win_Type type);
+EINA_DEPRECATED EAPI void elm_win_name_set(Evas_Object *obj, const char *name);