Settled window sizing for GTK+; moved the respective TODO to future plans.

This commit is contained in:
Pietro Gagliardi 2014-04-15 12:58:17 -04:00
parent da2d4da15a
commit 6c3058a32d
3 changed files with 4 additions and 1 deletions

View File

@ -104,6 +104,8 @@ big dumb things:
- listboxes should have horizontal scrollbars on all platforms; this is way too hard on OS X and doesn't work; my code is in experiments/
- also moved the Windows code there for the sake of efficiency
- GTK+ works just fine though
- window sizes need to not include the window decoration; while Mac OS X and GTK+ both obey this, I've only had issues with Windows; check the experiments/ folder
- also will need to be documented in window.go
specifics:

View File

@ -264,6 +264,8 @@ func (s *sysData) setWindowSize(width int, height int) error {
ret := make(chan struct{})
defer close(ret)
uitask <- func() {
// does not take window geometry into account (and cannot, since the window manager won't give that info away)
// thanks to TingPing in irc.gimp.net/#gtk+
gtk_window_resize(s.widget, width, height)
ret <- struct{}{}
}

View File

@ -3,7 +3,6 @@ important things:
- make sure mouse events trigger when we move the mouse over an Area with a button held on OS X
super ultra important things:
- window sizes are inconsistent and wrong: we need to see on which platforms the titlebars/borders/etc. count...
- formalize what happens if Modifiers by themselves are held
- OS X: find out if multiple DIFFERENT modifiers released at once produces multiple events
- in general, figure out what to do on multiple events, period