Ë
    g
f†  ã                   óP   — d Z dZdZdZdZdZddlZddlmZ d	d
l	m
Z
  G d„ d«      Zy)z)Displays a GUI for the user to quit Orca.z$Id$z
$Revision$z$Date$z-Copyright (c) 2005-2009 Sun Microsystems Inc.ÚLGPLé    N)ÚGtké   )Ú_c                   ó.   — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zy)ÚGtkBuilderWrappera”  
    Superclass for GtkBuilder based applications. Just derive from this
    and your subclass should create methods whose names correspond to
    the signal handlers defined in the GtkBuilder file. Any other attributes
    in your class will be safely ignored.

    This class will give you the ability to do:
        subclass_instance.GtkWindow.method(...)
        subclass_instance.widget_name...
    c                 ó  — t        j                  «       | _        | j                  j                  t	        j
                  «       «       | j                  j                  |«       | j                  j                  |«      | _        | j                  j                  «       D ]  }| j                  |«       Œ | j                  «        i }t        | j                  «      D ]  }t        | |«      ||<   Œ | j                  j                  |«       y )N)r   ÚBuilderÚbuilderÚset_translation_domainÚgettextÚ
textdomainÚadd_from_fileÚ
get_objectÚ	gtkWindowÚget_objectsÚlocalize_widgetÚset_orca_iconÚdirÚ	__class__ÚgetattrÚconnect_signals)ÚselfÚfileNameÚ
windowNameÚobjÚinstance_attributesÚ	attributes         ú6/usr/lib/python3/dist-packages/orca/orca_gtkbuilder.pyÚ__init__zGtkBuilderWrapper.__init__-   sÑ   € ä—{‘{“}ˆŒØ�‰×+Ñ+¬G×,>Ñ,>Ó,@ÔAØ�‰×"Ñ" 8Ô,ØŸ™×0Ñ0°Ó<ˆŒð
 —<‘<×+Ñ+Ó-ò 	&ˆCØ× Ñ  Õ%ð	&ð 	×ÑÔà ÐÜ˜TŸ^™^Ó,ò 	FˆIÜ-4°T¸9Ó-EÐ 	Ò*ð	Fà�‰×$Ñ$Ð%8Õ9ó    c                 óf  — t         j                  j                  «       }	 |j                  ddd«      }|j                  ddd«      }|j                  ddd«      }|j                  ddd«      }|j                  ddd«      }t         j                  j                  |||||f«       y# t        $ r Y yw xY w)	zvGet the icon in all sizes from the current theme and set them as
        default for all application windows.
        Úorcaé   r   é   é   é    é0   N)r   Ú	IconThemeÚget_defaultÚ	load_iconÚWindowÚset_default_icon_listÚ	Exception)r   Ú
icon_themeÚicon16Úicon22Úicon24Úicon32Úicon48s          r   r   zGtkBuilderWrapper.set_orca_iconB   sº   € ô
 —]‘]×.Ñ.Ó0ˆ
ð	6Ø×)Ñ)¨&°"°aÓ8ˆFØ×)Ñ)¨&°"°aÓ8ˆFØ×)Ñ)¨&°"°aÓ8ˆFØ×)Ñ)¨&°"°aÓ8ˆFØ×)Ñ)¨&°"°aÓ8ˆFô �J‰J×,Ñ,¨fØ-3Ø-3Ø-3Ø-3ð	.5õ 6øô ò 	Ùð	ús    AB$ Â$	B0Â/B0c                 ób   — | j                   j                  |«      }|€t        d|z   dz   «      ‚|S )a(  Return the requested widget. This routine has been introduced
        (and calls to it made by the Orca GtkBuilder sub-classes), to prevent
        "No class attribute" pychecker errors caused when using __getattr__.

        Arguments:
        - attribute: name of the widget to return.
        úWidget [ú] not found)r   r   ÚAttributeError©r   r   Úwidgets      r   Ú
get_widgetzGtkBuilderWrapper.get_widgetW   s7   € ð —‘×(Ñ(¨Ó3ˆØˆ>Ü  ¨iÑ!7¸-Ñ!GÓHÐHàˆr!   c                 ó€   — | j                   j                  |«      }|€t        d|z   dz   «      ‚|| j                  |<   |S )Nr6   r7   )r   r   r8   Ú__dict__r9   s      r   Ú__getattr__zGtkBuilderWrapper.__getattr__f   sC   € Ø—‘×(Ñ(¨Ó3ˆØˆ>Ü  ¨iÑ!7¸-Ñ!GÓHÐHØ#)ˆ�‰�iÑ àˆr!   c                 ó"  — 	 |j                  «       }|j                  «       }t        |t        j
                  «      ry	 |j                  «       }|r%t        |«      r|j                  t        |«      «       |r|j                  d«       y# t        $ r d}d}Y Œvw xY w# t        $ ri 	 |j                  «       }n# t        $ r Y Y yw xY w|rBt        |«      r7|r|j                  t        |«      «       n|j                  t        |«      «       Y Œ˜w xY w)zªForce the localization of the label/title of GtkBuilder objects

        Arguments:
        - obj: the GtkBuilder object whose label or title should be localized
        FNT)Úget_use_markupÚget_use_underliner.   Ú
isinstancer   ÚFrameÚ	get_titleÚlenÚ	set_titler   Ú	get_labelÚ
set_markupÚ	set_labelÚset_use_underline)r   r   Ú	useMarkupÚuseUnderlineÚtitleÚtexts         r   r   z!GtkBuilderWrapper.localize_widgetn   sô   € ð	!Ø×*Ñ*Ó,ˆIØ×0Ñ0Ó2ˆLô
 �cœ3Ÿ9™9Ô%ð ð	+Ø—M‘M“OˆEÙœ˜UœØ—‘œa ›hÔ'ñ Ø×!Ñ! $Ô'àøôA ò 	!ØˆIØ ŠLð	!ûô" ò 
	+ðØ—}‘}“‘øÜò Úðúñ œ˜Dœ	ÙØ—N‘N¤1 T£7Õ+à—M‘M¤! D£'Ô*ùð
	+úsG   ‚ B	 ¾7B Â	BÂBÂ	DÂ&B7Â6DÂ7	CÃ DÃCÃADÄDN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r    r   r;   r>   r   © r!   r   r   r   !   s    „ ñ	ò:ò*6ò*òó.r!   r   )rR   Ú__id__Ú__version__Ú__date__Ú__copyright__Ú__license__r   Úgi.repositoryr   Ú	orca_i18nr   r   rS   r!   r   ú<module>r[      s8   ðñ( 0à€Ø€Ø€Ø?€Ø€ã Ý å ÷{ò {r!   