Add Elementary.GetProfile 75/111075/1
authorKangho Hur <kangho.hur@samsung.com>
Thu, 19 Jan 2017 10:03:21 +0000 (19:03 +0900)
committerKangho Hur <kangho.hur@samsung.com>
Thu, 19 Jan 2017 10:03:21 +0000 (19:03 +0900)
Change-Id: I902a84f9ff3cf7bf61f9114a2c66bc799600f139

ElmSharp.Test/TestRunner.cs
ElmSharp/ElmSharp/Elementary.cs
ElmSharp/Interop/Interop.Elementary.cs [changed mode: 0755->0644]
packaging/elm-sharp.spec

index b59f07f..9c759dc 100644 (file)
@@ -201,6 +201,8 @@ namespace ElmSharp.Test
             Elementary.Initialize();
             Elementary.ThemeOverlay();
 
+            Console.WriteLine("ELM_PROFILE : {0}", Elementary.GetProfile());
+
             TestRunner testRunner = new TestRunner();
             testRunner.Run(args);
 
index f35fce3..31eb5fd 100644 (file)
@@ -21,7 +21,7 @@ namespace ElmSharp
 {
     public static class Elementary
     {
-        private static readonly string _themeFilePath = "/usr/share/elm-sharp/elm-sharp-theme.edj";
+        private static readonly string _themeFilePath = "/usr/share/edje/elm-sharp/elm-sharp-theme.edj";
 
         public static void Initialize()
         {
@@ -55,5 +55,10 @@ namespace ElmSharp
         {
             Interop.Elementary.elm_config_scroll_bring_in_scroll_friction_set(timeSet);
         }
+
+        public static string GetProfile()
+        {
+            return Interop.Elementary.elm_config_profile_get();
+        }
     }
 }
old mode 100755 (executable)
new mode 100644 (file)
index 4488d14..1474d14
@@ -31,6 +31,9 @@ internal static partial class Interop
         internal static extern IntPtr elm_config_accel_preference_set(string preference);
 
         [DllImport(Libraries.Elementary)]
+        internal static extern string elm_config_profile_get();
+
+        [DllImport(Libraries.Elementary)]
         internal static extern void elm_object_tree_dump(IntPtr top);
 
         [DllImport(Libraries.Elementary)]
index 8e0f8ae..9def293 100644 (file)
@@ -1,4 +1,4 @@
-%define DEV_VERSION beta-008
+%define DEV_VERSION beta-009
 
 Name:       elm-sharp
 Summary:    C# Binding for Elementary