gotk3-glade-example icon indicating copy to clipboard operation
gotk3-glade-example copied to clipboard

Experimenting with go and gtk using gotk3 and glade

license goreportcard

Go GTK3 Glade Example

Experimenting with gtk using gotk3.

screenshot

Environment

Ubuntu 22.04.03 LTS
Go 1.21.0
GTK 3.24.33

Dependencies

Install dev dependencies for gtk, cairo and glib

    sudo apt-get install libgtk-3-dev libcairo2-dev libglib2.0-dev

Check your GTK3 version:

    apt-cache policy libgtk-3-0 | grep Installed
    #
    #> Installed: 3.24.33-1ubuntu2

Run, Install and Build

To run or build the code we need to pass a build tag with our given gtk3 version:

    go run     -v -tags gtk_3_24 main.go
    go install -v -tags gtk_3_24
    go build   -v -tags gtk_3_24 -o dist/gotk3-glade-example

Links