mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +02:00
Open files via native file chooser
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
const { GObject, Gst, Gtk } = imports.gi;
|
||||
const Misc = imports.clapper_src.misc;
|
||||
const Prefs = imports.clapper_src.prefs;
|
||||
const { FileChooser } = imports.clapper_src.filechooser;
|
||||
|
||||
var actions = [
|
||||
openLocal,
|
||||
prefs,
|
||||
about,
|
||||
];
|
||||
@@ -11,6 +13,12 @@ var accels = [
|
||||
['app.quit', ['q']],
|
||||
];
|
||||
|
||||
function openLocal(window, appName)
|
||||
{
|
||||
let fileChooser = new FileChooser(window);
|
||||
fileChooser.present();
|
||||
}
|
||||
|
||||
function prefs(window, appName)
|
||||
{
|
||||
let prefsWidget = Prefs.buildPrefsWidget();
|
||||
|
Reference in New Issue
Block a user