Commits

Ivan Vučica committed 323212b

Removed call to +[NSRunLoop mainRunLoop] which doesn't exist under GNUstep. Using +[NSRunLoop currentRunLoop] will suffice.

Comments (0)

Files changed (1)

OPML/OPMLDocument.m

 {
     
     NSSize oldSize = [_outlineScrollView frame].size;
-    [_outlineScrollView setFrameSize:NSMakeSize([_outlineScrollView frame].size.height, 17)];
+    [_outlineScrollView setFrameSize:NSMakeSize([_outlineScrollView frame].size.width, 17)];
     
     NSString * vertScrollString = [_outline documentAttributeValueForKey:@"vertScrollState"];
     int index = [vertScrollString intValue]-1;
     [_outlineView scrollRowToVisible:index];
     
     // allow a refresh to occur
-    #if !GNUSTEP
-    [[NSRunLoop mainRunLoop] runUntilDate:[NSDate distantPast]];
-    #endif
+    [[NSRunLoop currentRunLoop] runUntilDate:[NSDate distantPast]];
 
     [_outlineScrollView setFrameSize:oldSize];
     
 {
     [_statusProgress startAnimation:nil];
     [_statusLabel setStringValue:@"Loading an OPML inclusion..."];
-    [[NSRunLoop mainRunLoop] runUntilDate:[NSDate distantPast]]; // refresh ui
+    [[NSRunLoop currentRunLoop] runUntilDate:[NSDate distantPast]]; // refresh ui
 }
 - (void)outlineInclusionLoadingEnded:(NSNotification*)aNote
 {