Files
clapper/src/menu.js
Rafał Dzięgiel 6950cf1bbb Do not import GstClapper for remote app
No need to import and initialize whole GStreamer for web application if the only thing needed there is a single enum.
2021-02-22 16:34:08 +01:00

14 lines
366 B
JavaScript

const { GObject, Gtk } = imports.gi;
const Dialogs = imports.src.dialogs;
var actions = {
openLocal: (window) => new Dialogs.FileChooser(window),
openUri: (window) => new Dialogs.UriDialog(window),
prefs: (window) => new Dialogs.PrefsDialog(window),
about: (window) => new Dialogs.AboutDialog(window),
};
var accels = [
['app.quit', ['q']],
];