Standardized basegetAuxResize() on the GTK+ backend to match the Mac OS X backend and controlbase.sh.

This commit is contained in:
Pietro Gagliardi 2014-08-03 20:33:19 -04:00
parent 8c4cd789ca
commit a4fac48192
6 changed files with 6 additions and 6 deletions

View File

@ -86,5 +86,5 @@ func (b *button) commitResize(a *allocation, d *sizing) {
}
func (b *button) getAuxResizeInfo(d *sizing) {
basegetAuxResizeInfo(d)
basegetAuxResizeInfo(b, d)
}

View File

@ -96,5 +96,5 @@ func (c *checkbox) commitResize(a *allocation, d *sizing) {
}
func (c *checkbox) getAuxResizeInfo(d *sizing) {
basegetAuxResizeInfo(d)
basegetAuxResizeInfo(c, d)
}

View File

@ -76,7 +76,7 @@ func dobasecommitResize(w *C.GtkWidget, c *allocation, d *sizing) {
C.gtk_widget_size_allocate(w, &r)
}
func basegetAuxResizeInfo(d *sizing) {
func basegetAuxResizeInfo(c Control, d *sizing) {
// controls set this to true if a Label to its left should be vertically aligned to the control's top
d.shouldVAlignTop = false
}

View File

@ -92,5 +92,5 @@ func (l *label) commitResize(c *allocation, d *sizing) {
}
func (l *label) getAuxResizeInfo(d *sizing) {
basegetAuxResizeInfo(d)
basegetAuxResizeInfo(l, d)
}

View File

@ -72,5 +72,5 @@ func (t *tab) commitResize(a *allocation, d *sizing) {
}
func (t *tab) getAuxResizeInfo(d *sizing) {
basegetAuxResizeInfo(d)
basegetAuxResizeInfo(t, d)
}

View File

@ -75,5 +75,5 @@ func (t *textField) commitResize(a *allocation, d *sizing) {
}
func (t *textField) getAuxResizeInfo(d *sizing) {
basegetAuxResizeInfo(d)
basegetAuxResizeInfo(t, d)
}