Commit Graph

212 Commits

Author SHA1 Message Date
Matthew Flatt
5b7bf69a13 HiDPI support on Unix (Gtk2)
Support GUI scaling in much the same way as on Windows, where
the OS setting ("org.gnome.desktop.interface.scaling-factor"
times "...text-scaling-factor") determines the scale that is
used for both graphics and GUI sizing.

As I understand it, a complete solution requires porting to
Gtk3. With Gtk2, the graphical part of a widget doesn't scale.
Text and image labels should scale correctly, though.
2015-08-01 18:06:12 -06:00
Sam Tobin-Hochstadt
60410356cc Pass strings to raise-type-error.
Closes PR 13178.
2015-07-30 14:35:18 -07:00
Robby Findler
f91ec3df28 fix all-string-snips? predicate 2015-07-25 16:44:22 -05:00
Robby Findler
2d654de678 use the proper preferences panel 2015-07-22 12:18:32 -05:00
Robby Findler
b528e0e682 limit font sizes to exact integers in [0,255] 2015-06-26 10:47:12 -05:00
Robby Findler
a5d55ff817 add the close-when-hidden? argument to in-terminal 2015-06-08 22:36:28 -05:00
Robby Findler
91dd69ba8d a hack that tries to make it so that the open-recent menu
item is wrong less often
2015-06-05 09:37:23 -05:00
Robby Findler
1db898cd00 fix indentation for datum-case 2015-06-05 09:37:12 -05:00
Robby Findler
0d3ad12362 guard the result of start-skip-spaces better
closes PR 15087
2015-06-03 18:00:54 -05:00
Matthew Flatt
6ed4157c51 fix boundary case for responding to horizontal scroll request 2015-05-21 08:52:01 -06:00
Matthew Flatt
12612670f6 editor-canvas%: fix scroll refresh when scroll bars are hidden 2015-05-21 08:52:01 -06:00
Jay McCarthy
6fa420d947 add get-scaled-client-size 2015-05-20 12:59:51 -04:00
Matthew Flatt
b882281b33 canvas% on-scroll: call in non-atomic mode
Add a missing exit from atomic mode on the way to an overidden
`on-scroll` method.

Closes PR 15068
2015-05-19 14:01:07 -06:00
Jay McCarthy
bc87ded206 adding version requirement for hires-mode 2015-05-19 14:59:33 -04:00
Matthew Flatt
030a02a53c add {get,set}-area-selctable to pasetboard% 2015-05-16 09:05:22 -06:00
Robby Findler
6dcdb9744f use the info-frame's idea of which editor is important for the
goto-line shortcut
2015-05-12 11:24:54 -05:00
Robby Findler
d1e3a991cd disable overwrite mode when the overwrite keybindings are disabled 2015-05-12 09:02:53 -05:00
Robby Findler
ab998c9f53 add all-string-snips<%> and all-string-snips-mixin
This is pulled out of DrRacket, mostly just to be able to add test cases
2015-05-09 11:17:54 -05:00
Robby Findler
d9fd94f608 fix handling of snip%s that don't have a snipclass 2015-05-04 18:01:47 -05:00
gfbee
860f14b7ed Typo 2015-05-04 10:29:21 -05:00
Jay McCarthy
be6bd0160c supporting opengl hires mode 2015-05-03 08:13:22 -04:00
Robby Findler
2517366ea3 bump version number for snip-special change 2015-05-02 17:50:28 -05:00
Robby Findler
469add8d57 add 'snip-special's to text:ports<%> in the framework
related to PR 15049
2015-05-02 17:49:19 -05:00
Jay Kominek
f71f1c3ccb win32 support for frame% fullscreen and is-fullscreened? 2015-05-01 12:39:55 -06:00
Jay Kominek
eb2b279712 gtk support for frame% fullscreen and is-fullscreened? 2015-05-01 12:39:33 -06:00
Robby Findler
955eb9755c remove problematic and unecessary syncronization 2015-04-30 09:01:46 -05:00
Robby Findler
c33027cfea refactor to separate the two modes of flushing into their own separate pieces of code 2015-04-30 08:57:53 -05:00
Robby Findler
42f50a7c08 only set the extension to .rkt if it looks like it isn't set to anything useful already 2015-04-19 07:22:45 -05:00
Robby Findler
cb651731d0 refactor to introduce compute-amount-to-indent 2015-04-17 11:37:09 -05:00
Robby Findler
20520bf88e small tweaks to scribble indentation
- try to avoid special-casing blank lines as much
- when there are close curley braces all alone on a line,
  count the line as outside for the purposes of identing
2015-04-17 11:36:06 -05:00
Robby Findler
e4e164ff82 bump version number so drracket can depend on changes in 134144a and 6ddf433 2015-04-10 17:11:42 -05:00
Robby Findler
134144a4ce generalize coroutines so the pause function optionally takes
into account the amount of cpu time used
2015-04-09 21:16:55 -05:00
Robby Findler
6ddf433c3e add missing identifiers to color:text<%> 2015-04-09 21:14:39 -05:00
Neil Toronto
7541838b78 Check for X errors as well as NULL contexts to work around broken graphics drivers
From the ARB_create_context_profile standard:

  On failure glXCreateContextAttribsARB returns NULL and generates an
  X error with extended error information.

Some NVIDIA drivers on Linux won't return a core profile. When they don't,
they're supposed to return NULL as well as generate an X error, but they
only generate an X error and return a non-NULL, garbage context. This is
not only nonstandard behavior, but lame. It's a major pain to check for X
errors. But whatever, NVIDIA, you big old gorilla.

This may or may not fix segfaults some people are having with Pict3D. If
it does, they won't have to use (current-pict3d-legacy? #t) anymore.
2015-03-16 10:53:10 -04:00
Robby Findler
724d8d7bda add a test case for capitalize word 2015-03-14 13:05:27 -05:00
Robby Findler
ce926b4692 pull the keybindings code out of the framework compound unit structure 2015-03-14 13:05:27 -05:00
Sam Tobin-Hochstadt
9cc25592c3 Use object-or-false=? on snip admins.
Fixes PR 15002.
2015-03-10 19:57:57 -04:00
Max New
63038285e5 Delete trailing whitespace on return 2015-03-10 09:28:04 -05:00
Daniel Feltey
93a21dd7cd Use object=? instead of eq? to handle equality for contracted objects 2015-03-05 14:10:47 -07:00
Asumu Takikawa
b3457212d2 Fix write-gif function in mrlib
Broke in API changes from commit
5066731b25
2015-02-25 17:03:35 -05:00
Robby Findler
cf6a3d6ecb change backspace in overwrite mode to be more what one
might expect it to be
2015-02-12 15:31:08 -06:00
Matthew Flatt
ff6b409f28 Cocoa: avoid atomic-mode problems in clipboard
Get data from a clipboard client before going into atomic mode. This
correction can avoid an "about to suspend in atomic mode" failure,
particularly if a snip fails to copy correctly.
2015-02-05 10:33:47 +01:00
Robby Findler
7a3c102d1c add pulled-point to 2htdp/image's core 2015-02-01 14:39:37 -06:00
Gustavo Massaccesi
5a126f552e Change color in editor: Grey -> Gray 2015-01-30 13:27:08 -07:00
Robby Findler
d8f090957f fix definitely-same-image? for the image-snip case
closes PR 14951
2015-01-28 21:39:47 -06:00
Robby Findler
5df277c2d6 adjust size limitation when building bitmaps for 2htdp/image images
so that it limits the total size of the bitmap, instead
of limiting based on the width and height independently
2015-01-24 14:43:09 -06:00
Matthew Flatt
99a04d5f52 cocoa: get file-dialog results atomically
Otherwise, the NSURL object that is returned from the dialog can
be relased before we get the result.
2015-01-23 15:37:37 -07:00
Robby Findler
027ce3bdc2 fix drawing bug in line-numbers and special-first-line support
This drawing bug was that the DC's state wasn't being
initialized all of the way. In particular, the text-mode
wasn't being set and so, in rare occasions, other drawing
code would (legally) leave it in 'solid mode with a non-white
background color also set. Which would cause those two things
to draw incorrectly.
2015-01-15 16:31:26 -06:00
Matthew Flatt
1185faa590 cocoa: adjust key events for empty Ctl- combos and special Option
In particular, restore key handling that makes Ctl-Space produce an
event with a Space character. Also, restore `special-option-key`
support, while correcting the documentation to say what
`special-option-key` and `special-control-key` actually do.

Closes PR 14934
2015-01-14 14:08:28 -07:00
Matthew Flatt
60611bc081 cocoa: fix focus method
Don't confuse "should the Tab key advance the focus to this window?"
with "can this window have the focus?".
2015-01-11 11:05:36 -07:00
Robby Findler
d0561137b5 extend curves in 2htdp/image so they can be filled 2015-01-10 19:43:13 -06:00
Matthew Flatt
31231a6a8d narrow dependencies on Carbon
(reduced Carbon footprint?)
2015-01-09 08:37:38 -07:00
Jens Axel Søgaard
4dc47ef413 Compute other-key-codes
Use UCKeyTranslate to compute and store other-key-codes in the key-event.
2015-01-09 08:11:02 -07:00
Jens Axel Søgaard
fb0356d2fb Bindings for UCKeyTranslate
Bindings for UCKeyTranslate.
UCKeyTranslate converts a combination of a key-code, a modifier key state, keyboard layout and dead key state to a unicode string.
2015-01-09 08:11:01 -07:00
Matthew Flatt
de783c8378 avoid crashing via GCed racket/gui instance 2015-01-06 19:54:52 -07:00
Robby Findler
927289cd8e make the search/replace button actually finish
all the internal work before returning from the button callback

closes PR 14906
2014-12-30 11:59:30 -06:00
Robby Findler
83eb701b2b add definitely-same-image? to mrlib/image-core 2014-12-30 10:35:13 -06:00
AlexKnauth
237a24261d fix typo (open-input-string) -> (open-output-string) 2014-12-26 01:30:07 -06:00
Robby Findler
c494bf367e protect against errors while loading color schemes
closes PR 14884
2014-12-13 14:37:18 -06:00
Robby Findler
9551380791 add after-set-port-unsaved-name and set-port-unsaved-name 2014-12-11 21:33:42 -06:00
Robby Findler
df7cccdb43 fix queue manipulations in text:ports-mixin
closes PR 14871

test case included in drracket repo
2014-12-08 13:24:57 -06:00
Sam Tobin-Hochstadt
135e357a37 Remove extra directories. 2014-12-02 02:33:07 -05:00