245 |
245 |
246 // get the maximum height in this row |
246 // get the maximum height in this row |
247 if(widget_height > rheight) { |
247 if(widget_height > rheight) { |
248 rheight = widget_height; |
248 rheight = widget_height; |
249 } |
249 } |
250 rowdim = ucx_list_append(rowdim, (void*)(intptr_t)rheight); |
|
251 |
250 |
252 // get the maximum width in this column |
251 // get the maximum width in this column |
253 if(widget_width > coldim[i]) { |
252 if(widget_width > coldim[i]) { |
254 coldim[i] = widget_width; |
253 coldim[i] = widget_width; |
255 } |
254 } |
282 UCX_FOREACH(row, grid->lines) { |
282 UCX_FOREACH(row, grid->lines) { |
283 int x = 0; |
283 int x = 0; |
284 int i=0; |
284 int i=0; |
285 UCX_FOREACH(elm, row->data) { |
285 UCX_FOREACH(elm, row->data) { |
286 Widget w = elm->data; |
286 Widget w = elm->data; |
287 XtVaSetValues(w, XmNx, x, XmNy, y, NULL); |
287 XtVaSetValues( |
|
288 w, |
|
289 XmNx, x, |
|
290 XmNy, y, |
|
291 XmNwidth, coldim[i], |
|
292 XmNheight, rowdim->data, |
|
293 NULL); |
288 |
294 |
289 x += coldim[i]; |
295 x += coldim[i]; |
290 i++; |
296 i++; |
291 } |
297 } |
292 y += (intptr_t)rowdim->data; |
298 y += (intptr_t)rowdim->data; |