shortened the search-in-help-desk string in the context menu to 50 chars or less
svn: r15547
This commit is contained in:
parent
ba4fd47407
commit
37e9d73a82
|
@ -149,14 +149,15 @@ module browser threading seems wrong.
|
|||
[name (and l (send l get-language-name))])
|
||||
(unless (string=? str "")
|
||||
(add-sep)
|
||||
(make-object menu-item%
|
||||
(gui-utils:format-literal-label
|
||||
(string-constant search-help-desk-for)
|
||||
(shorten-str
|
||||
str
|
||||
(- 200 (string-length (string-constant search-help-desk-for)))))
|
||||
menu
|
||||
(λ x (help-desk:help-desk str (list ctxt name))))))))
|
||||
(let ([short-str (shorten-str str 50)])
|
||||
(make-object menu-item%
|
||||
(gui-utils:format-literal-label
|
||||
(string-constant search-help-desk-for)
|
||||
(if (equal? short-str str)
|
||||
str
|
||||
(string-append short-str "...")))
|
||||
menu
|
||||
(λ x (help-desk:help-desk str (list ctxt name)))))))))
|
||||
|
||||
(when (is-a? text editor:basic<%>)
|
||||
(let-values ([(pos text) (send text get-pos/text event)])
|
||||
|
|
Loading…
Reference in New Issue
Block a user