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

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Stedfast <jestedfa@microsoft.com>2019-01-11 00:08:56 +0300
committerJeffrey Stedfast <jestedfa@microsoft.com>2019-03-13 17:58:53 +0300
commit1ec33692a8aefd8cace09e56a0fcf3f86befdaaa (patch)
treeede95d20bd84ec20790a14a6c1d8d7cc2a19ec62 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components/InformationPopoverWidget.cs
parent1386a7112ad3e691cdb11052d127480069075c14 (diff)
[Ide] Added support for InformationPopoverWidget and EventBoxTooltip to use Markup.
This is needed for Android and iOS addins which expect to be able to use markup in tooltips.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components/InformationPopoverWidget.cs')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components/InformationPopoverWidget.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/InformationPopoverWidget.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/InformationPopoverWidget.cs
index 446faa8a23..6ec1a549c9 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/InformationPopoverWidget.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/InformationPopoverWidget.cs
@@ -35,6 +35,7 @@ namespace MonoDevelop.Components
TaskSeverity severity;
Xwt.ImageView imageView;
string message;
+ bool markup;
TooltipPopoverWindow popover;
PopupPosition popupPosition = PopupPosition.Top;
@@ -72,6 +73,14 @@ namespace MonoDevelop.Components
}
}
+ public bool UseMarkup {
+ get { return markup; }
+ set {
+ markup = value;
+ UpdatePopover ();
+ }
+ }
+
public PopupPosition PopupPosition {
get { return popupPosition; }
set {
@@ -127,7 +136,10 @@ namespace MonoDevelop.Components
popover.Destroy ();
popover = TooltipPopoverWindow.Create (!WorkaroundNestedDialogFlickering ());
popover.ShowArrow = true;
- popover.Text = message;
+ if (markup)
+ popover.Markup = message;
+ else
+ popover.Text = message;
popover.Severity = severity;
popover.ShowPopup (this, popupPosition);
}