summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]ElmSharp/ElmSharp/Layout.cs9
-rwxr-xr-x[-rw-r--r--]ElmSharp/ElmSharp/Widget.cs5
2 files changed, 13 insertions, 1 deletions
diff --git a/ElmSharp/ElmSharp/Layout.cs b/ElmSharp/ElmSharp/Layout.cs
index 217a0a3..3de5e8e 100644..100755
--- a/ElmSharp/ElmSharp/Layout.cs
+++ b/ElmSharp/ElmSharp/Layout.cs
@@ -251,7 +251,7 @@ namespace ElmSharp
/// <summary>
/// Sets the layout content.
/// </summary>
- /// <param name="swallow">The swallow part name in the edje file</param>
+ /// <param name="part">The swallow part name in the edje file</param>
/// <param name="content">The child that will be added in this layout object.</param>
/// <returns>TRUE on success, FALSE otherwise</returns>
public override bool SetPartContent(string part, EvasObject content)
@@ -259,6 +259,13 @@ namespace ElmSharp
return SetPartContent(part, content, false);
}
+ /// <summary>
+ /// Sets the layout content.
+ /// </summary>
+ /// <param name="part">The name of particular part</param>
+ /// <param name="content">The content</param>
+ /// <param name="preserveOldContent">true, preserve old content will be unset. false, preserve old content will not be unset.</param>
+ /// <returns>TRUE on success, FALSE otherwise</returns>
public override bool SetPartContent(string part, EvasObject content, bool preserveOldContent)
{
if (preserveOldContent)
diff --git a/ElmSharp/ElmSharp/Widget.cs b/ElmSharp/ElmSharp/Widget.cs
index d18e047..f1df744 100644..100755
--- a/ElmSharp/ElmSharp/Widget.cs
+++ b/ElmSharp/ElmSharp/Widget.cs
@@ -87,6 +87,11 @@ namespace ElmSharp
_unfocused.On += (s, e) => Unfocused?.Invoke(this, EventArgs.Empty);
}
+ /// <summary>
+ /// Update the part contents
+ /// </summary>
+ /// <param name="content">The content which put to the part</param>
+ /// <param name="part">The updated part</param>
protected void UpdatePartContents(EvasObject content, string part = "__default__")
{
_partContents[part] = content;