Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

thgconfig: remove shell applications configuration

Changeset 6819f7204ee6

Parent 8624684bc975

by Steve Borho

Changes to one file · Browse files at 6819f7204ee6 Showing diff from parent 8624684bc975 Diff from another changeset...

 
641
642
643
644
645
646
647
648
649
650
651
652
653
654
 
720
721
722
723
724
725
726
727
728
729
730
731
 
761
762
763
764
765
766
767
 
773
774
775
776
777
778
779
780
 
792
793
794
795
796
797
798
 
804
805
806
807
808
809
810
 
818
819
820
821
822
823
824
 
641
642
643
 
 
 
 
 
 
 
 
644
645
646
 
712
713
714
 
 
 
 
 
 
715
716
717
 
747
748
749
 
750
751
752
 
758
759
760
 
 
761
762
763
 
775
776
777
 
778
779
780
 
786
787
788
 
789
790
791
 
799
800
801
 
802
803
804
@@ -641,14 +641,6 @@
  vbox = gtk.VBox()   frame.add(vbox)   - # Text entry for supported applications - hbox = gtk.HBox() - vbox.pack_start(hbox, False, False, 2) - lbl = gtk.Label(_('Supported applications:')) - hbox.pack_start(lbl, False, False, 10) - self.shellapps = gtk.Entry() - hbox.pack_start(self.shellapps, True, True, 10) -   ovframe = gtk.Frame(_('Overlay configuration'))   ovframe.set_border_width(10)   vbox.pack_start(ovframe, False, False, 2) @@ -720,12 +712,6 @@
  check.connect('focus-in-event', self.set_help,   desctext.get_buffer(), tooltip)   - tooltip = _('A comma (,) separated list of applications that' - ' the shell extensions will support. If unspecified,' - ' it defaults to asterisk (*), supporting all apps') - self.shellapps.connect('changed', self.dirty_event) - self.shellapps.connect('focus-in-event', self.set_help, - desctext.get_buffer(), tooltip)   tooltip = _('Enable/Disable the overlay icons globally')   self.ovenable.connect('focus-in-event', self.set_help,   desctext.get_buffer(), tooltip) @@ -761,7 +747,6 @@
  self.load_shell_configs()     def load_shell_configs(self): - shellapps = '*'   includepath = ''   excludepath = ''   overlayenable = True @@ -773,8 +758,6 @@
  from _winreg import HKEY_CURRENT_USER, OpenKey, QueryValueEx   hkey = OpenKey(HKEY_CURRENT_USER, r"Software\TortoiseHg")   t = ('1', 'True') - try: shellapps = QueryValueEx(hkey, 'ShellApps')[0] - except EnvironmentError: pass   try: overlayenable = QueryValueEx(hkey, 'EnableOverlays')[0] in t   except EnvironmentError: pass   try: localdisks = QueryValueEx(hkey, 'LocalDisksOnly')[0] in t @@ -792,7 +775,6 @@
  except (ImportError, WindowsError):   pass   - self.shellapps.set_text(shellapps)   self.ovenable.set_active(overlayenable)   self.lclonly.set_active(localdisks)   self.ovdebug.set_active(overlaydebug) @@ -804,7 +786,6 @@
  check.set_active(cmd in promoted)     def save_shell_configs(self): - shellapps = self.shellapps.get_text()   overlayenable = self.ovenable.get_active() and '1' or '0'   localdisks = self.lclonly.get_active() and '1' or '0'   overlaydebug = self.ovdebug.get_active() and '1' or '0' @@ -818,7 +799,6 @@
  try:   from _winreg import HKEY_CURRENT_USER, CreateKey, SetValueEx, REG_SZ   hkey = CreateKey(HKEY_CURRENT_USER, r"Software\TortoiseHg") - SetValueEx(hkey, 'ShellApps', 0, REG_SZ, shellapps)   SetValueEx(hkey, 'EnableOverlays', 0, REG_SZ, overlayenable)   SetValueEx(hkey, 'LocalDisksOnly', 0, REG_SZ, localdisks)   SetValueEx(hkey, 'OverlayDebug', 0, REG_SZ, overlaydebug)