elm_ctxpopup: add EINA_DEPREACATED for deprecated elm_ctxpopup_direction_available_get 92/166492/2
authorTaehyub Kim <taehyub.kim@samsung.com>
Wed, 10 Jan 2018 10:36:39 +0000 (19:36 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Tue, 16 Jan 2018 07:40:05 +0000 (07:40 +0000)
Change-Id: I09bb70d80e841b33e3163a4f61741b305caf54a8

src/lib/elementary/elc_ctxpopup.c
src/lib/elementary/elm_deprecated.h

index 5cfac6b..b751122 100644 (file)
@@ -1455,6 +1455,20 @@ _elm_ctxpopup_direction_get(Eo *obj EINA_UNUSED, Elm_Ctxpopup_Data *sd)
    return sd->dir;
 }
 
+// TIZEN_ONLY(20160126): add direction available get function, it will be deprecated soon
+EINA_DEPRECATED EAPI Eina_Bool
+elm_ctxpopup_direction_available_get(Evas_Object *obj, Elm_Ctxpopup_Direction direction)
+{
+   ELM_CTXPOPUP_CHECK(obj) EINA_FALSE;
+   ELM_CTXPOPUP_DATA_GET(obj, sd);
+
+   elm_layout_sizing_eval(obj);
+
+   if (sd->dir == direction) return EINA_TRUE;
+   return EINA_FALSE;
+}
+//
+
 EOLIAN static void
 _elm_ctxpopup_dismiss(Eo *obj, Elm_Ctxpopup_Data *sd)
 {
index 144b35a..fa4fed1 100644 (file)
@@ -1652,6 +1652,21 @@ EINA_DEPRECATED EAPI const char *elm_fileselector_entry_selected_get(const Evas_
 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);
 
+/**
+ * @deprecated Deprecated since 2.4.
+ * @ingroup Elm_Ctxpopup
+ *
+ * @param[in] obj The object.
+ * @param[in] direction The direction to check available to show ctxpopup.
+ *
+ * @return EINA_TRUE if object is available to show with @p direction.
+ *
+ * @if MOBILE @since_tizen 2.3
+ * @elseif WEARABLE @since_tizen 2.3.1
+ * @endif
+ */
+EINA_DEPRECATED EAPI Eina_Bool elm_ctxpopup_direction_available_get(Evas_Object *obj, Elm_Ctxpopup_Direction direction);
+
 // elm_win
 /*TIZEN_ONLY(20171214): tizen need to change win type after win creating
 EINA_DEPRECATED EAPI void elm_win_type_set(Evas_Object *obj, Elm_Win_Type type);