Source/AIAdvancedPreferencesPlugin.m
author Zachary West <zacw@adium.im>
Tue Jun 02 17:22:19 2009 -0400 (2009-06-02)
changeset 2450 08aa9c3a346c
parent 2295 feae24a10fb6
child 3679 f4294bb53b0f
permissions -rw-r--r--
Create a new advanced preference called "Confirmations". Move Quit Confirmations there.

Adds a new confirmation type for closing message windows with more than 1 tab open. Fixes #12006.

This new preference has two options: always confirm, only confirm when there's unread content. Displays an alert sheet when trying to close the window.
     1 //
     2 //  AIAdvancedPreferencesPlugin.m
     3 //  Adium
     4 //
     5 //  Created by Evan Schoenberg on 4/7/07.
     6 //
     7 
     8 #import "AIAdvancedPreferencesPlugin.h"
     9 #import "AIAdvancedPreferences.h"
    10 #import "AIMessageAlertsAdvancedPreferences.h"
    11 #import "AIConfirmationsAdvancedPreferences.h"
    12 
    13 @implementation AIAdvancedPreferencesPlugin
    14 
    15 - (void)installPlugin
    16 {
    17 	[AIAdvancedPreferences preferencePane];
    18 	
    19 	// Generic advanced panes with no specific plugins.
    20 	messageAlertsPreferences = [[AIMessageAlertsAdvancedPreferences preferencePane] retain];
    21 	confirmationsPreferences = [[AIConfirmationsAdvancedPreferences preferencePane] retain];
    22 }
    23 
    24 @end