aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/Desktop.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-13 15:51:19 -0400
committerMichael <[email protected]>2017-05-13 15:51:19 -0400
commitb1cace7807f28deff51f06665d544a4246879a82 (patch)
tree4d5cc480d8af931e65052c40b04fbdd7f4290a5a /ShiftOS_TheReturn/Desktop.cs
parentc0f0e99f9d2a092209e710107c1f061fc8a2eaca (diff)
downloadshiftos_thereturn-b1cace7807f28deff51f06665d544a4246879a82.tar.gz
shiftos_thereturn-b1cace7807f28deff51f06665d544a4246879a82.tar.bz2
shiftos_thereturn-b1cace7807f28deff51f06665d544a4246879a82.zip
Newer notification system (PANEL ICONS :D)
Diffstat (limited to 'ShiftOS_TheReturn/Desktop.cs')
-rw-r--r--ShiftOS_TheReturn/Desktop.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/ShiftOS_TheReturn/Desktop.cs b/ShiftOS_TheReturn/Desktop.cs
index bc17a8e..a5e7f43 100644
--- a/ShiftOS_TheReturn/Desktop.cs
+++ b/ShiftOS_TheReturn/Desktop.cs
@@ -102,7 +102,14 @@ namespace ShiftOS.Engine
/// Gets the name of the desktop.
/// </summary>
string DesktopName { get; }
-
+
+ /// <summary>
+ /// Show a notification on the desktop.
+ /// </summary>
+ /// <param name="app">An application ID (for determining what system icon to show the notification alongside)</param>
+ /// <param name="title">The title of the notification.</param>
+ /// <param name="message">Isn't this.... self explanatory?</param>
+ void PushNotification(string app, string title, string message);
/// <summary>
/// Performs most of the skinning and layout handling for the desktop.
@@ -266,6 +273,14 @@ namespace ShiftOS.Engine
{
_desktop.HideAppLauncher();
}
+
+ public static void PushNotification(string app, string title, string msg)
+ {
+ InvokeOnWorkerThread(() =>
+ {
+ _desktop.PushNotification(app, title, msg);
+ });
+ }
}
// sorry i almost killed everything :P
}