Revision: 4757
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4757&view=rev
Author:   hofman
Date:     2008-10-08 09:51:35 +0000 (Wed, 08 Oct 2008)

Log Message:
-----------
avoid a compiler warning

Modified Paths:
--------------
    trunk/SKNotesDocument.m

Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m     2008-10-07 22:09:21 UTC (rev 4756)
+++ trunk/SKNotesDocument.m     2008-10-08 09:51:35 UTC (rev 4757)
@@ -630,16 +630,14 @@
     
     // Add template toolbar items
     
-    NSSize minSize = [searchField frame].size;
-    NSSize maxSize = minSize;
-    maxSize.width = 1000.0;
-    
     item = [[SKToolbarItem alloc] 
initWithItemIdentifier:SKNotesDocumentSearchToolbarItemIdentifier];
     [item setLabels:NSLocalizedString(@"Search", @"Toolbar item label")];
     [item setToolTip:NSLocalizedString(@"Search Notes", @"Tool tip message")];
     [item setView:searchField];
-    [item setMinSize:minSize];
-    [item setMaxSize:maxSize];
+    NSSize size = [searchField frame].size;
+    [item setMinSize:size];
+    size.width = 1000.0;
+    [item setMaxSize:size];
     [toolbarItems setObject:item 
forKey:SKNotesDocumentSearchToolbarItemIdentifier];
     [item release];
     


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

Reply via email to