adium-1.4 2907:12d33a0e7541: Added hidden preference AIDisableCo...

commits at adium.im commits at adium.im
Sun Mar 14 02:45:02 UTC 2010


details:	http://hg.adium.im/adium-1.4/rev/12d33a0e7541
revision:	2907:12d33a0e7541
author:		Evan Schoenberg
date:		Sat Nov 21 15:31:05 2009 -0600

Added hidden preference AIDisableContactListTypeToFind which, if set to true, turns off automatic filter bar display when typing in the contact list
(transplanted from d3077a9b1875a87822046ef498e230537164c0e6)

diffs (23 lines):

diff -r 5440bbb3ac1f -r 12d33a0e7541 Source/AIListWindowController.m
--- a/Source/AIListWindowController.m	Sat Mar 13 20:30:05 2010 -0600
+++ b/Source/AIListWindowController.m	Sat Nov 21 15:31:05 2009 -0600
@@ -94,7 +94,8 @@
 	if ((self = [self initWithWindowNibName:[[self class] nibName]])) {
 		preventHiding = NO;
 		previousAlpha = 0;
-		
+		typeToFindEnabled = ![[NSUserDefaults standardUserDefaults] boolForKey:@"AIDisableContactListTypeToFind"];
+
 		[NSBundle loadNibNamed:@"Filter Bar" owner:self];
 		
 		[self setContactList:contactList];
@@ -1597,6 +1598,9 @@
  */
 - (BOOL)forwardKeyEventToFindPanel:(NSEvent *)theEvent;
 {
+	if (!typeToFindEnabled)
+		return NO;
+
 	//if we were not searching something before, we need to show the filter bar first without animation
 	NSString	*charString = [theEvent charactersIgnoringModifiers];
 	unichar		pressedChar = 0;



More information about the commits mailing list