%PDF- %PDF-
| Direktori : /lib/python3/dist-packages/orca/__pycache__/ |
| Current File : //lib/python3/dist-packages/orca/__pycache__/notification_presenter.cpython-312.pyc |
�
g
f�2 � � � d Z dZdZdZdZdZddlZddlZ ej dd � dd
l m
Z
ddl mZ dd
lm
Z
ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ G d� d� Z G d� d� Z e� Zd� Zy)z Module for notification messagesz$Id$z
$Revision$z$Date$zLCopyright (c) 2023 Igalia, S.L.Copyright (c) 2010 Informal Informatica LTDA.�LGPL� N�Gtkz3.0)�GObject)r � )�cmdnames)�debug)� guilabels)�input_event)�keybindings)�messages)�
orca_statec �j � e Zd ZdZd� Zdd�Zdd�Zd� Zd� Zd� Z d� Z
d � Zdd�Zdd�Z
dd
�Zdd�Zd� Zy
)�NotificationPresenterz,Provides access to the notification history.c � � d | _ | j d� | _ t j � | _ d| _ g | _ d| _ y )NT�7 ���) �_gui�get_handlers� _handlersr �KeyBindings� _bindings� _max_size�_notifications�_current_index��selfs �=/usr/lib/python3/dist-packages/orca/notification_presenter.py�__init__zNotificationPresenter.__init__3 sD � ��� ��*�*�4�0���$�0�0�2������ !��� ��� c � � |rCd}t j t j |d� | j � | j S | j j � r| j � | j S )z/Returns the notification-presenter keybindings.z,NOTIFICATION PRESENTER: Refreshing bindings.T)r �printMessage�
LEVEL_INFO�_setup_bindingsr �isEmpty)r �refresh�
is_desktop�msgs r �get_bindingsz"NotificationPresenter.get_bindings@ sd � � �@�C����u�/�/��d�;�� � �"� �~�~�� �^�^�
#�
#�
%�� � �"��~�~�r c � � |r7d}t j t j |d� | j � | j S )z,Returns the notification-presenter handlers.z,NOTIFICATION PRESENTER: Refreshing handlers.T)r r! r"