CasperSecurity

Current Path : /lib/python3/dist-packages/UpdateManager/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/UpdateManager/__pycache__/UnitySupport.cpython-310.pyc

o

{��fF
�
@s�ddlZddlmZdZzddlZe�dd�e�dd�ddlmZmZd	ZWne	e
fyCZz
e�d
e�WYdZ[ndZ[wwGdd�de
�ZGd
d�de�ZerZeZdSeZdS)�N)�gettextF�Dbusmenuz0.4�Unityz7.0)rrTzcan not import unity GI %sc@s2eZdZdZddd�Zdd�Zdd�Zd	d
�ZdS)�
IUnitySupportz interface for unity support NcC�dS�N�)�self�parentrr�</usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py�__init__(�zIUnitySupport.__init__cCrrr�r	�urgentrrr�set_urgency+r
zIUnitySupport.set_urgencycCrrr�r	�visiblerrr�set_install_menuitem_visible.r
z*IUnitySupport.set_install_menuitem_visiblecCrrr�r	�progressrrr�set_progress1r
zIUnitySupport.set_progressr)�__name__�
__module__�__qualname__�__doc__rrrrrrrrr&s
rc@s:eZdZdZd
dd�Zdd�Zdd�Zd	d
�Zdd�ZdS)�UnitySupportImplz9 implementation of unity support (if unity is available) NcCs(tj�d�}||_|r|�|�dSdS)Nzupdate-manager.desktop)r�
LauncherEntry�get_for_desktop_id�_unity�_add_quicklist)r	r
�um_launcher_entryrrrr8s��zUnitySupportImpl.__init__cCsjtj��}tj��|_|j�tjtd��|j�tjd�|j�	d|j
d�|�|j�|j�
d|�dS)NzInstall All Available UpdatesTzitem-activated�	quicklist)r�Menuitem�new�install_dbusmenuitem�property_set�MENUITEM_PROP_LABEL�_�property_set_bool�MENUITEM_PROP_VISIBLE�connect�install_all_updates�child_appendr�set_property)r	r
r!rrrr@s
���zUnitySupportImpl._add_quicklistcCsF|j�d|d�|dks|dkr|j�dd�dS|j�dd�dS)	z set the progress [0,100] rgY@r�d�progress_visibleFTN�rr-rrrrrOszUnitySupportImpl.set_progresscCs|j�d|�dS)Nrr0rrrrrXszUnitySupportImpl.set_urgencycCs|j�tj|�dSr)r$r(rr)rrrrr[s�z-UnitySupportImpl.set_install_menuitem_visibler)	rrrrrrrrrrrrrr5s
	r)�loggingrr'�HAVE_UNITY_SUPPORT�gi�require_version�
gi.repositoryrr�
ValueError�ImportError�e�warning�objectrr�UnitySupportrrrr�<module>s$��,
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY