summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-02-21 11:13:26 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-02-21 11:13:26 +0900
commitc9cdbdda36282bd5935c82ab4e74ffcaa5376259 (patch)
tree23ed199b8afa0767d5cc2bf6ca148be1efd11f0a
parent22095af77a7f932c55c1557899e355d06fb99a0c (diff)
downloadelm-sharp-c9cdbdda36282bd5935c82ab4e74ffcaa5376259.tar.gz
elm-sharp-c9cdbdda36282bd5935c82ab4e74ffcaa5376259.tar.bz2
elm-sharp-c9cdbdda36282bd5935c82ab4e74ffcaa5376259.zip
Do not use layout for Label and Entry.
- It will be fixed if some bugs are fixed. - As a result, with this change, Opacity property is not available in Label and Entry. Change-Id: I52cb7953873483922e52b6e51d2b3b78e342acba
-rw-r--r--[-rwxr-xr-x]ElmSharp/ElmSharp/Entry.cs9
-rw-r--r--[-rwxr-xr-x]ElmSharp/ElmSharp/Label.cs9
2 files changed, 4 insertions, 14 deletions
diff --git a/ElmSharp/ElmSharp/Entry.cs b/ElmSharp/ElmSharp/Entry.cs
index 5647f03..83a7e1b 100755..100644
--- a/ElmSharp/ElmSharp/Entry.cs
+++ b/ElmSharp/ElmSharp/Entry.cs
@@ -305,13 +305,8 @@ namespace ElmSharp
protected override IntPtr CreateHandle(EvasObject parent)
{
- IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
- Interop.Elementary.elm_layout_theme_set(handle, "layout", "elm_widget", "default");
-
- RealHandle = Interop.Elementary.elm_entry_add(handle);
- Interop.Elementary.elm_object_part_content_set(handle, "elm.swallow.content", RealHandle);
-
- return handle;
+ //TODO: Fix this to use layout
+ return Interop.Elementary.elm_entry_add(parent.Handle);
}
}
}
diff --git a/ElmSharp/ElmSharp/Label.cs b/ElmSharp/ElmSharp/Label.cs
index 1bcb5b3..6c30010 100755..100644
--- a/ElmSharp/ElmSharp/Label.cs
+++ b/ElmSharp/ElmSharp/Label.cs
@@ -100,13 +100,8 @@ namespace ElmSharp
protected override IntPtr CreateHandle(EvasObject parent)
{
- IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
- Interop.Elementary.elm_layout_theme_set(handle, "layout", "elm_widget", "default");
-
- RealHandle = Interop.Elementary.elm_label_add(handle);
- Interop.Elementary.elm_object_part_content_set(handle, "elm.swallow.content", RealHandle);
-
- return handle;
+ //TODO: Fix this to use layout
+ return Interop.Elementary.elm_label_add(parent.Handle);
}
}