Standardized basegetAuxResize() on the GTK+ backend to match the Mac OS X backend and controlbase.sh.
This commit is contained in:
parent
8c4cd789ca
commit
a4fac48192
|
@ -86,5 +86,5 @@ func (b *button) commitResize(a *allocation, d *sizing) {
|
|||
}
|
||||
|
||||
func (b *button) getAuxResizeInfo(d *sizing) {
|
||||
basegetAuxResizeInfo(d)
|
||||
basegetAuxResizeInfo(b, d)
|
||||
}
|
||||
|
|
|
@ -96,5 +96,5 @@ func (c *checkbox) commitResize(a *allocation, d *sizing) {
|
|||
}
|
||||
|
||||
func (c *checkbox) getAuxResizeInfo(d *sizing) {
|
||||
basegetAuxResizeInfo(d)
|
||||
basegetAuxResizeInfo(c, d)
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -92,5 +92,5 @@ func (l *label) commitResize(c *allocation, d *sizing) {
|
|||
}
|
||||
|
||||
func (l *label) getAuxResizeInfo(d *sizing) {
|
||||
basegetAuxResizeInfo(d)
|
||||
basegetAuxResizeInfo(l, d)
|
||||
}
|
||||
|
|
|
@ -72,5 +72,5 @@ func (t *tab) commitResize(a *allocation, d *sizing) {
|
|||
}
|
||||
|
||||
func (t *tab) getAuxResizeInfo(d *sizing) {
|
||||
basegetAuxResizeInfo(d)
|
||||
basegetAuxResizeInfo(t, d)
|
||||
}
|
||||
|
|
|
@ -75,5 +75,5 @@ func (t *textField) commitResize(a *allocation, d *sizing) {
|
|||
}
|
||||
|
||||
func (t *textField) getAuxResizeInfo(d *sizing) {
|
||||
basegetAuxResizeInfo(d)
|
||||
basegetAuxResizeInfo(t, d)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue