adium 2567:e9d5997a22bf: Use AIImageTextCell to center the text ...
commits at adium.im
commits at adium.im
Tue Jul 28 01:34:07 UTC 2009
details: http://hg.adium.im/adium/rev/e9d5997a22bf
revision: 2567:e9d5997a22bf
author: Evan Schoenberg
date: Mon Jul 27 20:36:45 2009 -0500
Use AIImageTextCell to center the text vertically in the advanced preferences pane
diffs (52 lines):
diff -r 672f010b60cb -r e9d5997a22bf Resources/AdvancedPreferences.nib/classes.nib
--- a/Resources/AdvancedPreferences.nib/classes.nib Mon Jul 27 18:36:44 2009 -0500
+++ b/Resources/AdvancedPreferences.nib/classes.nib Mon Jul 27 20:36:45 2009 -0500
@@ -154,6 +154,14 @@
</dict>
<dict>
<key>CLASS</key>
+ <string>AISearchFieldCell</string>
+ <key>LANGUAGE</key>
+ <string>ObjC</string>
+ <key>SUPERCLASS</key>
+ <string>NSSearchFieldCell</string>
+ </dict>
+ <dict>
+ <key>CLASS</key>
<string>NSImageCell</string>
<key>LANGUAGE</key>
<string>ObjC</string>
diff -r 672f010b60cb -r e9d5997a22bf Resources/AdvancedPreferences.nib/info.nib
--- a/Resources/AdvancedPreferences.nib/info.nib Mon Jul 27 18:36:44 2009 -0500
+++ b/Resources/AdvancedPreferences.nib/info.nib Mon Jul 27 20:36:45 2009 -0500
@@ -10,10 +10,10 @@
<integer>5</integer>
<key>IBOpenObjects</key>
<array>
- <integer>34</integer>
+ <integer>15</integer>
</array>
<key>IBSystem Version</key>
- <string>9J61</string>
+ <string>9J3050</string>
<key>targetFramework</key>
<string>IBCocoaFramework</string>
</dict>
diff -r 672f010b60cb -r e9d5997a22bf Resources/AdvancedPreferences.nib/keyedobjects.nib
Binary file Resources/AdvancedPreferences.nib/keyedobjects.nib has changed
diff -r 672f010b60cb -r e9d5997a22bf Source/AIAdvancedPreferences.m
--- a/Source/AIAdvancedPreferences.m Mon Jul 27 18:36:44 2009 -0500
+++ b/Source/AIAdvancedPreferences.m Mon Jul 27 20:36:45 2009 -0500
@@ -112,6 +112,12 @@
- (void)_configureAdvancedPreferencesTable
{
[[tableView_categories enclosingScrollView] setAutohidesScrollers:YES];
+
+ AIImageTextCell *cell = [[[AIImageTextCell alloc] initTextCell:@""] autorelease];
+ [cell setFont:[NSFont systemFontOfSize:11]];
+ [cell setLineBreakMode:NSLineBreakByTruncatingTail];
+
+ [[tableView_categories tableColumnWithIdentifier:@"description"] setDataCell:cell];
//Select the previously selected row
NSInteger row = [[adium.preferenceController preferenceForKey:KEY_ADVANCED_PREFERENCE_SELECTED_ROW
More information about the commits
mailing list