From: Kangho Hur Date: Thu, 1 Aug 2019 04:34:08 +0000 (+0900) Subject: [ElmSharp] Obsolete ContextPopup.IsAvailableDirection (#954) X-Git-Tag: submit/tizen/20190802.005202~1^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a1244026601e478b1557b5f11acb5250b78a299;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [ElmSharp] Obsolete ContextPopup.IsAvailableDirection (#954) --- diff --git a/src/ElmSharp/ElmSharp/ContextPopup.cs b/src/ElmSharp/ElmSharp/ContextPopup.cs index db1a00e22..4d7e48db4 100644 --- a/src/ElmSharp/ElmSharp/ContextPopup.cs +++ b/src/ElmSharp/ElmSharp/ContextPopup.cs @@ -224,9 +224,11 @@ namespace ElmSharp /// Get false if you cannot put it in the direction. Get true if it's possible. /// /// preview + /// [Obsolete("IsAvailableDirection is obsolete as of API6 and is no longer supported.")] public bool IsAvailableDirection(ContextPopupDirection direction) { - return Interop.Elementary.elm_ctxpopup_direction_available_get(RealHandle, (int)direction); + Console.WriteLine("ContextPopup.IsAvailableDirection is obsolete as of API6 and is no longer supported."); + return false; } /// diff --git a/src/ElmSharp/Interop/Interop.Elementary.CtxPopup.cs b/src/ElmSharp/Interop/Interop.Elementary.CtxPopup.cs index e2db4ba99..47aeba431 100644 --- a/src/ElmSharp/Interop/Interop.Elementary.CtxPopup.cs +++ b/src/ElmSharp/Interop/Interop.Elementary.CtxPopup.cs @@ -42,9 +42,6 @@ internal static partial class Interop [DllImport(Libraries.Elementary)] internal static extern void elm_ctxpopup_hover_parent_set(IntPtr obj, IntPtr parent); - [DllImport(Libraries.Elementary)] - internal static extern bool elm_ctxpopup_direction_available_get(IntPtr obj, int direction); - [DllImport(Libraries.Elementary)] internal static extern void elm_ctxpopup_direction_priority_set(IntPtr obj, int first, int second, int third, int fourth);