On 2006-04-02 15:22:33 +0200 Chris Vetter <[EMAIL PROTECTED]> wrote:
attached you will find a unified DIFF (actually two ;-) that add

Two additional diffs, made against the current SVN checkout:

a) DictConnection displays, eg. "151 foldoc..."
The patch removes the '151' in a very simplistic manner.

--- DictConnection.m.ORG        Sun Apr  2 18:56:30 2006
+++ DictConnection.m    Sun Apr  2 18:58:54 2006
@@ -128,6 +128,7 @@
       answer = [reader readLineAndRetry];
       if ([answer startsWith: @"151"]) {
        // TODO: Extract database information here!
+       answer = [answer substringFromIndex: 3];
        [defWriter writeHeadline: answer];

        BOOL lastLine = NO;

b) If you have a definition and scroll down, then click on a link, the scroll bar wil (more or less) stay at the position you scrolled to. The second patch will make sure the scroll bar is at the top for a new definition.

--- AppController.m.ORG Sun Apr  2 18:56:30 2006
+++ AppController.m     Sun Apr  2 19:02:12 2006
@@ -46,6 +46,11 @@
       attributes: attributes];
   [[searchResultView textStorage] appendAttributedString: attrStr];
   [attrStr release];
+
+  // Make sure the scroller is at the top
+  [searchResultView scrollRangeToVisible: NSMakeRange(0., 0.)];
+  [searchResultView setSelectedRange: NSMakeRange(0., 0.)];
+  [searchResultView setNeedsDisplay: YES];
 }


Suggestion for a new version:
Change searchStringControl to be a drop down that keeps the latest 10 words. And maybe save them as sort of a history to the defaults upon exiting.

I'd also prefer the links to be in a different colour than blue. I use a huge resolution 1900x1600 and fonts are relatively small so it's hard (for me) to distinguish between black and blue.

--
Chris


_______________________________________________
Etoile-dev mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-dev

Reply via email to