Gtk has a set of predefined events that you can use in your application.
Declare HelloWorld
as a new class.
constructor
is called when a new instance is created. Create a
GtkApplication
, then connect activate
to the
existing Gtk event _onActivate
and startup
to
_onStartup
:
Show the window upon application activation: