Commit Graph

258 Commits

Author SHA1 Message Date
Matthew Flatt
60c5ad33e3 cocoa: make grow-box-spacer zero-width for 10.7
original commit: 3941a5d04f71a7d17f9ad341b30e2d6acde098c8
2011-10-04 12:59:18 -06:00
Matthew Flatt
6c3d889b93 fix keyboard navigation (all platforms)
Also, fix `set-selection' in `list-box%' to not invoke the
tab panel's callback function (cocoa & gtk).

original commit: 4535f5d8cc0fe4d0c3c360d7527980b1c3b7e39a
2011-09-30 13:44:24 -06:00
Matthew Flatt
523c6f9697 cocoa: fix control-refresh bug
original commit: b24c8eb4ddf601aa2b8a9b1616bd7d475fe36e5a
2011-09-28 12:38:39 -06:00
Matthew Flatt
0b74b321d5 cocoa, gtk: enable auto list-box% horizontal scrollbars
Closes PR 12149

Also adjust id on NSTableColumn to be a string, because a Cocoa
warning on Lion told me to.

original commit: ec25a74b97f0ab7a487c5fd8c7c89d2900a84ad5
2011-09-10 11:14:52 -06:00
Matthew Flatt
691b4c33ce better fix for TransformProcessType issue
GRacket registers witht a global table to indicate that
no transform is needed. (This change was intended to address
a 64-bit problem on Lion. It didn't help, but this seems
better than ignoring an error.)

original commit: 9d4fcd8e84e8663526420ff2de4b8b67869442c9
2011-09-10 10:53:42 -06:00
Matthew Flatt
480477cbd4 suppress an error message (related to Mac 10.7)
We could try to figure out the current state of the process,
instead, but it seems like too much work.

original commit: 9c5b78e998c7cf3e6a0bfe9848b7a47f18562ef3
2011-09-09 19:22:42 -06:00
Matthew Flatt
fee465a5a4 racket/gui: add `application-start-empty-handler'
original commit: 735ca7f3c3314df880785264c484b841df87cd16
2011-09-09 17:03:18 -06:00
Matthew Flatt
cf84b6b496 get-diplay-size' and get-display-left-top-inset' use #f for failure
Since the number of monitors can change at any time, reliable
use of these functions requires handling failure in some way.
Handling #f results is easier (and less likely to mask other
problems) than catching exceptions.

original commit: ce4705cedce9dc6f1658e93245d07f739e26a19b
2011-09-09 17:03:17 -06:00
Matthew Flatt
a08a642aa5 cocoa: fix application about handler
Closes PR 12165

original commit: 34eb5ec9832660fdc2960e4aba00f2c407fddf5e
2011-09-03 10:35:55 -06:00
Matthew Flatt
c6a9b05793 cocoa: fix menu when two layers of dialogs are dismissed
original commit: b4ef9a09a9d9b76e2736941e8724160afdf6b0a6
2011-09-03 10:35:55 -06:00
Matthew Flatt
ea717ae364 cocoa: fix switch-to-gui-app for 64-bit
original commit: d857385797f20271612ad01940e96d0f1d6f7578
2011-09-02 06:27:56 -06:00
Matthew Flatt
afcb8b3e86 report some errors instead of potentially ignoring them
original commit: 3f11ef9b119b2afbd19afa1f35fc90dd2cfce527
2011-09-01 07:14:05 -06:00
Matthew Flatt
556a322e3c implement 'border style for `panel%'
original commit: 461af202c5cfa17351ff3758ab29f9eda61cf38d
2011-08-13 07:00:51 -06:00
Matthew Flatt
ce6879c013 fix refresh' on window<%>'s other than `canvas%'s
original commit: 456e9befd3959cfab1e74943fb99eb4552c97313
2011-08-12 17:03:28 -06:00
Matthew Flatt
1ff4328f2b cocoa: fix sign on `get-display-left-top-inset' x result
Also fix frame placement on screens other than the main screen.

original commit: 3ab067bc338406848e937f388343fb1e2ffa3074
2011-08-10 11:13:58 -06:00
Matthew Flatt
2b844e66dc cocoa: fix list-box scrolling
Closes PR 11948

original commit: 1bc8978ce84fe0af9ef0d1a889ecdee490dc7a2d
2011-08-04 07:38:10 -06:00
Matthew Flatt
7556774742 cocoa: fix problems with sheets and focus
Avoids a problem with the file dialog when a sheet is the
current "main window" (Cocoa terminology); when the file
dialog is closed, both the sheet owner and the sheet
become the main window (in that order), so that when the
sheet goes away, the sheet owner doesn't become the main
window as it should. It seems like a Cocoa problem. The
workaround is to hook into the callback that says a
sheet went away.

Closes PR 12073

original commit: 69f7e912d2bffd638123475ce0041e6188ab5f02
2011-07-25 11:30:22 -04:00
Matthew Flatt
e11437eb9e cocoa: fix image paste
Closes PR 12028

 Merge to 5.1.2

original commit: c8b37633599a3db93099daec94ce28d399c1b696
2011-07-19 08:12:39 -06:00
Matthew Flatt
15bfdb93aa add get-display-count' and #:screen argument to get-display-size'
and to `get-display-left-top-inset'

 add -M <monitor> option to Slideshow

original commit: 23a2a075eaa636b27ec0700a054d49989ae53a0e
2011-07-18 20:15:15 -06:00
Matthew Flatt
139a564f07 cocoa: fix "&" handling in menu-item labels
Closes PR 12025

original commit: de54efc84e92e46f549dfdda82102ffc39df72b5
2011-07-06 09:54:41 -06:00
Eli Barzilay
ef528b7fc5 A long overdue scan to eliminate files without terminating newlines.
(DrRacket should really do that.)

original commit: 40124a0619da5e187d95aeb1dde237f05d6f9c6b
2011-06-28 02:01:41 -04:00
Matthew Flatt
e3d995ee87 place-specific low-level "sleep" function
to make racket/gui work right with places (running
 in just one of them) on Mac OS X

original commit: 5a5800d51316c98827e47544deec658b8456fb03
2011-06-17 17:03:21 -06:00
Eli Barzilay
8e622af502 cocoa: fix `get-file' when any extension is allowed
original commit: 045369e3b9d54dcef0e4a950f21581a0810aa56a
2011-06-03 01:38:40 -04:00
Eli Barzilay
5c2af99006 Make the cocoa file dialogs deal better with ";"-separated globs.
* Note the ugly hack of adding "foo~" for every "foo" suffix.

* Note also that when "*.*" is in the glob list all files should be
  available but it looks like this isn't working yet for some reason.

original commit: e9487fb0c739427fa49f79b4f512fb717ab683a9
2011-06-03 00:56:21 -04:00
Matthew Flatt
830c42cb1e cocoa: fix get-y' in frame%'
original commit: c0811dc220c847c7132679ca4d3acb9f3fb93754
2011-05-26 07:29:09 -06:00
Matthew Flatt
e54b211a28 cocoa: fix problems using menu-bar height
original commit: 515a4f799158ed60c89c250b9962dbb3c6cba86e
2011-05-10 20:17:47 -06:00
Matthew Flatt
f55661067a cocoa: fix frame coordinate system by using initial menu-bar height
original commit: 2e93e0ec14f4a174ca0025b436fd5a07008375a3
2011-05-10 09:53:48 -06:00
Matthew Flatt
ca0ee2dd53 gtk, cocoa: fix auto-sizing of text `message%'s
original commit: 71df6ddc051414540ff4e80503b5b4f7aec78ee9
2011-04-08 14:22:17 -06:00
Matthew Flatt
9722fe9427 add 'wheel-left and 'wheel-right events
original commit: b0115ee3605259d0e79c369e4bc11203e417c32d
2011-04-03 09:49:56 -06:00
Matthew Flatt
9f4be33c93 fix support for a string result from get-data' of clipboard-client%'
and properly report an error when the result from `get-data' is not
  allowed
 Closes PR 11821

original commit: d77c92d0878384024a3b00f6bfaa7fe3214493f6
2011-03-27 10:51:46 -06:00
Matthew Flatt
0bdfa9a121 cocoa: fix line height in `list-box%'
Closes PR 11822

original commit: deab2ddede64415e64eb7636e5bcf79bbf51aba8
2011-03-27 10:23:34 -06:00
Matthew Flatt
cc3764caab cocoa: fix crashing bug related to canvas sizing
original commit: 7ecf8e6c0bf131b26f36aaac62eff002390e152f
2011-03-15 12:42:04 -06:00
Matthew Flatt
fad6afd890 add `get-device-scale' to dc<%>
original commit: e8cb27c08c221a16bf0a543a390a0a90d945a918
2011-03-15 07:37:42 -06:00
Matthew Flatt
58ec161af7 code clarification
original commit: 2f907afde6ae17f23df4cf3dfb590568d605f793
2011-03-15 06:46:36 -06:00
Matthew Flatt
b778dab374 cocoa: flip vertical slider direction
original commit: 2ba8927ba5022989ffade7ca2f6556465da6411a
2011-03-11 02:50:06 -06:00
Matthew Flatt
372646be39 cocoa: fix `play-sound'
by expanding paths properly and checking whether playing
 succeeds

original commit: ca8c6a813313acecd19ccc463c0f48bd9c3aa836
2011-03-10 07:35:50 -07:00
Matthew Flatt
4c7410e291 cocoa: restore "New Folder" button in put-file' and get-directory'
Closes PR 11784

original commit: a1b79387b9fa5a7ddd959d71c6d68843d632449f
2011-03-08 08:42:03 -06:00
Matthew Flatt
5eb43f66b2 cocoa: fix put-file with extension as ""
original commit: 5f797b8f0bd80596e08427b946528ecc3a923846
2011-03-08 08:37:16 -06:00
Matthew Flatt
3d9563e308 cocoa: fix `play-sound' handling of async flag
original commit: 107b349da073d82a1c75fd2b141fedc246aa4b2e
2011-03-03 05:48:43 -07:00
Matthew Flatt
d8c8812f87 fix get-column-width' method of list-box%'
by changing the name to match the docs, plus some other
  bug fixes triggered by better testing
 Closes PR 11780

original commit: fdef90e482ddd066f8a131343308e856c76df902
2011-02-28 19:12:34 -07:00
Matthew Flatt
851c476430 racket/gui: scrollbar support panels
original commit: 93e1467b8bc8a6045233f8f8e79a1fb0ac15a091
2011-02-24 13:23:51 -07:00
Matthew Flatt
aaf5c41566 multi-column support in list-box%
original commit: 137d96c08917ad5dd636a26d2d32c746f5c7e7b0
2011-02-21 13:58:57 -07:00
Matthew Flatt
e59e323428 gtk: smoother editor-canvas resize
- call `on-size' on setting the canvas size, like Win32 and Cocoa,
   which mainly shows/hides auto-shown scrollbars more on time
   (e.g., DrRacket doesn't start with horizontal scrollbars that
   immediately disappear)
 - switch mouse tracking to "hint" mode, instead of catching every
   single mouse position
 - when queueing `on-size' methos in response to client-size changes,
   cancel and queued but undelivered calls; in the case of editor
   canvases, this doesn't really have an effect, due to the other
   `on-size' call
 Closes PR 11369, hopefully

original commit: 85951bf665207db4539fe97cd86b7f924c83eac5
2011-02-19 16:10:00 -07:00
Matthew Flatt
e49a922cce cocoa: FFI type corrections
original commit: aea79be7a4b6baf6add8281866773cd6d452dfb7
2011-02-14 06:10:56 -07:00
Matthew Flatt
ebaef0c71b fix `set-icon' in frame% to make mask argument optional
Merge to 5.1

original commit: f4a881f0e37f291c604ae40ab52d2e36ca411609
2011-02-09 09:01:34 -07:00
David Van Horn
15c7ab6e1f Fixes more spelling errors.
original commit: 760a58b65df2b91010d2bcc2739ddab2a4489729
2011-02-04 19:44:13 -07:00
Matthew Flatt
08dccaa1c4 cocoa: yet another hack around weird cocoa behavior
Closes PR 11712
 Merge to 5.1

original commit: 845ca2d58668c40c2ce2ab314867974877b2da93
2011-02-04 19:43:59 -07:00
Matthew Flatt
8b7ca50605 cocoa: change `radio-box%' implementation of no selected buttons
(not sure how I missed the `setAllowsEmptySelection' method before,
  but maybe there was some reason to avoid it that I've forgotten
  --- so *don't* merge to 5.1)

original commit: e1303dc4006951d7c9e1ebee31d0f5a76ab3c40e
2011-02-04 09:20:47 -07:00
Matthew Flatt
f04e67e91f cocoa: fix problems with `radio-box%' in no-selection mode
Closes PR 11708
 Merge to 5.1

original commit: 5d1b78384d390520edf970021bc0c144f78c259e
2011-02-04 07:26:45 -07:00
David Van Horn
5007d739fc Fixed various spelling errors.
original commit: c9519fd11300b07292df8619e86f48533eff6e4d
2011-02-03 17:42:33 -05:00