# How to set up toolbar using Gtk.jl's GtkAction with custom toolbar icons?

**URL:** <https://discourse.julialang.org/t/how-to-set-up-toolbar-using-gtk-jls-gtkaction-with-custom-toolbar-icons/81457>\
**Category:** New to Julia\
**Tags:** gtk\
**Created:** [May 22, 2022, 9:04am UTC](https://discourse.julialang.org/t/how-to-set-up-toolbar-using-gtk-jls-gtkaction-with-custom-toolbar-icons/81457 "2022-05-22T09:04:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fjg](https://avatars.discourse-cdn.com/v4/letter/f/f08c70/32.png) [@fjg](https://discourse.julialang.org/u/fjg)\
**Post date:** [May 22, 2022, 9:04am UTC](https://discourse.julialang.org/t/how-to-set-up-toolbar-using-gtk-jls-gtkaction-with-custom-toolbar-icons/81457/1 "2022-05-22T09:04:17Z")

</div>

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
