mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Move init functions into main where they should be
It seems that libadwaita does not like being initialized too early. Move the init function into the beggining of main() to make it happy.
This commit is contained in:
@@ -5,14 +5,13 @@ imports.gi.versions.Soup = '2.4';
|
||||
pkg.initGettext();
|
||||
|
||||
const { GstClapper, Gtk, Adw } = imports.gi;
|
||||
|
||||
GstClapper.Clapper.gst_init(null);
|
||||
Gtk.init();
|
||||
Adw.init();
|
||||
|
||||
const { App } = imports.src.app;
|
||||
|
||||
function main(argv)
|
||||
{
|
||||
GstClapper.Clapper.gst_init(null);
|
||||
Gtk.init();
|
||||
Adw.init();
|
||||
|
||||
new App().run(argv);
|
||||
}
|
||||
|
@@ -5,10 +5,6 @@ imports.gi.versions.Soup = '2.4';
|
||||
pkg.initGettext();
|
||||
|
||||
const { Gtk, Adw } = imports.gi;
|
||||
|
||||
Gtk.init();
|
||||
Adw.init();
|
||||
|
||||
const { AppRemote } = imports.src.appRemote;
|
||||
const Misc = imports.src.misc;
|
||||
|
||||
@@ -19,5 +15,8 @@ Misc.appId += '.' + ID_POSTFIX;
|
||||
|
||||
function main(argv)
|
||||
{
|
||||
Gtk.init();
|
||||
Adw.init();
|
||||
|
||||
new AppRemote().run(argv);
|
||||
}
|
||||
|
Reference in New Issue
Block a user