using Gtk;
using GLib;

static Gtk.Widget create_widget (Object item) {
    var child = new Gtk.FlowBoxChild ();
    child.add (item as Gtk.Widget);

    child.visible = true;

    return child;
}

int main (string[] args) {
    Gtk.init (ref args);

    var window = new Window ();
    window.set_default_size (350, 70);
    window.destroy.connect (Gtk.main_quit);

    var flowbox = new Gtk.FlowBox ();
    var model = new GLib.ListStore (typeof (Gtk.Widget));
    flowbox.bind_model (model, create_widget);
 
    var button = new Button.with_label ("Click me!");
    model.append (button);

    window.add (flowbox);
    window.show_all ();

    Gtk.main ();
    return 0;
}
