Commit Graph

5387 Commits

Author SHA1 Message Date
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
Matthew Flatt
016b64ff82 GC bitmap @2x
original commit: 685859b40868b5213492112ecaac2e7f30c5e9c2
2014-01-06 19:02:20 -07:00
Matthew Flatt
ea1f6ecc1b racket/gui cocoa: fix "&" in labels
As of Mac OS X 10.8, `setTitleWithMnemonic:` doesn't strip away "&".

original commit: 75dade281885f7b654ee49e93e1b6349b319c1c2
2014-01-06 19:02:19 -07:00
Matthew Flatt
9308ebd949 image-snip%: preserve bitmap backing scale on save & load
original commit: 20cec1d43f382f57f78187ca3a2eeeae2e068bef
2014-01-05 17:13:29 -07:00
Matthew Flatt
0e329922cd mrlib/close-icon: revise, especially for @2x
Modernize by using alpha instead of constructing masks, etc.

original commit: b1acdfba8655803f96a2e2567df150491c0a6ff3
2014-01-05 17:13:29 -07:00
Matthew Flatt
392291938f dc<%>: add alignment scale
Partly reverts d8a438231f by making the alignment scale always default
to 1, but allows the "fix" (for programs that was drawing to a bitmap
with backing scale 2 to be like drawing with scale 2 into a bitmap
with backing scale 1) by setting the alignment scale to 2 for a
drawing destination that has a backing scale of 2.

original commit: 582e992501c8e6833a82412235731a9d0416b3b9
2014-01-05 17:13:28 -07:00
Matthew Flatt
54f8bf10a5 correct backing scale on Retina canvas & derived contexts
One consequence is that drawing with a pen of width 0 into
a canvas% object on a Retina display draws a line that is
half as wide as a pen of width 1.

original commit: 7dc63162728b695b93a28b047dfafc841e4302e4
2014-01-05 17:13:28 -07:00
Matthew Flatt
147a4d67ee fix alignment for a drawing context with a backing scale
original commit: d8a438231f2cdc75a583f06fd68128fb43ba939c
2014-01-05 08:54:52 -07:00
Matthew Flatt
2870fd90d7 Racket splash/about logo @2x
original commit: aaea2e4fa164fe26bdb5b4248b4622f198ba1560
2014-01-03 17:57:56 -07:00
Matthew Flatt
de05ac2f1c DrRacket: enable @2x bitmaps for tool icons
original commit: 037a211f9a29d02a4e461dd561879790e4280a99
2014-01-03 09:00:41 -07:00
Matthew Flatt
9b2b38d74d racket/draw: add a backing-scale argument to bitmap constructors
Generalizes backing-scale support created for `make-platform-bitmap`
and Mac OS X in Retina mode so that any bitmap can be created with
a backing scale (except monochrome bitmaps or bitmaps with masks).

original commit: 5e903441a4ab76305d4768ae96b9fef827bac860
2014-01-02 19:04:22 -07:00
Matthew Flatt
7a256444f2 racket/gui cocoa: preserve resolution of bitmaps as control labels
This change is mainly for Retina display mode.

original commit: 4f86f1de6232250d7f5debbd5cae02674d2ac106
2014-01-02 19:04:22 -07:00
Matthew Flatt
3f0b09675e copy drdr:random command props to test configs
original commit: 48a85125dae2db557443daaa7893f84abbd15f93
2014-01-01 08:21:31 -07:00
Matthew Flatt
f38a629b01 copy gracket command props to lock-name as "gui" test config
original commit: 31f80b4ae20a4a410859ce132220c75298bd56de
2014-01-01 07:27:15 -07:00
Matthew Flatt
4351718394 copy responsible info to "info.rkt" files
It seems more ideal that `pkg-authors` would be specific enough
responsibility, but our existing allocations of responsibility are
more fine-grained, and we keep them for now.

original commit: 19f8f30f63ece380105f69796c046c7a00aa4f97
2014-01-01 07:27:15 -07:00
Matthew Flatt
7944363893 fix some test properties/submodules
Mostly, revert accidentally removed ".scm" and ".ss" entries.

original commit: d33638248ed67836ef8e0f79e855abfabbb4b3db
2013-12-30 16:22:30 -07:00
Matthew Flatt
1caa7fb9aa move "props" test configs to test submodules or "info.rkt" files
The "props" file still has

 * ".rkt" `drdr:timeout` entries, needed until DrDr uses submodules and
   "info.rkt" files; although timeout information has been put in
   submodules for `raco test`, DrDr uses `raco test` in a way that does not
   enable timeouts, so that DrDr can implement timeouts itself (and record
   when a test times out)

 * ".rkt" `drdr:random #t` entries; not sure what to do with these, yet

 * ".rkt" `responsible` entries; not sure what to do with these, yet

 * ".rktl" `drdr:command-line #f` entries, needed until all ".rktl" files
   are disabled in DrDr

The following files were previously disabled for DrDr testing, but were
intentionally left as enabled with these changes:

pkgs/racket-pkgs/racket-test/tests/pkg/shelly.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/util.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/info.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/basic-index.rkt
pkgs/racket-pkgs/racket-test/tests/racket/link.rkt
pkgs/racket-pkgs/racket-test/tests/racket/embed-in-c.rkt
pkgs/racket-pkgs/racket-doc/ffi/examples/use-c-printf.rkt
pkgs/racket-pkgs/racket-doc/ffi/examples/c-printf.rkt
pkgs/parser-tools-pkgs/parser-tools-lib/parser-tools/private-lex/error-tests.rkt
pkgs/mysterx/mysterx.rkt
pkgs/mysterx/main.rkt
pkgs/games/gobblet/test-model.rkt
pkgs/games/gobblet/test-explore.rkt
pkgs/games/gobblet/robot.rkt
pkgs/games/gobblet/check.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/main.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/ffi.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/dbsystem.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/connection.rkt
pkgs/distributed-places-pkgs/distributed-places-lib/racket/place/distributed/examples/hello-world.rkt
pkgs/redex-pkgs/redex-lib/redex/private/compiler/match.rkt
pkgs/redex-pkgs/redex-lib/redex/private/compiler/match.rkt
pkgs/htdp-pkgs/htdp-test/2htdp/utest/balls.rkt
pkgs/gui-pkgs/gui-test/framework/tests/test-suite-utils.rkt
pkgs/games/paint-by-numbers/raw-problems/size-calculation.rkt
pkgs/db-pkgs/db-lib/db/odbc.rkt
pkgs/compatibility-pkgs/compatibility-lib/mzlib/traceld.rkt
pkgs/cext-lib/dynext/private/stdio.rkt
pkgs/db-pkgs/db-lib/db/odbc.rkt
racket/collects/ffi/unsafe/objc.rkt
racket/collects/ffi/objc.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/tests-db.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/test-docs.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/test-catalogs-api.rkt
pkgs/gui-pkg-manager-pkgs/gui-pkg-manager-lib/pkg/gui/main.rkt
pkgs/redex-pkgs/redex-lib/redex/private/compiler/redextomatrix.rkt
pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/base-env/base-special-env.rkt
pkgs/planet-pkgs/planet-test/tests/planet/version.rkt
pkgs/planet-pkgs/planet-test/tests/planet/test-docs-complete.rkt
pkgs/planet-pkgs/planet-test/tests/planet/lang.rkt
pkgs/planet-pkgs/planet-test/tests/planet/docs-build.rkt
pkgs/drracket-pkgs/drracket-test/tests/drracket/follow-log.rkt
pkgs/drracket-pkgs/drracket/drracket/private/dock-icon.rkt
pkgs/drracket-pkgs/drracket-test/tests/drracket/tool-lib-and-sig.rkt

original commit: e226ad66c5fb6095d5702e5c47f5c7cf73e914f5
2013-12-30 12:15:18 -07:00
Matthew Flatt
398034cefa convert ".rktl" test entry points to ".rkt"
original commit: f6b8f734f3922c4cd6f353ab3d625f84d56a01f5
2013-12-28 19:55:31 -06:00
Robby Findler
fd02a72886 tighten contracts in a way that appears
consistent with their behavior and their
documentation

original commit: b59172989186bdce4d71069305adf19af8f530b9
2013-12-27 21:28:42 -06:00
Robby Findler
6a8a6e2f51 update HISTORY based on some of Jay's changes
please include in 6.0

original commit: 438942c0590841b030795d5df8db4c8409594cb4
2013-12-20 15:44:37 -06:00
Matthew Flatt
834968a294 fill in some missing history notes
Merge to v6.0

original commit: dc526f95f30d72c2a854f9e1c7520f04cbdaf0d0
2013-12-20 06:23:13 -07:00