+
   ^yc                   s
  a  R t20 t ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIt^ RI	t	^ RI
t
^ RIt
^ RIHt ]! RR	4       ^ R
IHt ]P                   ! R4       ]P"                  ! R4       ]P$                  ^ ,          R,           .]P$                  ,           ]n        ^ RIt^ RIHtHt ]'       d   ^ RIHt ^ RIHtHt ]
P4                  ! R4      tRt] ^ k  ! R R]P:                  4      tRR R llt] R8X  d   ]
PB                  ! ]PD                  R7      t#]
PH                  ! R4      t%]#PM                  ]%4       ]PO                  ]
PP                  4       ]PS                  ]#4       ]PU                  R4       ]PV                  ! R4       ]! 4       t,]PZ                  ! 4       t]	P                  ! ]	P\                  ]4        ]P_                  4        R# R#   ]0 d&    ]PU                  R4       ]Pc                  4         R# i ; i)i    )DictAny)Optional)TYPE_CHECKING)	FrameTypeN)require_versionGLibz2.0)r   InputPurposeTestz
/../engine)Gtk	GTK_MAJOR)r	   )	add_childshow_allzibus-typing-boosterc                   s   a  ] tR t^Bt o V 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R	 lR
 ltV 3R lR lt	Rt
V tR# )r   c                s   < V ^8  d   QhRR/# )   returnN) format__classdict__   ":/usr/share/ibus-typing-booster/setup/test_input_purpose.py__annotate__InputPurposeTest.__annotate__F   s     \ \$ \    c                s   \         P                  P                  V R R7       V P                  R4       V P	                  R4       V P                  R 4       \        ^8  d   V P                  RV P                  4       MV P                  RV P                  4       \         P                  ! 4       pVP                  \         P                  P                  4       VP                  ^ 4       \        W4       ^p\        P                   P"                  V n        \         P&                  ! 4       pVP)                  V4       VP+                  V4       VP-                  V4       VP/                  V4       \         P0                  ! \2        \4        4      V n        \9        \        P                   4       F*  pV P6                  P;                  VP<                  V.4       K,  	  VP?                  V P6                  4       \         P@                  ! 4       pVPC                  VR4       VPE                  VR^ 4       \G        V P6                  4       F0  w  rgV P$                  V^,          8X  g   K  VPI                  V4       K2  	  VP                  RV PJ                  4       \        W4       \        PL                  PN                  V n(        / p\        PL                   EF  p	V	P<                  e   V	P<                  R
8X  d   K%  \         PR                  ! V	P<                  R7      WP<                  &   WP<                  ,          P)                  V4       WP<                  ,          P+                  V4       WP<                  ,          P-                  V4       WP<                  ,          P/                  V4       WP<                  ,          PI                  R4       WP<                  ,          PU                  R4       WP<                  ,          PW                  R4       WP<                  ,          P                  RV PX                  V	4       \        WV	P<                  ,          4       EK  	  \         PZ                  ! 4       V n.        V P\                  P)                  V4       V P\                  P+                  V4       V P\                  P-                  V4       V P\                  P/                  V4       V P\                  P_                  R4       V P\                  Pa                  R4       V P\                  PU                  R4       V P\                  PW                  R4       V P\                  Pc                  V P$                  4       V P\                  Pe                  V PP                  4       V P\                  P                  RV Pf                  4       \        WP\                  4       \         Ph                  ! 4       V n5        V Pj                  Pm                  \         Pn                  Pp                  4       ^
pV Pj                  P)                  V4       V Pj                  P+                  V4       V Pj                  P-                  V4       V Pj                  P/                  V4       \         Pr                  ! 4       V n:        V Pj                  Pw                  V Pt                  4       V Pj                  P_                  R4       V Pj                  Pa                  R4       V Pj                  PU                  R4       V Pj                  PW                  R4       V Pj                  Pc                  V P$                  4       V Pj                  Pe                  V PP                  4       V Pt                  P                  RV Px                  4       \        WPj                  4       \{        V 4       R	# )zInput Purpose Test)Ztitler   FZclose_requestzdelete-eventTZtextZchangedNNONE)ZlabelZtoggledznotify::text)>r	   Window__init__Zset_nameZ	set_modalZ	set_titler
   Zconnecton_closeZBoxZset_orientationZOrientationZVERTICALZset_spacingr   itb_utilInputPurposeZ	FREE_FORM_input_purposeComboBoxZset_margin_startZset_margin_endZset_margin_topZset_margin_bottomZ	ListStorestrint_input_purpose_storelistZappendnameZ	set_modelZCellRendererTextZ
pack_startZadd_attributeZ	enumerateZ
set_active!on_input_purpose_combobox_changed
InputHintsr   _input_hintsCheckButtonZset_hexpandZset_vexpandon_checkbuttonEntry_test_entryZset_visibleZset_can_focusset_input_purposeset_input_hintson_test_entryZTextView_test_text_viewZset_wrap_modeZWrapModeZ	WORD_CHAR
TextBuffer_test_text_view_bufferZ
set_buffer on_test_text_view_buffer_changedr   )
selfZmain_containerZmarginZinput_purpose_comboboxZpurposeZrenderer_textZiZitemZinput_hints_checkbuttonshints
   &         r   r   ZInputPurposeTest.__init__F   s}   

D(<=()u+,>LL$--8LL7&&s'?'?@""1%$'&33==!$//7--f5--f5008$'MM#s$;!H112G%%,,gllG-DE 3(()B)BC,,.))->,,]FAF !:!:;GA""d1g-&11!4 < 	&&t==	? 	.9$//44?A ''Dyy DII$725//ii3!$YY/$YY/@@H$YY/>>vF$YY/>>vF$YY/AA&I$YY/::5A$YY/;;EB$YY/;;EB$YY/774..6ntyy&IJ (  99;))&1''/''/**62$$T*&&t,$$U+$$U+**4+>+>?(():):;  1C1CD."2"23"||~**3<<+A+AB--f5++F3++F3..v6&)nn&6#''(C(CD((.**40((/((...t/B/BC,,T->->?##++t<<	> 	."6"67r   c                s$   < V ^8  d   QhRS[ RR/# )r   _argsr   Nr   r   r   r   r   r      s     B Bs Bt Br   c                s~    \         P                  R 4       \        e   \        P                  4        R# \	        R4      h)z%Window deleted by the window manager.NGLIB_MAIN_LOOP not initialized!)LOGGERinfoGLIB_MAIN_LOOPquitRuntimeError)r2   r4   s   &*r   r   ZInputPurposeTest.on_close   s-    ;<%!@AAr   c                >   < V ^8  d   QhRS[ P                  RS[RR/# )r   widget_property_specr   N)r	   r)   r   r   r   r   r   r      s.     H H))H58H=AHr   c                sN    \         P                  R VP                  4       4       R# )u   Test entry contains: “%s”N)r6   r7   get_text)r2   r<   r=   s   &&&r   r-   ZInputPurposeTest.on_test_entry   s    
 	3V__5FGr   c                8   < V ^8  d   QhRS[ P                  RR/# r   r<   r   N)r	   r/   r   r   r   r   r      s!     	 	..	-1	r   c                s    \         P                  R VP                  VP                  4       VP	                  4       R4      4       R# )u!   Test text view contains: “%s”TN)r6   r7   r>   Zget_start_iterZget_end_iter)r2   r<   s   &&r   r1   Z1InputPurposeTest.on_test_text_view_buffer_changed   s:    
 	7OO--/++-	r   c                r?   r@   )r	   r   r   r   r   r   r      s%     %F %F,,%F+/%Fr   c                s   VP                  4       pVEe   VP                  4       pW2,          ^,          V n        V P                  \        \        P
                  4      9  d#   \        P                  RV P                  4       R # \        \        P
                  4       EF.  pV P                  V8X  g   K  \        P                  RV P                  \        V4      4       V P                  P                  V P                  4       V P                  P                  V P                  4       V P                  P                  4       pV P                  P                  4       p\        P                  RV\        V4      4       WV8w  d   \        P                  RWV4       WPP                  8w  g   EK  \        P                  RWPP                  4       EK1  	  R # R # )Nz"self._input_purpose = %s (Unknown)zself._input_purpose = %s (%s)z Input purpose changed to %s (%s)z5input_purpose_entry != input_purpose_text_view: %s %sz1input_purpose_entry != self._input_purpose: %s %s)Zget_active_iterZ	get_modelr   r"   r   r   r6   r7   r   r*   r+   r.   Zget_input_purposeerror)r2   r<   Z	tree_iterZmodelZinput_purposeZinput_purpose_entryZinput_purpose_text_views   &&     r   r$   Z2InputPurposeTest.on_input_purpose_combobox_changed   s{   
 **,	 $$&E"'"21"5D""$x/D/D*EE8'') !%h&;&;!<&&-7KK7++S-?A $$66t7J7JK((::4;N;NO((::< ( ,,>>@ ,KK:+S1D-EG +E=/J +.A.AA9/1D1DF) "= !r   c                r;   )r   r<   r3   r   N)r	   r'   r    r   r   r   r   r      s)     : ://:14:9=:r   c           
     s$   \         P                  R W4       VP                  4       '       d   V ;P                  V,          un        MV ;P                  V( ,          un        V P                  P                  \        P                  ! V P                  4      4       V P                  P                  \        P                  ! V P                  4      4       V P                  P                  4       pV P                  P                  4       p\         P                  R\        \        V4      R4      4       \        V4      \        V P                  4      8w  d!   \         P                  RW0P                  4       \        V4      \        V4      8w  d   \         P                  RW44       \        \        P                  4       FQ  pV P                  V,          '       g   K  \         P                  R\        V4      \        \        V4      R4      4       KS  	  R# )zClicked checkbutton %s %sz!New value of self._input_hints=%sZ016bz-input_hints_entry != self._input_hints: %s %sz1input_hints_entry != input_hints_text_view: %s %szhint: %s %sN)r6   r7   Z
get_activer&   r*   r,   r	   r%   r.   Zget_input_hintsr   r    rA   r"   r   r   )r2   r<   r3   Zinput_hints_entryZinput_hints_text_viewZ
input_hints   &&&   r   r(   ZInputPurposeTest.on_checkbutton   sy    	/>%$&((8I8I)JK,,S^^D<M<M-NO ,,<<> $ 4 4 D D F73016:	< !S):):%;;LL?!#4#46  !S)>%??LLC!: x223J  :--!Ivc$i8: 4r   )r&   r   r!   r*   r.   r0   N)__name__Z
__module__Z__qualname__Z__firstlineno__r   r   r-   r1   r$   r(   Z__static_attributes__Z__classdictcell__)r      @r   r   r   B   sK     \ \|B BH H	 	%F %FN: :r   c                sJ    V ^8  d   QhR\         R\        \        ,          RR/# )r   signum_framer   N)r    r   r   r      "r   r   r     s)     > >>%i0><@>r   c                 s   V e8    \         P                  ! V 4      P                  p\
        P                  RW4       \        e   \        P                  4        R # \        R4      h  \         d    \	        T 4      p LWi ; i)Nz#Received signal %s (%s), exiting...r5   )
signalZSignalsr#   Z
ValueErrorr   r6   r7   r8   r9   r:   )rD   rE   Zsignal_names   && r   quit_glib_main_looprI     sl     	& ..055K 	96O!<==  	&f+K	&s    A% %A>=A>Z__main__)ZstreamzP%(asctime)s %(filename)s line %(lineno)d %(funcName)s %(levelname)s: %(message)sz********** STARTING **********ZinputpurposeteszControl+C pressed, exiting ...c                sj    V ^8  d   Qh/ ^ \         9   d   \        \        P                  ,          ;R&   # )r   r8   )__conditional_annotations__r   r   MainLooprF   rG   r   r   r      s%      P / .' .Q r   )N)3rJ   Ztypingr    r   r   r   Ztypesr   ZsysrH   ZloggingZlogging.handlersZgir   Zgi.repositoryr   Zset_application_nameZset_prgnameZpathr   Zitb_gtkr	   r
   Zg_compat_helpersr   r   Z	getLoggerr6   r8   r   r   rI   rB   ZStreamHandlerZstdoutZLOG_HANDLER_STREAMZ	FormatterZLOG_FORMATTERZsetFormatterZsetLevelZDEBUGZ
addHandlerr7   Zset_program_nameZINPUT_PURPOSE_TESTrK   ZSIGTERMZrunZKeyboardInterruptr9   r   )rJ   rC   r   <module>rL      s  0        
          , -   # $ HHQK$%0  " " 
		0	1*. .@:szz @:D>$ z ..cjjA%%	M ##M2
OOGMM"
()
KK01/0)+]]_N
MM&.."56' (  45s   G (HH