summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-10-07 16:33:43 +0000
committersr55 <[email protected]>2012-10-07 16:33:43 +0000
commitf927548ff52e38d35ca18d70aed7b399aed65bd8 (patch)
tree3a9accb25f51e062b22cb69c7716aa70316ed2a8 /win/CS/HandBrakeWPF/Views/ShellView.xaml.cs
parentd5e59956d359b156e086e7ce36a2b6cb358d3c5c (diff)
WinGui: Remove the Windows API Code Pack Library, it's no longer needed with .NET 4 since we can use .NETs built in taskbar progress states. Removed some other libraries we no longer use.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5005 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/ShellView.xaml.cs')
-rw-r--r--win/CS/HandBrakeWPF/Views/ShellView.xaml.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs b/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs
index 9a24120e1..77b0d858c 100644
--- a/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs
+++ b/win/CS/HandBrakeWPF/Views/ShellView.xaml.cs
@@ -12,6 +12,8 @@ namespace HandBrakeWPF.Views
using System.Windows;
using System.Windows.Input;
+ using HandBrake.ApplicationServices.Utilities;
+
using HandBrakeWPF.Commands;
using HandBrakeWPF.ViewModels.Interfaces;
@@ -42,6 +44,12 @@ namespace HandBrakeWPF.Views
this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.A, ModifierKeys.Control)), new KeyGesture(Key.A, ModifierKeys.Control)));
this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.F, ModifierKeys.Control)), new KeyGesture(Key.F, ModifierKeys.Control)));
this.InputBindings.Add(new InputBinding(new ProcessShortcutCommand(new KeyGesture(Key.R, ModifierKeys.Control)), new KeyGesture(Key.R, ModifierKeys.Control)));
+
+ // Enable Windows 7 Taskbar progress indication.
+ if (this.TaskbarItemInfo == null)
+ {
+ this.TaskbarItemInfo = Win7.WindowsTaskbar;
+ }
}
/// <summary>