ui/gtk/container.c

changeset 110
36f1581b43e2
parent 109
b9808f916687
child 111
40dbf1a7526a
equal deleted inserted replaced
109:b9808f916687 110:36f1581b43e2
140 } 140 }
141 141
142 int gwidth = ct->layout.gridwidth > 0 ? ct->layout.gridwidth : 1; 142 int gwidth = ct->layout.gridwidth > 0 ? ct->layout.gridwidth : 1;
143 143
144 gtk_grid_attach(GTK_GRID(ct->widget), widget, grid->x, grid->y, gwidth, 1); 144 gtk_grid_attach(GTK_GRID(ct->widget), widget, grid->x, grid->y, gwidth, 1);
145 grid->x++; 145 grid->x += gwidth;
146 146
147 ui_reset_layout(ct->layout); 147 ui_reset_layout(ct->layout);
148 ct->current = widget; 148 ct->current = widget;
149 } 149 }
150 #endif 150 #endif

mercurial