[gitg] win32: add context menu actions



commit fa1b007d9e766c8fa00fa69bbe263bd365c22d81
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Jan 11 17:49:16 2016 +0100

    win32: add context menu actions
    
    Add a "Gitg Here" context menu action which opens
    the current repository if there is one.

 win32/installer/gitg.wxs |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/win32/installer/gitg.wxs b/win32/installer/gitg.wxs
index ada3c55..78045e8 100644
--- a/win32/installer/gitg.wxs
+++ b/win32/installer/gitg.wxs
@@ -11,6 +11,7 @@
     <Feature Id="gitg" Title="gitg" Level="1">
       <ComponentGroupRef Id="binaries" />
       <ComponentGroupRef Id="startMenuShortcuts" />
+      <ComponentGroupRef Id="contextMenuShortcuts" />
       <ComponentGroupRef Id="licenseFiles" />
     </Feature>
 
@@ -68,6 +69,15 @@
       </Component>
     </ComponentGroup>
 
+    <ComponentGroup Id="contextMenuShortcuts">
+      <Component Id="contextShortcuts" Guid="A457CA3A-AA5E-42BA-A3B6-6D650561B565" Directory="INSTALLDIR">
+        <RegistryValue Key="Software\Classes\Directory\Background\shell\gitg" Root="HKCU" Type="string" 
Value="Gitg Here" />
+        <RegistryValue Key="Software\Classes\Directory\Background\shell\gitg\command" Root="HKCU" 
Type="string" Value="[INSTALLDIR]bin\gitg.exe" />
+        <RegistryValue Key="Software\Classes\Directory\shell\gitg" Root="HKCU" Type="string" Value="Gitg 
Here" />
+        <RegistryValue Key="Software\Classes\Directory\shell\gitg\command" Root="HKCU" Type="string" 
Value="[INSTALLDIR]bin\gitg.exe &quot;&#37;1&quot;" />
+      </Component>
+    </ComponentGroup>
+
     <ComponentGroup Id="licenseFiles" Directory="gitg_license">
       <Component Id="COPYING.rtf" Guid="*">
         <File Id="COPYING.rtf" Name="COPYING.rtf" Source="$(var.LicenseFile)" />


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]