Settled window sizing for GTK+; moved the respective TODO to future plans.
This commit is contained in:
parent
da2d4da15a
commit
6c3058a32d
|
@ -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/
|
- 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
|
- also moved the Windows code there for the sake of efficiency
|
||||||
- GTK+ works just fine though
|
- 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:
|
specifics:
|
||||||
|
|
||||||
|
|
|
@ -264,6 +264,8 @@ func (s *sysData) setWindowSize(width int, height int) error {
|
||||||
ret := make(chan struct{})
|
ret := make(chan struct{})
|
||||||
defer close(ret)
|
defer close(ret)
|
||||||
uitask <- func() {
|
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)
|
gtk_window_resize(s.widget, width, height)
|
||||||
ret <- struct{}{}
|
ret <- struct{}{}
|
||||||
}
|
}
|
||||||
|
|
1
todo.md
1
todo.md
|
@ -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
|
- make sure mouse events trigger when we move the mouse over an Area with a button held on OS X
|
||||||
|
|
||||||
super ultra important things:
|
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
|
- formalize what happens if Modifiers by themselves are held
|
||||||
- OS X: find out if multiple DIFFERENT modifiers released at once produces multiple events
|
- 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
|
- in general, figure out what to do on multiple events, period
|
||||||
|
|
Loading…
Reference in New Issue