
    g
f                     j    d Z dZdZdZdZdZddlmZ ddlm	Z	 dd	l
mZ  G d
 dej                        Zy)zCustom chat module for Smuxi.z$Id$z
$Revision$z$Date$zCopyright (c) 2018 Igalia, S.L.LGPL    N)AXObject)AXUtilitiesc                   (     e Zd Z fdZ fdZ xZS )Chatc                 &    t         |   ||       y )N)super__init__)selfscriptbuddyListAncestries	__class__s      M/usr/lib/python3/dist-packages/orca/scripts/apps/smuxi-frontend-gnome/chat.pyr
   zChat.__init__&   s    !45    c                     t        j                  |t        j                        }|t        |   |      S t        j                  |      S )z6Returns True if we plan to treat this chat as focused.)r   find_ancestorr   is_page_tabr	   isFocusedChat
is_showing)r   objpageTabr   s      r   r   zChat.isFocusedChat)   sC     ((k.E.EF?7(--%%g..r   )__name__
__module____qualname__r
   r   __classcell__)r   s   @r   r   r   $   s    6/ /r   r   )__doc____id____version____date____copyright____license__	orca.chatchatorca.ax_objectr   orca.ax_utilitiesr   r    r   r   <module>r'      s>   , $1  # )/499 /r   