Table.attachDefaults

void attachDefaults(gtk.widget.Widget widget, uint leftAttach, uint rightAttach, uint topAttach, uint bottomAttach)

As there are many options associated with [gtk.table.Table.attach], this convenience function provides the programmer with a means to add children to a table with identical padding and expansion options. The values used for the #GtkAttachOptions are GTK_EXPAND | GTK_FILL, and the padding is set to 0.

Parameters

widgetThe child widget to add.
leftAttachThe column number to attach the left side of the child widget to.
rightAttachThe column number to attach the right side of the child widget to.
topAttachThe row number to attach the top of the child widget to.
bottomAttachThe row number to attach the bottom of the child widget to.

Deprecated

Use [gtk.grid.Grid.attach] with #GtkGrid. Note that the attach

arguments differ between those two functions.