Revision: 4730
http://skim-app.svn.sourceforge.net/skim-app/?rev=4730&view=rev
Author: hofman
Date: 2008-10-03 13:08:19 +0000 (Fri, 03 Oct 2008)
Log Message:
-----------
disable empty cell in shown note type sheet
Modified Paths:
--------------
trunk/SKNoteOutlineView.m
Modified: trunk/SKNoteOutlineView.m
===================================================================
--- trunk/SKNoteOutlineView.m 2008-10-03 11:03:58 UTC (rev 4729)
+++ trunk/SKNoteOutlineView.m 2008-10-03 13:08:19 UTC (rev 4730)
@@ -53,13 +53,17 @@
}
- (void)awakeFromNib {
- [self noteTypeMenu]; // this sets the menu for the header view
- id cell = [[[NSActionCell alloc] init] autorelease];
- [cell setTag:-1];
- [noteTypeMatrix putCell:cell atRow:4 column:0];
- NSNumber *fontSize = [[NSUserDefaults standardUserDefaults]
objectForKey:SKTableFontSizeKey];
- if (fontSize)
- [self setFont:[NSFont systemFontOfSize:[fontSize floatValue]]];
+ if (noteTypeMatrix) {
+ id cell = [[[NSActionCell alloc] init] autorelease];
+ [cell setTag:-1];
+ [cell setEnabled:NO];
+ [noteTypeMatrix putCell:cell atRow:4 column:0];
+ } else {
+ [self noteTypeMenu]; // this sets the menu for the header view
+ NSNumber *fontSize = [[NSUserDefaults standardUserDefaults]
objectForKey:SKTableFontSizeKey];
+ if (fontSize)
+ [self setFont:[NSFont systemFontOfSize:[fontSize floatValue]]];
+ }
}
- (void)resizeRow:(int)row withEvent:(NSEvent *)theEvent {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit