mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Unfortunately U+2236 seems to break time labels on RTL languages. Check text direction at startup and select best one that works.
31 lines
653 B
JavaScript
31 lines
653 B
JavaScript
imports.gi.versions.Gdk = '4.0';
|
|
imports.gi.versions.Gtk = '4.0';
|
|
imports.gi.versions.Soup = '3.0';
|
|
|
|
pkg.initGettext();
|
|
pkg.initFormat();
|
|
|
|
const Debug = imports.src.debug;
|
|
Debug.debug('imports');
|
|
|
|
const { GstClapper, Gtk, Adw } = imports.gi;
|
|
const { App } = imports.src.app;
|
|
const Misc = imports.src.misc;
|
|
|
|
function main(argv)
|
|
{
|
|
Debug.debug('main');
|
|
|
|
GstClapper.Clapper.gst_init(null);
|
|
Gtk.init();
|
|
Adw.init();
|
|
|
|
/* U+2236 seems to break RTL languages, use U+003A instead */
|
|
if(Gtk.Widget.get_default_direction() === Gtk.TextDirection.RTL)
|
|
Misc.timeColon = ':';
|
|
|
|
Debug.debug('initialized');
|
|
|
|
new App().run(argv);
|
|
}
|