Add ThemeOverlay() API in Elementary.
authorJEONGHYUN YUN <jh0506.yun@samsung.com>
Mon, 31 Oct 2016 08:03:36 +0000 (17:03 +0900)
committerJEONGHYUN YUN <jh0506.yun@samsung.com>
Mon, 31 Oct 2016 08:05:19 +0000 (17:05 +0900)
Change-Id: I482c7e5250d9475a5213687e01b282a15cb1a133
Signed-off-by: JEONGHYUN YUN <jh0506.yun@samsung.com>
packaging/elm-sharp.spec
src/ElmSharp/ElmSharp/Elementary.cs
test/ElmSharp.Test/TestRunner.cs

index e05a391..13ef7c3 100644 (file)
@@ -8,7 +8,7 @@
 
 Name:       elm-sharp
 Summary:    C# Binding for Elementary
-Version:    1.0.10
+Version:    1.0.11
 Release:    1
 Group:      Development/Libraries
 License:    Apache-2.0
index 6213b3f..7b59ed6 100755 (executable)
@@ -10,10 +10,6 @@ namespace ElmSharp
         public static void Initialize()
         {
             Interop.Elementary.elm_init(0, null);
-            if (File.Exists(_themeFilePath))
-            {
-                Interop.Elementary.elm_theme_overlay_add(IntPtr.Zero, _themeFilePath);
-            }
         }
 
         public static void Shutdown()
@@ -26,6 +22,14 @@ namespace ElmSharp
             Interop.Elementary.elm_run();
         }
 
+        public static void ThemeOverlay()
+        {
+            if (File.Exists(_themeFilePath))
+            {
+                Interop.Elementary.elm_theme_overlay_add(IntPtr.Zero, _themeFilePath);
+            }
+        }
+
         public static double GetSystemScrollFriction()
         {
             return Interop.Elementary.elm_config_scroll_bring_in_scroll_friction_get();
index 52fc071..47dac8b 100644 (file)
@@ -40,6 +40,7 @@ namespace ElmSharp.Test
             ResourceDir = Path.Combine(Path.GetDirectoryName(typeof(TestRunner).GetTypeInfo().Assembly.Location), "res");
 
             Elementary.Initialize();
+            Elementary.ThemeOverlay();
 
             EcoreSynchronizationContext.Initialize();