Commit Graph

237 Commits

Author SHA1 Message Date
Matthew Flatt
58db5f8b46 racket/gui: implement set-clipboard-bitmap' in clipboard<%>'
Closes PR 12689

Cocoa implementation provided by Jens Axel Søgaard
2012-05-26 19:42:48 -06:00
Matthew Flatt
68e005fb2c racket/draw: make-immutable-{color,brush,pen} => make-{color,brush,pen}
Also, use keywords for `make-pen' and `make-brush'.

Adding `make-pen' and `make-color' creates many conflicts among
teaching libraries, such as `2htdp/image'. These are easy to fix
up in the tree, but adding such obvious names to `racket/draw'
may create other compatibility problems, so we might have to reconsider
the names.

In consultation with Asumu.
2012-05-01 21:04:40 -06:00
Asumu Takikawa
8db45eb557 Add immutable constructors for color%, brush%, pen%
- Make set-immutable a local method and document
    is-immutable? as a public method
  - Add some racket/draw tests
2012-05-01 21:20:52 -04:00
Asumu Takikawa
d7fefc848b Fix requires to avoid circular dependencies. 2012-03-30 23:34:34 -04:00
Matthew Flatt
97a64b1166 no callback for `tab-panel%' tab additions and deletions 2012-03-10 10:07:37 -07:00
Matthew Flatt
01dce00271 racket/gui: correct some casts in GUI bindings 2012-01-23 11:20:21 -07:00
Matthew Flatt
484803a896 gtk: fix problem wth window freeze & thaw
Closes PR 12496

Merge to 5.2.1
2012-01-19 16:20:45 -07:00
Matthew Flatt
f93c94f6ff add 'shift, 'control, 'rshift, and 'rcontrol events 2011-12-08 15:05:41 -07:00
Matthew Flatt
29c7c28ba5 gtk: fix problems with on-focus' and on-activate' 2011-10-18 06:35:50 -06:00
Matthew Flatt
a09543772a gtk: no freeze/thaw before/after unmap
Merge to 5.2
2011-10-17 15:53:07 -06:00
Matthew Flatt
3941a5d04f cocoa: make grow-box-spacer zero-width for 10.7 2011-10-04 12:59:18 -06:00
Matthew Flatt
4535f5d8cc fix keyboard navigation (all platforms)
Also, fix `set-selection' in `list-box%' to not invoke the
tab panel's callback function (cocoa & gtk).
2011-09-30 13:44:24 -06:00
Matthew Flatt
f9dabb8994 add -J/--wm-class argument to set the WM_CLASS class on Unix 2011-09-26 18:07:18 -06:00
Matthew Flatt
2ecd32b86e racket/gui: fix excessive on-size' and on-move' callbacks
Especially for gtk, where a client-resize notification was
getting mixed up with a frame-configure notification. On all
platforms, `on-size' and `on-move' for a frame% were queued
at too high a priority.
2011-09-10 14:37:13 -06:00
Matthew Flatt
ec25a74b97 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.
2011-09-10 11:14:52 -06:00
Matthew Flatt
ce4705cedc 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.
2011-09-09 17:03:17 -06:00
Matthew Flatt
594447ae7e gtk: make list-box% min size non-zero for content 2011-09-03 10:44:37 -06:00
Matthew Flatt
459d2422e3 gtk: fix menu-item shortcut updating 2011-09-01 07:14:06 -06:00
Matthew Flatt
9d5f45a9d1 gtk: fix border (when requested) for canvas% with scrollbars 2011-09-01 07:14:05 -06:00
Matthew Flatt
8264e77585 gtk: fix frame for text-field%' and other canvas%'es 2011-08-16 08:12:31 -06:00
Matthew Flatt
461af202c5 implement 'border style for `panel%' 2011-08-13 07:00:51 -06:00
Matthew Flatt
456e9befd3 fix refresh' on window<%>'s other than `canvas%'s 2011-08-12 17:03:28 -06:00
Matthew Flatt
941dacd966 gtk: set app name on startup
Closes PR 11896
Closes PR 11408
2011-08-04 09:27:05 -06:00
Matthew Flatt
cdf2085703 gtk: fix frame position tracking
Closes PR 11931
2011-08-04 06:45:18 -06:00
Matthew Flatt
37c43c23d6 gtk: fix refresh freeze/thaw and reparent interaction
Closes PR 11947
2011-08-02 20:00:56 -06:00
Sam Tobin-Hochstadt
f67d46cd2f Pass the correct number of arguments to `display-size'. Closes PR 12062. 2011-07-19 17:04:51 -04:00
Matthew Flatt
23a2a075ea add get-display-count' and #:screen argument to get-display-size'
and to `get-display-left-top-inset'

 add -M <monitor> option to Slideshow
2011-07-18 20:15:15 -06:00
Matthew Flatt
b096fb7503 gtk: `get-display-size' reports main monitor only
and the same for `get-display-left-top-inset'
2011-07-18 19:59:05 -06:00
Matthew Flatt
5edc0c70af change GDK_POINTER_MOTION_HINT_MASK back to GDK_POINTER_MOTION_MASK
because HINT doesn't works as expected, and the problem it
 seemed to solve at one time (slow resize in DrRacket) seems
 to have been fixed some other way. GDK_MOUSE_MOTION_MASK
 isn't needed, since GDK_POINTER_MOTION_MASK covers it.

 Merge to 5.1.2
2011-07-16 14:30:08 -06:00
Matthew Flatt
ff49859c80 git: fix "&" and "_" handling in labels 2011-07-06 09:54:57 -06:00
Eli Barzilay
40124a0619 A long overdue scan to eliminate files without terminating newlines.
(DrRacket should really do that.)
2011-06-28 02:01:41 -04:00
Matthew Flatt
b4e3e065ac gtk: fix menu-bar height handling to work right with Ubuntu's patch to support out-of-frame menu bars in Unity 2011-06-20 14:46:14 -06:00
Matthew Flatt
da2b3f94fb fix initial panel size
so that it doesn't force an enclosing frame to grow
2011-06-20 10:28:56 -06:00
Eli Barzilay
42fe92cd25 Split the glob patterns on ";", and add them all to the gtk dialog. 2011-06-02 09:33:53 -04:00
Matthew Flatt
5c5e6039df gtk: fix self X-selection handling 2011-05-24 13:22:01 -06:00
Robby Findler
df6be6e7f1 Adjust the menubar sizing code to explicitly take
into account the size of the dummy menu item that
was added.
  related to PR 11926
  related to PR 11893
  related to PR 11623
  related to PR 11917
2011-05-17 11:02:26 -05:00
Matthew Flatt
546faf8b34 fix gl canvas created after parent is shown
Merge to 5.1.1
2011-04-16 13:24:58 -06:00
Matthew Flatt
49903be78f gtk: fix button enable when mouse is over button 2011-04-15 16:54:49 -06:00
Matthew Flatt
aabd5f7bd2 gtk: fix over-eager attempt at alt- menu activation
Closes PR 11843
2011-04-11 07:39:40 -06:00
Matthew Flatt
71df6ddc05 gtk, cocoa: fix auto-sizing of text `message%'s 2011-04-08 14:22:17 -06:00
Matthew Flatt
b0115ee360 add 'wheel-left and 'wheel-right events 2011-04-03 09:49:56 -06:00
Matthew Flatt
d77c92d087 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
2011-03-27 10:51:46 -06:00
Matthew Flatt
e8cb27c08c add `get-device-scale' to dc<%> 2011-03-15 07:37:42 -06:00
Matthew Flatt
051ec4736d gtk: fix slider value display 2011-03-11 02:50:06 -06:00
Matthew Flatt
cd4d3e3d95 gtk: fix dragging events
Closes PR 11786
2011-03-08 07:55:53 -06:00
Matthew Flatt
fdef90e482 fix get-column-width' method of list-box%'
by changing the name to match the docs, plus some other
  bug fixes triggered by better testing
 Closes PR 11780
2011-02-28 19:12:34 -07:00
Matthew Flatt
93e1467b8b racket/gui: scrollbar support panels 2011-02-24 13:23:51 -07:00
Matthew Flatt
137d96c089 multi-column support in list-box% 2011-02-21 13:58:57 -07:00
Matthew Flatt
97870282c2 gtk: keep popup menus on the screen
Closes PR 11414
2011-02-19 19:42:20 -07:00
Matthew Flatt
85951bf665 gtk: smoother editor-canvas resize
- call `on-size' on setting the canvas size, like Win32 and Cocoa,
   which mainly shows/hides auto-shown scrollbars more on time
   (e.g., DrRacket doesn't start with horizontal scrollbars that
   immediately disappear)
 - switch mouse tracking to "hint" mode, instead of catching every
   single mouse position
 - when queueing `on-size' methos in response to client-size changes,
   cancel and queued but undelivered calls; in the case of editor
   canvases, this doesn't really have an effect, due to the other
   `on-size' call
 Closes PR 11369, hopefully
2011-02-19 16:10:00 -07:00