%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/softwareproperties/gtk/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/softwareproperties/gtk/__pycache__/DialogAddSourcesList.cpython-312.pyc

�

���cf���ddlZejdd�ejdd�ddlmZmZmZddlZddlmZddlZ	ddl	m
Z
ddl
mZdd	lmZmZGd
�d�ZGd�d
e�Zy#e$r	ddlm
Z
Y�1wxYw)�N�Gdkz3.0�Gtk)�GObjectrr)�gettext)�url2pathname)�setup_ui)�SourcesList�SourceEntryMatcherc�$�eZdZd�Zd�Zd�Zd�Zy)�DialogAddSourcesListc���t|�||_||_||_||_|j|�|_t|tjj|dd�d��|j|_|j|_|j|_|j"|_|j&|_|jj+�|jdk7r|jj-|�n$|jj/t1d��|jj3�j5t6j8j:�t=j>t@jB�|_"|j jG|jD�t=jH�}|jKdd�|jKdd�t=jLd	|d
��}|jOd�|j jQ|�	tS|j�|_*tY|jTjZ�d
kD�rKd
}	|jTjZD]@}
|
j\s|
j^r�|jTj`jc|
��B|jTjZje|j�
�|jTjZD]M}
|
j\s|
j^r�|	dz}	|j|
�}|jDjg|g��O|	d
k(r|jW�ytijjdd|	�}t1d�}
|jjmd|�d|
���y|jW�y#|jW�YyxYw)N�
gtkbuilderzdialog-add-sources-list.uizsoftware-properties)�domainzAdd Software Channels�xpad��ypadzSoftware Channelr)�markupi�)�key�z7Install software additionally or only from this source?z9Install software additionally or only from these sources?z}You can either add the following sources or replace your current sources by them. Only install software from trusted sources.z<big><b>z</b></big>

)7�print�parent�source_renderer�sourceslist�get_comparable�
format_uri�filer�os�path�join�dialog_add_sources_list�dialog�
label_sources�label�treeview_sources�treeview�scrolled_window�scrolled�image_sources_list�image�realize�set_transient_for�	set_title�_�
get_window�
set_functionsr�
WMFunction�MOVEr�	ListStorer�TYPE_STRING�store�	set_model�CellRendererText�set_property�TreeViewColumn�
set_max_width�
append_column�SingleSourcesList�new_sources�error�len�list�invalid�disabled�matcher�match�sort�appendr�ngettext�
set_markup)�selfrrrr�datadirr�cell�column�counter�source�line�header�bodys              �M/usr/lib/python3/dist-packages/softwareproperties/gtk/DialogAddSourcesList.py�__init__zDialogAddSourcesList.__init__s	��
�d�����.���&���,����O�O�D�)��	���r�w�w�|�|�G�\�;W�X�av�w��2�2����'�'��
��-�-��
��,�,��
��,�,��
��������;�;�$���K�K�)�)�&�1��K�K�!�!�!�$;�"<�=������ �.�.�s�~�~�/B�/B�C��]�]�7�#6�#6�7��
��
�
����
�
�+��#�#�%�����&�!�$����&�!�$��#�#�$6��Q�G�����S�!��
�
�#�#�F�+�	�0����;�D���t���$�$�%��)��G��*�*�/�/�
7���>�>�V�_�_��� � �(�(�.�.�v�6�
7�

���!�!�&�&�4�+>�+>�&�?��*�*�/�/�
*���>�>�V�_�_��!�1�*���+�+�F�3���
�
�!�!�4�&�)�
*��!�|��
�
����%�%�'?�'A�&-�	/�F�
�(�)�D�
�J�J�!�!�&�$�"O�P��J�J�L���I	��J�J�L��s�4O
�
O!c��|jj�|jjd�|jj	d�|j
j�|jj�|jjtjtjj�td�}td|jz�}|jj!|�d|�d��y)NTz	gtk-closez-There are no sources to install software fromz:The file '%s' does not contain any valid software sources.z	

<small>z</small>)�
button_add�hide�
button_cancel�
set_use_stock�	set_label�button_replacer'r)�set_from_stockr�STOCK_DIALOG_ERROR�IconSize�DIALOGr-rr#rG)rHrOrPs   rQr=zDialogAddSourcesList.errorbs������������(�(��.����$�$�[�1���� � �"��
�
�����
�
�!�!�#�"8�"8�#�,�,�:M�:M�N��B�C���%�'+�y�y�1�2���
�
���6�4�H�I�c��|jj�}|jj�||jfS)N)r!�run�destroyr<)rH�ress  rQr`zDialogAddSourcesList.runns3���k�k�o�o����������D�$�$�$�$r^c���t|�}|jd�}|jd�r|dd}|S|jd�r|dd}|S|jd�r|dd}|S)Nz
zfile:\\\�zfile://�zfile:�)r�strip�
startswith)rH�urirs   rQrzDialogAddSourcesList.format_urissv���C� ���z�z�*�%���?�?�=�)����8�D�
��	�_�_�Y�
'����8�D����_�_�W�
%����8�D��r^N)�__name__�
__module__�__qualname__rRr=r`r�r^rQrrs��I�V
J�%�
	r^rc��eZdZd�Zy)r;c�T�td�|_g|_|j|�y)Nz#/usr/share/update-manager/channels/)r
rBr?�load)rHrs  rQrRzSingleSourcesList.__init__s!��)�*O�P�����	��	�	�$�r^N)rjrkrlrRrmr^rQr;r;~s��r^r;)�gi�require_version�
gi.repositoryrrrrrr-�urllib.requestr�ImportError�urllib�softwareproperties.gtk.utilsr�aptsources.sourceslistr	r
rr;rmr^rQ�<module>rys~��
�����5�%� �����5�%� �+�+�	� ��$�+��C�f�f�P����e�$�#�$�s�A.�.A<�;A<

Zerion Mini Shell 1.0