Commit Graph

269 Commits

Author SHA1 Message Date
Matthew Flatt
c3fb9f60da add 'shift, 'control, 'rshift, and 'rcontrol events
original commit: f93c94f6ffb0c45c7ffd8c73d1033c088c20eb6e
2011-12-08 15:05:41 -07:00
Robby Findler
d3dc21e2d3 change file-creator-and-type so that it raises exn:fail:filesystem?
exceptions instead of exn:fail exceptions for errors having to do
with the actual attempt to change/retrieve the creator and type
(but leaving alone the type errors)

closes PR 12400

original commit: b40cc23f60239b4af50c5c9fad66dfdf8c48c9f4
2011-11-28 15:35:42 -06:00
Matthew Flatt
d11a50bd6d cocoa: make sure app wakes up on file event
original commit: bc0c2075fd5999188773fc19994731f6e60c23a2
2011-11-25 13:19:42 -07:00
Matthew Flatt
9fdb98c9c2 cocoa: fix some GL problems
original commit: 4bbb2d41aa5a8f933780402e4d7ce939da75213b
2011-11-03 09:12:13 -06:00
Matthew Flatt
71c2b32f80 fix cocoa `get-clipboard-string' to never return #f; fix docs
Merge to 5.2

original commit: 718229387c05daba0c2cce9f68f757e72fe0ad2d
2011-10-18 06:35:38 -06:00
Matthew Flatt
20741c8fc5 third attempt to fix 64-bit Lion hidden-window problem
After all the previous attempts, the problem seems almost trivial:
although Apple documents `NSAnyEventMask' as the constant #xFFFFFFFF,
it's actually NSUIntegerMax (and the difference matters in 64-bit
mode).

Merge to 5.2.

original commit: dc912ee6def7a6e8b4edc13c230b367761c5c722
2011-10-10 15:48:30 -06:00
Matthew Flatt
8da2243aeb Revert "another attempt to fix the 64-bit Lion hidden-window problem"
This reverts commit f6e5468dbb85c2ed48178ac43fb25084430413ef.

Merge to 5.2

original commit: 9fd11ac92cec38a0497ae155f472ab82cca97a2b
2011-10-10 15:38:42 -06:00
Matthew Flatt
b6e39a74f2 cocoa: fix `show #f' on already unshown frame shows it briefly
Merge to 5.2

original commit: bf3f09a3c18637b8ebf719f235813c2390ac331e
2011-10-08 16:47:19 -06:00
Matthew Flatt
02bf0c08d8 another attempt to fix the 64-bit Lion hidden-window problem
This fix uses the same`run'-vs-`finishLaunch' technique as before,
but patches up the modal-dialog problem by calling `run' again
with a callback to start a modal loop.

Merge to 5.2.

original commit: f6e5468dbb85c2ed48178ac43fb25084430413ef
2011-10-08 06:12:17 -06:00
Matthew Flatt
1d81935cf9 Revert "cocoa: change the way the app is initialied"
This reverts commit 60101618db61c347a3477b0ced4e42e0d50d6fb2.

While this changes fixes a 64-bit Lion problem, it creates a
worse problem of breaking file and print dialogs.

original commit: 9aa93ab5aebed19cd571f18d1580884030f3b9b8
2011-10-07 15:25:31 -06:00
Matthew Flatt
466e7130ab cocoa: change the way the app is initialied
Calling NSApplication's `run' works better than calling `finishLaunching'
directly, particularly in 64-bit Lion for some reason.

Relevant to PR 12102
Relevant to PR 12257

original commit: 60101618db61c347a3477b0ced4e42e0d50d6fb2
2011-10-07 08:05:15 -06:00
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