/*
* $Id: STPreferences.m 198 2010-01-06 23:05:30Z stuart $
*
* SafariTabs
* http://stuconnolly.com/projects/safaritabs/
*
* Copyright (c) 2010 Stuart Connolly. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#import "STPreferences.h"
#import "STPreferenceController.h"
#import "STUtilities.h"
#import "STConstants.h"
static BOOL added = NO;
@interface STPreferences (DeclaredAPI)
- (void)safari_setupUI;
- (void)addPreferenceNamed
:(NSString *)name owner
:(id)owner;
@end
@implementation STPreferences
/*!
* This is the re-implementation of Safari's swizzled _setupUI: method, which allows us to add our own custom
* preference pane to Safari's preferences window.
*/
- (void)st_setupUI
{
if ((self) && (!added)) {
added = YES;
[self addPreferenceNamed:@"SafariTabs" owner:[STPreferenceController sharedInstance]];
}
[self safari_setupUI];
}
@end