Commit Graph

265 Commits

Author SHA1 Message Date
Robby Findler
2995cdfc2a adjust the frame memory use count so that it updates periodically
more specifically, every second it will check the memory use;
if the change is more than a megabyte it will update the display

(without some kind of buffer like that, the result will be
different each time it is polled; I tried that an it was
too distracting)

closes racket/drracket#92
2017-01-28 09:37:33 -06:00
Robby Findler
fb6a9116a7 move to drracket:keystrokes and away from surrogate stuff 2017-01-24 11:21:49 -06:00
Robby Findler
b8cb62ce42 fix preferences snapshots
closes PR 15398
2017-01-23 17:54:32 -06:00
Robby Findler
ae01dc64e3 add preference layers 2017-01-22 21:28:20 -06:00
Robby Findler
1b10e27b5d adjust various things so that the group test can be run in
a single process and without (I believe) depending on the 
OS's idea of which frame has the focus
2017-01-15 18:28:09 -06:00
Robby Findler
97b23af4b1 Rackety 2017-01-15 07:59:09 -06:00
Robby Findler
7e44c4cfeb fix a leak exposed by da4d2db396 2017-01-11 12:05:41 -06:00
Robby Findler
6ad4f1edaa add #:transparent to aid debugging 2017-01-11 12:05:24 -06:00
Matthew Flatt
f8eab2a732 unbreak for GTK+ 2 2017-01-05 17:02:14 -07:00
Matthew Flatt
38f0c6adb5 avoid GTK3 warning 2017-01-04 16:28:13 -07:00
Matthew Flatt
48c1b28284 initial support for GTK+ 3 on Wayland
GL contexts and GC blits don't work, dialog placement doesn't work,
and checkbox animations seem to interefere with updating --- but at
least things mostly work.

Relevant to racket/racket#1547
2017-01-03 08:18:11 -07:00
Matthew Flatt
5a09d2b825 "Mac OS X" -> "Mac OS" 2016-12-23 12:33:59 -07:00
Robby Findler
141eee8cbc add set-get-token to color:text-mode<%> 2016-12-23 11:49:26 -06:00
Robby Findler
27569696b3 bring down below 102 columns 2016-12-23 11:47:50 -06:00
Robby Findler
62a70a6593 avoid a little copying 2016-12-19 14:04:44 -06:00
Robby Findler
23f9677e52 avoid copying bytes when not necessary 2016-12-19 14:04:44 -06:00
Matthew Flatt
5e70534b43 adjust workaround for GTK+3 before version 3.22
Adjust a workaround for versions before 3.22 when setting the font for
a control.

GTK+ version 3.22 starts paying attention to whether a font size for a
control is absolute (as opposed to being in points), so the workaround
that was put in place for earlier versions breaks.

In addition, some part of the drawing stack seems to round point sizes
to an integeral size after DPI conversion. Take that rounding into
account when setting the font size in `normal-control-font`.

Closes #1522
2016-12-19 07:21:28 -07:00
Robby Findler
5fed92d72a adjust replace-all so that it accounts for the possibility that the text didn't go away
closes #60
2016-12-14 15:21:36 -06:00
Matthew Flatt
b9e94f9c45 macOS: don't try to declare implementation of NSApplicationDelegate
There's no run-time representation of `NSApplicationDelegate`, so
trying to declare it ands up adding NULL as a protocol to the
Objective-C class for the application delegate.

Adding NULL that way leads to a crash on 10.12.1+ with TouchBar
support.

Closes racket/racket#1520
2016-12-14 13:29:56 -07:00
Stephen Chang
e627cdcba5 disable replace-all on empty search string
- fixes drracket internal err
2016-12-12 16:13:58 -06:00
Robby Findler
bda7409367 add some missing docs 2016-11-24 12:12:04 -06:00
Robby Findler
a115076fe4 add a GUI interface to toggle the x selection mode
closes PR 15365
2016-11-19 08:28:29 -06:00
William G Hatch
3b280551c2 GTK+: accumulate small scroll events into appropriate wheel events 2016-11-17 15:25:33 -07:00
Robby Findler
83a679d7f5 fix bug in the handling of the colors of the line numbers
closes racket/drracket#83
2016-11-16 09:23:15 -06:00
Robby Findler
e6a4865a74 dont set the style background color to the canvas background;
instead leave it as transparent

related to racket/racket#1507
2016-11-05 14:59:45 -05:00
Robby Findler
b52a41da23 adjust the syntax coloring so that number-snip% instances
are allowed to pass through the filter (as they are trusted code)

related to racket/racket#1507
2016-11-04 11:19:57 -05:00
Leif Andersen
6c78cd266a Fixes bug in slider%
It would occasionally drop the last digit in the message field.

This turned out to be a bug where the number, while smaller, was wider.
For example:
11111
10101

In variable width fonts the second one will be wider
2016-10-24 14:28:49 -04:00
Robby Findler
5e433c8035 fix search for containing text region
closes #42
closes #43
2016-09-11 20:51:19 -05:00
Robby Findler
0fae71ad0c fix indentation newline insertion
closes #41
2016-08-31 18:05:23 -05:00
Robby Findler
01c665e6e9 correct insertion of spaces at the beginning of a line and indent first line in para too, after all 2016-08-25 08:36:57 -05:00
Robby Findler
0ae0a5b804 use a new algorithm for flowing paragraphs 2016-08-24 20:49:03 -05:00
Matthew Flatt
6b2f4a72ae GTK+ 3: fix problem with sizing initially unshown items
This repair is especially aimed at avoiding missing toolbar
buttons in DrRacket.
2016-08-20 09:26:03 -06:00
Matthew Flatt
c700e32c17 0-sized window =/=> 0-sized backing bitmap 2016-08-19 18:16:05 -06:00
Robby Findler
d0376db70a Rackety 2016-08-19 09:28:10 -05:00
Robby Findler
ce1ded41f2 fix leak 2016-07-30 20:30:48 -05:00
Robby Findler
18404570dd improve support for editing the ascii art (unicode) #2d rectangles
specifically, add a mode that avoids breaking the edges of
the rectangle when you type and add a keystroke for adding
a new in the existing row
2016-07-30 04:55:01 -05:00
Robby Findler
fcd134eebe more search fixes 2016-07-26 19:15:48 -05:00
Leif Andersen
ef78d330b6 Move docs for racket/gui/init and racket/gui/interactive
Previously they were part of the base repo.
2016-07-26 09:41:58 -04:00
Robby Findler
a8574ce5e6 missed a call to do-search 2016-07-26 01:11:49 -05:00
Leif Andersen
1801eac125 racket/gui/interactive should be using racket/base
Previously it was using racket/gui
2016-07-25 22:39:16 -04:00
Robby Findler
dbede3f33c get rid of (worse) implementation of find-string-embedded
that was hanging around from old times. Instead, just use the
text% find-string-embedded functionality directly
2016-07-24 04:02:42 -05:00
Robby Findler
6b16c0fd6b rackety & add test suite 2016-07-24 04:02:42 -05:00
Robby Findler
feaff67418 fix bug in searching (start from the correct editor) 2016-07-24 04:02:41 -05:00
Leif Andersen
e293d24da7 Apparently find-graphical-system-path finds the correct gracketrc file 2016-07-23 13:09:01 -04:00
Robby Findler
52300ff032 highlight search hits in embedded editors 2016-07-23 09:18:17 -05:00
Robby Findler
28ca7c6d14 improve the situation for search results in nested editors
This doesn't quite fix all the problems, as the outer editor doesn't get callbacks
when the position changes in the inner editors (and the inner ones aren't propogating
the callbacks currently) so the "n/m matches" display doesn't update properly in that
case. Also, it doesn't (yet) try to draw the search bubbles for embedded editors

Still, progress has been made; at least the bar is not red anymore when there are
hits only in embedded editors

closes PR 12786
2016-07-23 03:00:00 -05:00
Leif Andersen
cb81e3768d Woops, racket/gui/interactive should load .gracketrc.
(Cannot use (find-system-path 'init-file) because it will always
evaluate to .racketrc, even in gracket (where it should be
.gracketrc).)
2016-07-23 02:27:40 -04:00
Leif Andersen
0ae02837e5 Add interactive file to be used by Racket core. 2016-07-23 00:33:46 -04:00
Robby Findler
66bda1c9c8 fix marshalling bug in syntax-browser
closes #35
2016-07-22 03:25:04 -05:00
Robby Findler
d73fc00749 protect DrRacket against bugs in snipclass marshalling code
I believe this applies only when DrRacket already trusts
the handler, so this is just a debugging aid, not true protection

closes racket/drracket#49
2016-07-22 03:09:48 -05:00