February 2019
Intermediate to advanced
450 pages
11h 59m
English
In a traditional GTK+ application, it would be possible, even recommended, to make use of the built-in signal handling capabilities. A new signal could be created, which would then be emitted by the application at an appropriate time; components could connect to this signal and respond appropriately. However, the ability to create signals is not exposed through the Go-GTK API and so we will use callbacks like the previous examples.
To load our test server, we first update the main() function to set up a server and pass it to the user interface creation code. We then set the content to show the current message from our test server:
func main() { server := client.NewTestServer() main := new(mainUI) main.showMain(server) main.setEmail(server.CurrentMessage()) ...Read now
Unlock full access