Add open URI dialog

This commit is contained in:
Rafostar
2020-11-03 20:56:21 +01:00
parent dbb25ce474
commit 23b39e5f3b
5 changed files with 84 additions and 1 deletions

View File

@@ -2,9 +2,11 @@ const { GObject, Gst, Gtk } = imports.gi;
const Misc = imports.clapper_src.misc;
const Prefs = imports.clapper_src.prefs;
const { FileChooser } = imports.clapper_src.filechooser;
const { UriDialog } = imports.clapper_src.uridialog;
var actions = [
openLocal,
openUri,
prefs,
about,
];
@@ -19,6 +21,12 @@ function openLocal(window, appName)
fileChooser.present();
}
function openUri(window, appName)
{
let uriDialog = new UriDialog(window);
uriDialog.present();
}
function prefs(window, appName)
{
let prefsWidget = Prefs.buildPrefsWidget();