+struct gopt_widget {
+ struct flist_head list;
+ GtkWidget *widget;
+};
+
+static struct flist_head gopt_list[FIO_MAX_OPTS];
+
+static void __gopt_set_children_visible(unsigned int idx, gboolean visible)
+{
+ struct flist_head *entry;
+ struct gopt_widget *gw;
+
+ flist_for_each(entry, &gopt_list[idx]) {
+ gw = flist_entry(entry, struct gopt_widget, list);
+ gtk_widget_set_sensitive(gw->widget, visible);
+ }
+}