Skip to content

Commit

Permalink
plugins/dac_data_manager: limit number of TXs per row to 4
Browse files Browse the repository at this point in the history
This restores the behavior from commit: ccbcb78 which was
dropped during the GTK updatel.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
  • Loading branch information
mhennerich committed Jun 23, 2023
1 parent 084b66b commit ad285fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/dac_data_manager.c
Expand Up @@ -1033,8 +1033,9 @@ static GtkWidget *gui_dac_create(struct dds_dac *ddac)
gtk_container_add(GTK_CONTAINER(dac_frm), dac_table);
for (i = 0; i < ddac->tx_count; i++)
gtk_grid_attach(GTK_GRID(dac_table), gui_tx_create(&ddac->txs[i]),
0 + i, 0, 1, 1);
i % 4, i / 4, 1, 1);

gtk_grid_set_column_spacing(GTK_GRID(dac_table), 5);
ddac->frame = dac_frm;
gtk_widget_show(dac_frm);

Expand Down

0 comments on commit ad285fa

Please sign in to comment.