G(tk)Application support in gtk3reactor
|Reported by:||lucian||Owned by:||Itamar Turner-Trauring|
branch-diff, diff-cov, branch-cov, buildbot
GLib has a GApplication class that handles things like application uniqueness and a few other things, and provides its own .run() method. GtkApplication inherits from it and also does Gtk-specific things.
After installing the gtk3reactor, if I call reactor.run() the UI does show up, but the GApplication's 'activate' event never fires. At glyph's suggestion I explicitly set the reactor's mainloop to that of the GApplication's and 'activate' fired as expected.
The reactor also doesn't stop when I close the window, even with the hack.
Change History (21)
comment:10 Changed 5 years ago by
|Author:||itamarst → lucian|
|Owner:||Itamar Turner-Trauring deleted|