Adium

Changeset 22848

Show
Ignore:
Timestamp:
03/09/2008 12:20:44 AM (9 months ago)
Author:
eharris
Message:

Fixes #9373, ER to add spinner to profile loading. Also addresses some issues with font size in the Events inspector pane.

Files:

Legend:

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

    r22769 r22848  
    740740 
    741741                        if ([contactEvents count]) { 
    742                                 font = [NSFont boldSystemFontOfSize:12]; 
     742                                font = [NSFont boldSystemFontOfSize:9]; 
    743743                        } else { 
    744                                 font = [NSFont boldSystemFontOfSize:11];                               
     744                                font = [NSFont systemFontOfSize:9];                            
    745745                        } 
    746746 
     
    751751                 
    752752                        image = [actionHandler imageForActionID:actionID]; 
    753                         font = [NSFont systemFontOfSize:11]; 
     753                        font = [NSFont systemFontOfSize:9]; 
    754754                } 
    755755                 
  • trunk/Resources/AIInfoInspectorPane.nib/classes.nib

    r22782 r22848  
    8686                                <key>inspectorContentView</key> 
    8787                                <string>NSView</string> 
     88                                <key>profileProgress</key> 
     89                                <string>NSProgressIndicator</string> 
    8890                                <key>profileView</key> 
    8991                                <string>NSTextView</string> 
  • trunk/Resources/AIInfoInspectorPane.nib/info.nib

    r22619 r22848  
    44<dict> 
    55        <key>IBFramework Version</key> 
    6         <string>629</string> 
     6        <string>644</string> 
    77        <key>IBLastKnownRelativeProjectPath</key> 
    8         <string>../../Adium.xcodeproj</string> 
     8        <string>../Adium.xcodeproj</string> 
    99        <key>IBOldestOS</key> 
    1010        <integer>5</integer> 
  • trunk/Source/AIInfoInspectorPane.h

    r22620 r22848  
    3535        IBOutlet NSTextView                                                             *statusView; 
    3636        IBOutlet NSTextView                                                             *profileView; 
     37 
     38        IBOutlet NSProgressIndicator                                    *profileProgress; 
    3739} 
    3840 
  • trunk/Source/AIInfoInspectorPane.m

    r22782 r22848  
    159159 
    160160-(void)updateProfileView:(AIListObject *)inObject 
    161 { 
     161{       
    162162        [[adium contentController] filterAttributedString:([inObject isKindOfClass:[AIListContact class]] ? 
    163163                                                                                                           [(AIListContact *)inObject profile] : 
     
    173173- (void)gotFilteredProfile:(NSAttributedString *)infoString context:(AIListObject *)object 
    174174{ 
     175        //If we've been called with infoString == nil, we don't have the profile information yet. 
     176        if(!infoString && ![displayedObject isKindOfClass:[AIListGroup class]]) { 
     177                //This should only run if we get a nil string and if we aren't a group. 
     178                [profileProgress startAnimation:self]; 
     179                /*      We deal with the progress indicator's visibility manually, because sometimes it will  
     180                corrupt text when set to hide/unhide automatically.     */ 
     181                [profileProgress setHidden:NO]; 
     182                //We can freely start the progress indicator numerous times - it has no effect. 
     183        } else { 
     184                //Non-nil info string means we have some profile text and we will bet setting it. 
     185                [profileProgress stopAnimation:self]; 
     186                [profileProgress setHidden:YES]; 
     187        } 
     188         
    175189        [self setAttributedString:infoString intoTextView:profileView]; 
    176190}