using Gtk
using Gtk.ShortNames
win = GtkWindow( “toolbar”, 800, 600)
file = GtkMenuItem(“_File”)
filemenu = GtkMenu(file)
new_ = GtkMenuItem(“New”)
push!(filemenu, new_)
mb = GtkMenuBar()
push!(mb, file)
g = GtkGrid()
g[1,1] = mb
toolbar = GtkToolbar()
g[1,2] = toolbar
push!(win, g)
showall(win)
if !isinteractive()
c = Condition()
signal_connect(win, :destroy) do widget
notify(c)
end
@async Gtk.gtk_main()
wait(c)
end