mirror of
https://github.com/Rafostar/clapper.git
synced 2025-09-01 08:51:59 +02:00
Add open URI dialog
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user