__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later // SPDX-FileCopyrightText: 2017 Andy Holmes <[email protected]> // See the note about Application.run() at the bottom of the script import System from 'system'; import Gio from 'gi://Gio'; import GLib from 'gi://GLib'; import GObject from 'gi://GObject'; // Include the version in case both GTK3 and GTK4 installed // otherwise an exception will be thrown import Gtk from 'gi://Gtk?version=4.0'; // An example GtkApplication with a few bells and whistles, see also: // https://wiki.gnome.org/HowDoI/GtkApplication let ExampleApplication = GObject.registerClass({ Properties: { 'exampleprop': GObject.ParamSpec.string( 'exampleprop', // property name 'ExampleProperty', // nickname 'An example read write property', // description GObject.ParamFlags.READWRITE, // read/write/construct... 'a default value' ), }, Signals: {'examplesig': {param_types: [GObject.TYPE_INT]}}, }, class ExampleApplication extends Gtk.Application { constructor() { super({ application_id: 'org.gnome.gjs.ExampleApplication', flags: Gio.ApplicationFlags.FLAGS_NONE, }); } // Example signal emission emitExamplesig(number) { this.emit('examplesig', number); } vfunc_startup() { super.vfunc_startup(); // An example GAction, see: https://wiki.gnome.org/HowDoI/GAction let exampleAction = new Gio.SimpleAction({ name: 'exampleAction', parameter_type: new GLib.VariantType('s'), }); exampleAction.connect('activate', (action, param) => { param = param.deepUnpack().toString(); if (param === 'exampleParameter') log('Yes!'); }); this.add_action(exampleAction); } vfunc_activate() { super.vfunc_activate(); this.hold(); // Example ApplicationWindow let window = new Gtk.ApplicationWindow({ application: this, title: 'Example Application Window', default_width: 300, default_height: 200, }); let label = new Gtk.Label({label: this.exampleprop}); window.set_child(label); window.connect('close-request', () => { this.quit(); }); window.present(); // Example GNotification, see: https://developer.gnome.org/GNotification/ let notif = new Gio.Notification(); notif.set_title('Example Notification'); notif.set_body('Example Body'); notif.set_icon( new Gio.ThemedIcon({name: 'dialog-information-symbolic'}) ); // A default action for when the body of the notification is clicked notif.set_default_action("app.exampleAction('exampleParameter')"); // A button for the notification notif.add_button( 'Button Text', "app.exampleAction('exampleParameter')" ); // This won't actually be shown, since an application needs a .desktop // file with a base name matching the application id this.send_notification('example-notification', notif); // Withdraw this.withdraw_notification('example-notification'); } }); // The proper way to run a Gtk.Application or Gio.Application is take ARGV and // prepend the program name to it, and pass that to run() let app = new ExampleApplication(); app.run([System.programInvocationName].concat(ARGV)); // Or a one-liner... // (new ExampleApplication()).run([System.programInvocationName].concat(ARGV));
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| README | File | 80 B | 0644 |
|
| calc.js | File | 3.55 KB | 0644 |
|
| dbus-client.js | File | 4.72 KB | 0644 |
|
| dbus-service.js | File | 3.42 KB | 0644 |
|
| gettext.js | File | 751 B | 0644 |
|
| gio-cat.js | File | 731 B | 0644 |
|
| glistmodel.js | File | 3.69 KB | 0644 |
|
| gtk-application.js | File | 3.64 KB | 0644 |
|
| gtk3-template.js | File | 1.57 KB | 0644 |
|
| gtk3-template.ui | File | 1.61 KB | 0644 |
|
| gtk3.js | File | 2.51 KB | 0644 |
|
| gtk4-frame-clock.js | File | 2.63 KB | 0644 |
|
| gtk4-template.js | File | 1.64 KB | 0644 |
|
| gtk4-template.ui | File | 1.61 KB | 0644 |
|
| gtk4.js | File | 1.87 KB | 0644 |
|
| http-client.js | File | 1.71 KB | 0644 |
|
| http-server.js | File | 1.39 KB | 0644 |
|
| test.jpg | File | 35.55 KB | 0644 |
|
| test.jpg.license | File | 158 B | 0644 |
|
| timers.js | File | 524 B | 0644 |
|
| webkit.js | File | 438 B | 0644 |
|
| websocket-client.js | File | 1.44 KB | 0644 |
|