Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions gui-doc/scribblings/gui/editor-admin-class.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,9 @@ Does nothing.

@popupmenuinfo[@elem{administrator's @techlink{display}}
@elem{top-level editor in this administrator's @techlink{display}}
@elem{The result is @racket[#t] if the popup succeeds,
@racket[#f] otherwise (independent of whether the
@elem{The result is @racket[#f] if this admin is not connected to
a canvas or the canvas it is connected to does not have an editor,
@racket[#t] otherwise (independent of whether the
user selects an item in the popup menu).}]

The menu is displayed at @racket[x] and @racket[y] in editor coordinates.
Expand Down
3 changes: 2 additions & 1 deletion gui-lib/mred/private/wxme/editor-canvas.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,8 @@
(let-boxes ([dx 0.0]
[dy 0.0])
(send canvas get-dc-and-offset dx dy)
(send canvas popup-menu m (->long (- x dx)) (->long (- y dy)))))))))
(send canvas popup-menu m (->long (- x dx)) (->long (- y dy)))
#t))))))

(define/public (adjust-std-flag)
;; 1 indicates that this is the sole, main admin.
Expand Down
Loading