summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/GrowlCommunicator.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-08-26 16:47:33 +0000
committersr55 <[email protected]>2009-08-26 16:47:33 +0000
commite1bd59b0d835296f141ea8b20a41f4c34506e3e6 (patch)
tree243729e7afa7a3382b1bb5b6ba4af60b9361e63d /win/C#/Functions/GrowlCommunicator.cs
parent60fae20f233b2c8c4a0576fe46f5527e9c66552a (diff)
WinGui:
- Updated Growl to 2.0.0.20 - Added 2 new options. "Growl when queue completes" and "Growl when encode completes" - Added 1 new option. "Disable Resolution Calculation for "None" and "Custom" modes." - Changed Filters dropdown menus for consistency and to match the new layout - Fixed a problem with the Destination save dialog box double appending a file extension. Also added m4v to the filer. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2778 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/GrowlCommunicator.cs')
-rw-r--r--win/C#/Functions/GrowlCommunicator.cs15
1 files changed, 4 insertions, 11 deletions
diff --git a/win/C#/Functions/GrowlCommunicator.cs b/win/C#/Functions/GrowlCommunicator.cs
index 7403a80a2..507ebd5ac 100644
--- a/win/C#/Functions/GrowlCommunicator.cs
+++ b/win/C#/Functions/GrowlCommunicator.cs
@@ -36,8 +36,7 @@ namespace Handbrake.Functions
/// <summary>
/// Notification shown upon completion of encoding
/// </summary>
- public static NotificationType EncodingComplete;
-
+ public static NotificationType EncodeOrQueueCompleted = new NotificationType("EncodeOrQueue", "HandBrake Status");
/// <summary>
/// Checks to see if Growl is currently running on the local machine.
@@ -62,20 +61,16 @@ namespace Handbrake.Functions
public static void Register()
{
Initialize();
-
- growl.Register(application, new NotificationType[] { EncodingComplete });
+ growl.Register(application, new NotificationType[] { EncodeOrQueueCompleted });
}
/// <summary>
/// Sends a notification to Growl. (Since Handbrake currently only supports one type of notification with
/// static text, this is a shortcut method).
/// </summary>
- public static void Notify()
+ public static void Notify(string title, string text)
{
- string title = "Encoding Complete";
- string text = "Put down that cocktail...\nyour Handbrake encode is done.";
- Notification notification = new Notification(application.Name, EncodingComplete.Name, String.Empty, title, text);
-
+ Notification notification = new Notification(application.Name, EncodeOrQueueCompleted.Name, String.Empty, title, text);
growl.Notify(notification);
}
@@ -107,8 +102,6 @@ namespace Handbrake.Functions
application = new Application("Handbrake");
application.Icon = global::Handbrake.Properties.Resources.logo64;
-
- EncodingComplete = new NotificationType("Encoding Complete");
}
}
}