| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/UpdateManager/__pycache__/ |
Upload File : |
o
{��f�0 � @ s� d dl mZ d dlZe�dd� d dlmZ d dlmZ d dlmZ d dlmZ d d l m Z
d d
lmZ G dd� dej
�Zed
krie�� Ze� Ze�� Zejdejjd� e�d� e�e� e�� e�� dS dS )� )�absolute_importN�Gtkz3.0)r )�Gdk)�GObject)�Pango)�gettext)�open_urlc @ sV e Zd Zddd�Zdd� Zdd� Zdd � Zd
d� Zdd
� Zdd� Z dd� Z
dd� ZdS )�ChangelogViewerNc C s� t j �| � d| _d| _| �dd� | �d� | �d� | �d� | �d� | � d� t
�� | _| �
| j� | �d| j� | �d| j� | �d| j� | j�d| j� |d ur_| j�|� d S d S )
z>Init the ChangelogViewer as an Inheritance of the Gtk.TextViewFT�editable� zbutton-press-eventzmotion-notify-eventzvisibility-notify-eventzinsert-textN)r �__init__�hovering�first�set_property�set_cursor_visible�set_right_margin�set_left_margin�set_pixels_above_lines�set_vexpandr �
TextBuffer�buffer�
set_buffer�connect�button_press_event�motion_notify_event�visibility_notify_event�
connect_after�on_insert_text�set_text)�self� changelog� r! �?/usr/lib/python3/dist-packages/UpdateManager/ChangelogViewer.pyr , s$
�zChangelogViewer.__init__c C s� t �� | _t �� }|�|� |�d| jd|� t �� }t �� }|�td�� |�d| jd|� t �� }|�td�� |�d| jd|� | j�|� | j�|� | j�|� | j�|� | j� � dS )zOCreate the context menu to be displayed when links are right
clicked�activate�openzOpen Link in BrowserzCopy Link to Clipboard�copyN)
r �Menu�menu�MenuItem� set_labelr �handle_context_menu�_�add�show_all)r �url�item_grey_link�item_seperator�item_open_link�item_copy_linkr! r! r"