403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.60
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/cinnamon-screensaver/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/cinnamon-screensaver/__pycache__/monitorView.cpython-310.pyc
o

�Zb��@s~ddlmZmZmZmZddlZddlZddlZddlZddl	m
Z
ddlmZm
Z
mZGdd�dej�ZGdd�de
�ZdS)	�)�Gtk�Gio�GLib�GObjectN)�
BaseWindow)�settings�utils�trackerscs:eZdZdZ�fdd�Zdd�Zddd�Zd	d
�Z�ZS)�WallpaperStackaQ
    WallpaperStack implements a crossfade when changing backgrounds.

    An initial image is made and added to the GtkStack.  When a new
    image is requested, it is created and added to the stack, then
    a crossfade transition is made to the new child.  The former
    visible stack child is then destroyed.  And this repeats.
    cs<tt|���|�tjj�|�d�d|_d|_	d|_
dS)Ni�F)�superr
�__init__�set_transition_typer�StackTransitionType�NONE�set_transition_duration�initialized�current�queued)�self��	__class__��./usr/share/cinnamon-screensaver/monitorView.pyrs

zWallpaperStack.__init__cCsv||_|j�d�t���|d|j�|�|j�|js,|��|�	t
jj�d|_dS|�
|j�t�d|j�dS)zS
        Queues a new image in the stack, and begins the transition to it.
        T�drawNi�)r�set_visibler	�con_tracker_get�
connect_after�shade_wallpaper�addr�visible_image_changedr
rr�	CROSSFADE�set_visible_childr�timeout_add�r�imagerrr�transition_to_images
�z"WallpaperStack.transition_to_imageNcCs4|jdkr|j}|�|�|��|j|_d|_dS)NF)r�remove�destroyr)r�data�tmprrrr5s

z$WallpaperStack.visible_image_changedcCs�tjs|�dddd�|��dS|��}t�ddd|j�}|�ddddd�|�ddddd�|�ddddd�|�d	dddd�|�	|�|��dS)
z�
        This draw callback adds a shade mask over the current
        image.  It is uniform when not Awake, and acquires a
        significant gradient vertically framing the unlock dialog
        when Awake.
        ggffffff�?Frg�?gffffff�?g�������?g�������?�)
�status�Awake�set_source_rgba�paint�get_allocation�cairo�LinearGradient�height�add_color_stop_rgba�
set_source)r�widget�cr�r�patternrrrrAs
zWallpaperStack.shade_wallpaper�N)	�__name__�
__module__�__qualname__�__doc__rr%rr�
__classcell__rrrrr
s

r
cs(eZdZdZ�fdd�Zdd�Z�ZS)�MonitorViewz�
    A monitor-sized child of the stage that is responsible for displaying
    the currently-selected wallpaper or appropriate plug-in.
    csftt|���||_|��t�|_|j��|j�t	j
j�|j�t	j
j�|�
|j�|��dSr9)rr?r�
monitor_index�update_geometryr
�wallpaper_stack�show�
set_halignr�Align�FILL�
set_valignr�show_all)r�indexrrrr^s
zMonitorView.__init__cCs|j�|�dSr9)rBr%r#rrr�set_next_wallpaper_imagemsz$MonitorView.set_next_wallpaper_image)r:r;r<r=rrJr>rrrrr?Ysr?)�
gi.repositoryrrrr�rer0�signalr+�
baseWindowr�utilrrr	�Stackr
r?rrrr�<module>sM

Youez - 2016 - github.com/yon3zu
LinuXploit