Commit Graph

5407 Commits

Author SHA1 Message Date
Matthew Flatt
d37f30bb6e racket/gui Cocoa: fix menu bar after non-GUI startup on 10.9
When a GUI program is run through `racket` instead of `gracket`, an
extra dance is needed on recent Mac OS X version (10.9, maybe also 10.8)
to make the Racket-based application take over the menu bar.

original commit: fa23a373accff9b698cff6e7d8cd2b17f4515c41
2014-04-24 10:21:52 -06:00
Matthew Flatt
2a00f4a466 racket/gui Windows: repair for use-before-initialization
Closes PR 14454

original commit: 7cb9628449db3ea1685c4b9ff5c4099d15d77001
2014-04-19 14:35:30 -06:00
Robby Findler
9ab5e6b618 fix a non-buggy set!-before-initialization in syntax-browser
What appears to be happening is that the fields path and next-push
are state variables on this class that are initialized and then used
only during the dynamic-extent of syntax-object->datum/record-paths
and of the pretty-printing code.

So, before the check was in place, they were initialized and used
before the 'path' field was initialized, but by the time the path
field was initialized, the value was junk (not going to be used again)
but it still raised an error

original commit: 34abe306e34e038bb3e6504f6203db3f85a913a2
2014-04-18 06:57:45 -05:00
Matthew Flatt
4317645cb4 fix for Gtk back-end
original commit: 1c0c24cb8f3940aca0e48c26361c7a690f237205
2014-04-15 15:06:41 -06:00
Matthew Flatt
9d8f3de27d fix some uses of not-yet-defined fields
original commit: 113a2eea2146bfd5d111554f4bada93f3a65704c
2014-04-15 15:03:11 -06:00
Robby Findler
a32e1ac4c1 point to the contract profiler
original commit: 7b26260d998f24fa330447660fa68609eef553ac
2014-04-14 16:50:16 -05:00
Robby Findler
96370d6252 move dot graph support from redex into mrlib's graph library and document it
original commit: f1a3c08ffd23f402f4962bc77fa7330a6805ef77
2014-04-13 19:28:48 -05:00
Matthew Flatt
fa41ed01c5 upgrade pre-built libraries for Windows and Mac OS X
Mostly upgrades the drawing stack to the latest Cairo, Pango, Glib,
etc., but also upgrades the OpenSSL library on Windows to 1.0.1g.

The new "racket/src/native-libs" directory provides scripts to
rebuild the libraries from source. Those script are fragile, because
library sources and configuration scripts are fragile. The
scripts at least archive some expertise/advice in a mostly executable
form.

original commit: 23cf3ba11e6ea3ac5aa0b3919651f38e037fa2c9
2014-04-09 07:35:37 -06:00
Robby Findler
c3f913fdef Improve DrRacket .plt installation functionality so that it prints
out the file it tried to unpack when it fails

original commit: 980e957407e8e3072e7cf241c5cb55fb7ec175bf
2014-04-06 17:49:22 -05:00
Robby Findler
6f0acc4b43 fix 2htdp/image for text-only mode and add a test case that
covers improvements from 8fb8f56

original commit: e08ffde1b530975bd88c511bbf4f95ee4b829284
2014-04-06 08:38:26 -05:00
Matthew Flatt
79cbc62ea0 racket/gui cocoa: toolbar-button is for 10.6 and earlier, only
In particular, 'toobar-button (before 10.7) and 'fullscreen-button
(10.7 and later) do not get along, so use only one of them.

original commit: 5193e37f0bb3904c70e0a48d51b5528859bd19c9
2014-04-05 16:26:31 -06:00
Matthew Flatt
990bb9c938 racket/gui: add Mac OS X fullscreen options to frame%
original commit: 887a906bd2dffce800da84aa4788268db96b1b3b
2014-04-05 07:13:27 -06:00
Robby Findler
e621a273f3 add missing for-label require
original commit: b23f7fe95fbb64ad24bfac29ebb89c8d98d1fa77
2014-04-04 16:45:33 -05:00
Robby Findler
f2907d0782 adjust 2htdp/image so that they work properly as wxme-mode snips
Before, they would create a crippled version in that mode, but
that is no longer necessary (it may never have been necessary,
but it certainly hasn't been necessary in a while)

original commit: 8fb8f561c48ad7660b049a318511a929c39e4c06
2014-04-04 16:45:32 -05:00
Matthew Flatt
3f4b21959d fix problem with @2x bitmaps on Mac OS X 10.5
original commit: 1273d0fbb3afecf00027280b60587261f8d0785d
2014-04-01 16:38:03 -06:00
Matthew Flatt
384eb0ff1e racket/gui mac os x: fix compatible-bitmap scale on slow path
original commit: 0a8b4f573b02777b7605498b9071f63ac23e477f
2014-04-01 16:38:03 -06:00
Matthew Flatt
b4decca6da racket/gui gtk: fix -singleInstance for paths that don't work as strings
Just in case a relative path turned into an absolute path doesn't
work as a string, add support for a bytes encoding.

original commit: d722fa42df16e9a74da109582e915c63f59a7a29
2014-03-29 15:17:56 -06:00
Matthew Flatt
2e198d4e22 racket/gui gtk: fix -singleInstance mode and relative paths
original commit: facaba679443d6bf7232cd47a6fce51814144b62
2014-03-29 10:43:58 -06:00
Lei Wang
f30e0bbb5a Modified Scribble Indentation functions to support "line push back"(combine concurrent short lines)
original commit: 424cef93973131f260be32bdc97a86da5ccb204d
2014-03-21 01:08:16 -04:00
Robby Findler
c061e83ac8 add Michał Pałka's l
original commit: 2598704dde79677b28aa0bfd5df2924bba405a99
2014-03-18 14:52:45 -05:00
Matthew Flatt
cd1c5bfa99 racket/gui gtk: fix reference count on widget extracted in choice%
Incorrect referencing causes crashes on Kubuntu, for example.

original commit: 8cbcba8ed2bb6a50826fa5e760702e4e2dd15ba4
2014-03-13 06:42:38 -06:00
Matthew Flatt
76cf6ffe1f support older Cairo and GDK versions
original commit: b971f9f4ebe0cdad9b3e4e9d5bf5d4547a8c14a4
2014-02-28 09:47:28 -07:00
Robby Findler
0bc6e6d6d2 Adjust DrRacket to better support #lang-line specific
keybindings and then use that to add in an esc;q keybinding
for scribble

original commit: 58e7d033f79b20f0d9e55d9e8a843f64b8957c5f
2014-02-28 09:27:39 -06:00
Lei Wang
ac41a7046f Indentation implementation for Scribble
original commit: e7434e19973de93012c862cfebe3f34a65ffd7e5
2014-02-28 09:26:44 -06:00
Matthew Flatt
b373a82edc LGPL by reference
original commit: 981701d2378179d4ada54b7fd2608df3b89748fd
2014-02-27 15:56:11 -07:00
Matthew Flatt
94158d7fbe racket/gui: avoid editor refresh for no-op scroll wheel
original commit: eb2a74aabad1cae9d1197a6e658406cfa9e7d27e
2014-02-25 13:48:36 -07:00
Robby Findler
147be7813a docs bug
original commit: 96e6d8338e7c61da08e3d069a3432dc9ab11461f
2014-02-25 10:55:57 -06:00
Matthew Flatt
0bd8d6f5a4 racket/gui: small speed-ups in editor drawing path
Mostly, replace some method calls with field selectors (where the
path is important enough that it seems worthwhile).

original commit: 78321aa4e6ba0a1a3cc32ae41d2d85c16756305a
2014-02-25 06:31:10 -07:00
Robby Findler
bb18987512 fix careless error (apologies future git bisecters)
original commit: dc3d6280a0069075c8ea6cf6315e55ab4ef50e11
2014-02-22 07:49:04 -06:00
Robby Findler
d65c691b4a always show the memory use and the () status indicators in drracket's status line
original commit: 51adb339d5b7d59a29c46e2444e9879811dd7ce7
2014-02-22 07:44:55 -06:00
Robby Findler
6df4504d47 add a test case to make sure 'Insert Large Letters' doesn't crash
original commit: a2b03a083a8c5238e05e0eac0501653bf593b443
2014-02-21 17:29:32 -06:00
Matthew Flatt
746f7ec3d0 racket/draw: fix serializaiton of bitmap drawing in record-dc%
Closes PR 14349

original commit: 47d913b451d12e5e52a4ecaaac830b59deea5945
2014-02-13 15:23:09 -07:00
Matthew Flatt
7d725504cd racket/gui: change some eq? to object=?
Some places in the editor API accept an object as an argument
where the object's identity is relevant. In that case, `object=?`
must be used instead of `eq?` to work right with contracts.

original commit: dc0653383f1eb54b05afc0c6f09106536950d0ca
2014-02-10 06:25:32 -07:00
Matthew Flatt
5003d33be9 racket/gui: change pasteboard to put location info in snips
Use the field in a `snip%` that is otherwise used by a `text%` owner
to store line information. Reusing the field avoids the need for
an `eq?`-based hash table of snips.

original commit: 2bd8c2d8edcb54abf21ddd6ff942b656d78d502a
2014-02-10 06:25:32 -07:00
Matthew Flatt
01b6810a4c racket/snip and racket/gui: remove leftover ~ methods
The `~` methods on snip and editor-related classes are not documented
or called from anywhere. They corresponded to destructor methods back
when the classes were ported from C++.

original commit: 70d91b5516a24bb0640cbb0818e6d31f529db539
2014-02-10 06:25:32 -07:00
Asumu Takikawa
8b554da1bb Fix doc contract for list-box%
original commit: 8133559442bac9e923e8c74ae4f40bdd37e6c4d5
2014-02-06 17:24:47 -05:00
Matthew Flatt
ea696cf09f racket/draw and racket/gui: fix error reporting
Repair change from 5e903441a4 that added support for keyword
arguments.

Closes PR 14325

original commit: b31f309de1ffffe2fb077e2e30a867deded38b1b
2014-02-04 18:08:11 -07:00
Matthew Flatt
2da76efff7 racket/gui: add [set-]undo-preserves-all-history[?] to editor<%>
This change allows undo configuration of individuals editors to
Emacs-style undo (in addition to the 'GRacket:emacs-undo global
preference that is read on startup).

Also, fix a bug in Emacs-style undo that dates from the port of
the editor into Racket.

original commit: f22a89506091203cdd310fb33821513daf77116e
2014-01-29 16:26:04 -07:00
Matthew Flatt
5366f24110 racket/gui: fixups for mod3-5 event additions
Move new initialization arguments to the end to avoid backward
incompatibility, add fields to `module-event%`, and include history
notes in the documentation.

original commit: be58be349abc2d22c3d2937ed88bcb7b8a15ac07
2014-01-28 12:28:16 -07:00
Jay McCarthy
774eace17f Record information about other key modifiers on X11/GTK
In particular, Mod4 is used for the Command button when you run Linux
on Mac hardware. I don't know how to get the others, but added them
for safety.

original commit: e7f0f3587a5fee9b3b4185948485bb7df1ac3bda
2014-01-28 07:37:22 -07:00
Matthew Flatt
4040e4881d racket/gui: correct undo array resize for Emacs-style undo
original commit: ce63c5b75f7e66ae5a26d9a21e1877fb3e4cb70e
2014-01-28 07:32:44 -07:00
Matthew Flatt
8c45433983 racket/gui cocoa: fix atomicity of refresh
Atomicity was accidentally turned off in ca0418d47d.

For whatever reason, this bug seems to cause lots of trouble with
32-bit Mac OS X and not as much for 64-bit Mac OS X.

original commit: 13b1d0733a8e686e7b17bf33cfff9f43bcfd5604
2014-01-26 18:38:40 -07:00
Matthew Flatt
dd997cb2dc racket/gui win32: fix handling of @2x bitmaps
Closes PR 14310

original commit: 8a9a592c3ccc508f8547db5db918d008a611d385
2014-01-22 20:19:29 -07:00
Eli Barzilay
c3c380f16d 2013 -> 2014
original commit: c61a549840ee0ba5f2e5da56523fd3b26efeb895
2014-01-21 15:02:21 -05:00
Asumu Takikawa
f0c6f3da78 Fix arity of write-to-file method in text%
Found via TR. The two last arguments are supposed to be
optional but the method only accepted 1 or 3 arguments.

original commit: fca126bf01f990d5600655a879046c95230edc64
2014-01-21 10:32:48 -05:00
Asumu Takikawa
d301ee732a Fix editor canvas admin bug found by TR
The `grab-caret` method's argument is supposed
to be optional according to the documentation.

original commit: 14b133296f39532f12b51fb4bb259cd947c24d1a
2014-01-20 22:21:13 -05:00
Asumu Takikawa
0d70594ff0 Fix "ill-typed" overriding of get-view method
The interface says the last argument of this method
is optional. The bug was found via TR.

original commit: 7eb1a4ba42c4b494fc1c24394f5b2b1e463ee90f
2014-01-20 22:21:13 -05:00
John Clements
4e35cbbab3 doc clarification on init-auto-scrollbars
original commit: 14458fdf4379136be342d851ec51656a3ce48c4c
2014-01-15 13:04:38 -08:00
Matthew Flatt
f787d05db3 racket/gui win32: fix for backing-scale
Closes PR 14278

original commit: 2d2cd2744cd9a2f7c6e5e238ffbe36203c7a04fb
2014-01-08 23:08:14 -06:00
Robby Findler
317c02acb5 strengthen shortcut-prefix contract
(technically, strengthen the way it is written in the docs; it
was already being enforced that way)

original commit: 370418ac2e9f00a981422bee0551d1603b246005
2014-01-08 13:42:54 -06:00