�
��c� � �� � d dl mZ d dlZdej v sdej v s ed� � � d dlZ ej dd� � d dlmZ ej d d
� � d dlmZ ej dd
� � d dlm Z ej dd� � d dlm
Z
ej dd
� � d dlmZ ej dd� � d dlmZ ej
d� � n# e$ r ed� � �w xY wd dlZd dlZd dlZd dlmZ d dlZd dlZd dlZd dl mZmZmZ d dlmZ d dlmZ dZdZda d� Z!d� Z"d � Z#d!� Z$ ej% d"� � Z&d#� Z'd$� Z(dqd&�Z)d'� Z* G d(� d)ej+ � � Z, G d*� d+e,� � Z- G d,� d-e,� � Z. G d.� d/ej+ � � Z/ G d0� d1e0� � Z1 G d2� d3e0� � Z2 G d4� d5ej3 ej4 � � Z5 G d6� d7ej+ � � Z6 G d8� d9ej4 � � Z7 G d:� d;e8� � Z9 G d<� d=e0� � Z: G d>� d?e:� � Z; G d@� dAe;� � Z< G dB� dCe;� � Z= G dD� dEe=� � Z> G dF� dGe;� � Z? G dH� dIe;� � Z@ G dJ� dKe@� � ZA G dL� dMe;� � ZB G dN� dOe@� � ZC G dP� dQe;� � ZD G dR� dSe;� � ZE G dT� dUe;� � ZF G dV� dWeF� � ZG G dX� dYe;� � ZH G dZ� d[e;� � ZI G d\� d]e;� � ZJ G d^� d_e;� � ZK G d`� daejL � � ZM G db� dce:ejN � � ZO G dd� dee:ejN � � ZP G df� dge:ejQ � � ZRdh� ZSdi� ZTdj� ZUe=e>eBeCeDeFeEeGeHeIeAeJe?dk�
ZVeOeRePdl�ZWdm� ZXdn� ZYdo� ZZdp� Z[dS )r� )�UINotImportableN�DISPLAY�WAYLAND_DISPLAYz7No graphical display detected, falling back to text UI.�GLibz2.0)r �Pangoz1.0)r �Gdkz3.0)r � GdkPixbuf)r �Gtk)r
� GtkSource�4)r �cairoz?Please install the reportbug-gtk package to use this interface.)�Queue)� NoPackage�NoBugs�
QuertBTSError)�debbugs)�launch_browserTz"/usr/share/pixmaps/debian-logo.pngc �T � | t k rdS | t k rdS t | � � S )Nz<MainContext of UI thread>z!<MainContext of reportbug thread>)�
ui_context�reportbug_context�repr)�contexts �5/usr/lib/python3/dist-packages/reportbug/ui/gtk_ui.py�_describe_contextr O s1 � ��*���+�+� �%� %� %�2�2��G�}�}�� c �� � t j � � � }|| k r/t dt | � � �dt |� � ��� � �|� � � st d� � �d S )NzFunction should be called in z but was called in z*Function should be called with %s acquired)r �MainContext�ref_thread_default�AssertionErrorr �is_owner)�expected�reallys r �_assert_contextr# X s� � �
�
�
0�
0�
2�
2�F� �����n�/��9�9�9�9�;L�V�;T�;T�;T�V� W� W� W� �?�?��� K��I�J�J�J�K� Kr c �f � t j t j � � t j � � d S �N)�os�kill�getpid�signal�SIGINT� r r �_exitr, d s" |