Adium

Changeset 23638

Show
Ignore:
Timestamp:
05/25/2008 03:59:36 PM (6 months ago)
Author:
zacw
Message:

Recalculate the height of the contact events inspector when the columns change size (fixes #9893), remove the selection ring around the events view, and fixes the inspector seizuring when resizing.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/Adium Framework/Source/ESContactAlertsViewController.m

    r23164 r23638  
    6262        [self configureEventSummaryOutlineView]; 
    6363         
     64        [[adium notificationCenter] addObserver:self 
     65                                                                   selector:@selector(outlineViewColumnDidResize:) 
     66                                                                           name:NSOutlineViewColumnDidResizeNotification 
     67                                                                         object:outlineView_summary]; 
     68         
    6469        //Manually size and position our buttons 
    6570        { 
     
    100105- (void)viewWillClose 
    101106{ 
     107        [[adium notificationCenter] removeObserver:self]; 
    102108        [[adium preferenceController] unregisterPreferenceObserver:self]; 
    103109} 
     
    107113        //Ensure that we have unregistered as a preference observer 
    108114        [[adium preferenceController] unregisterPreferenceObserver:self]; 
     115        [[adium notificationCenter] removeObserver:self]; 
    109116 
    110117        [outlineView_summary setDelegate:nil]; 
     
    134141{ 
    135142        return delegate; 
     143} 
     144 
     145- (void)outlineViewColumnDidResize:(NSNotification *)notification 
     146{ 
     147        [self calculateAllHeights]; 
     148        [outlineView_summary noteHeightOfRowsWithIndexesChanged:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [outlineView_summary numberOfRows]-1)]]; 
    136149} 
    137150 
     
    339352        return [(NSString *)[objectA objectForKey:KEY_ACTION_ID] compare:(NSString *)[objectB objectForKey:KEY_ACTION_ID]]; 
    340353} 
    341  
    342354 
    343355- (void)calculateHeightForItem:(id)item 
  • trunk/Resources/AIEventsInspectorPane.nib/classes.nib

    r23226 r23638  
    102102                </dict> 
    103103                <dict> 
    104                         <key>CLASS</key> 
    105                         <string>NSButton</string> 
    106                         <key>LANGUAGE</key> 
    107                         <string>ObjC</string> 
    108                         <key>SUPERCLASS</key> 
    109                         <string>NSControl</string> 
    110                 </dict> 
    111                 <dict> 
    112104                        <key>ACTIONS</key> 
    113105                        <dict> 
     
    140132                        <key>SUPERCLASS</key> 
    141133                        <string>AIObject</string> 
     134                </dict> 
     135                <dict> 
     136                        <key>CLASS</key> 
     137                        <string>NSButton</string> 
     138                        <key>LANGUAGE</key> 
     139                        <string>ObjC</string> 
     140                        <key>SUPERCLASS</key> 
     141                        <string>NSControl</string> 
    142142                </dict> 
    143143                <dict>