Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cummings <mcumming@microsoft.com>2019-08-07 17:21:03 +0300
committerMichael Cummings <mcumming@microsoft.com>2019-08-09 18:28:28 +0300
commit2102683398a84ee16094fc4bcae3dac44ba31872 (patch)
tree8ff1ff0ef8964949f79df28aeafc8a115d0276b3 /Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
parent6db4035791d5f081dc8e8e25a1f576e335e5b06e (diff)
Add XamMac and Gtk backends
Diffstat (limited to 'Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs')
-rw-r--r--[-rwxr-xr-x]Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
index 8bb0514b..85cf7c28 100755..100644
--- a/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
@@ -220,7 +220,15 @@ namespace Xwt.GtkBackend
Button b = (Button) Frontend;
SetContent (b.Label, b.UseMnemonic, image, b.ImagePosition);
}
-
+
+ public void SetFormattedText (FormattedText text)
+ {
+ if (labelWidget != null) {
+ labelWidget.Text = text.Text;
+ text.ApplyToLabel (labelWidget);
+ }
+ }
+
public override void EnableEvent (object eventId)
{
base.EnableEvent (eventId);