+
    Ki  c                   sh    ^ RI H t ^ RIHtHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt  ! R R]4      tR	# )
i    )gettext)GObjectGtk)settings)BaseConfigBox)ScaledImage)SERVICESc                   sl   a a ] tR t^t oR]P
                  RR	3/tV 3R ltR tR t	R t
R tRtVtV ;t# )
ServicesBoxservices-changedNc                s  < \         SV `  4        V P                  V P                  \	        R 4      4      4       V P                  V P                  \	        R4      4      4       \        P                  ! R\        P                  P                  R7      V n
        \        P                  ! RR7      V n        V P                  P                  V P                  4       V P                  V P                  RR^ 4       R# )z%Enable integrations with game sourceszZAccess your game libraries from various sources. Changes require a restart to take effect.T)visibleZshadow_typer	   FN)Zsuper__init__addZget_section_label_Zget_description_labelr   ZFrameZ
ShadowTypeZ	ETCHED_INframeZListBoxlistbox
pack_start)self	__class__s   &C/usr/lib/python3.14/site-packages/lutris/gui/config/services_box.pyr   ZServicesBox.__init__   s    ''*Q(RST&&no	

 YYt9Q9QR
{{40

t||$

E5!4    c                s   \          Fw  p\        P                  ! R R7      pVP                  R4       VP	                  R4       VP                  V P                  V4      4       V P                  P                  V4       Ky  	  R# )Tr
   FN)r   r   Z
ListBoxRowZset_selectableZset_activatabler   _get_service_boxr   )r   service_keyZlist_box_rows   &  r   populate_servicesZServicesBox.populate_services   sa    #K>>$7L''.((/T22;?@LL\* $r   c           
     s   \         P                  ! ^^^^^^ RR7      pVR,           p\        V,          p\        P                  ! VRR7      p\        P                  ! VRRR7      p\
        P                  ! VP                  VP                  V P                  4       RR7      pVP                  VRR^ 4       \         P                  ! RR	7      p\         P                  ! RR	7      p	V	P                  R
VP                   R24       V	P                  ^ R4       VP                  V	RR^ 4       VP                   '       dZ   \         P                  ! RRR7      p
V
P                  ^ R4       V
P#                  VP                   4       VP                  V
RR^ 4       \         P$                  ! \'        R4      VV\         P(                  P*                  R7      pVP-                  4       pVP/                  R4       VP/                  R4       VP1                  RV P2                  V4       VP                  VRR^ 4       VP                  VRR^ 4       \         P4                  ! RR	7      pVP7                  V4       VP1                  RV P8                  W4       \         P:                  P=                  RR^ ^ 4      pVP?                  4        VPA                  V4       VP                  VRR^4       V# )i   T)ZspacingZmargin_rightZmargin_leftZ
margin_topZmargin_bottomZheight_requestr	   Z_in_games_viewservicessection)Zdefaultr   )Zscale_factorr	   Fr
   z<b>z</b>g      ?)r	   Zwrapz-Show games from this source in the games view)r	   ZactiveZhalignZsmallcheckboxZcuddledcheckboxZtoggledz	state-set)!r   ZBoxr   r   Zread_bool_settingr   Zget_runtime_icon_imageiconZidZget_scale_factorr   ZVBoxZLabelZ
set_markupZnameZset_alignmentZdescriptionZset_textZCheckButtonr   ZAlignZSTARTZget_style_contextZ	add_classZconnect_on_include_in_games_changeZSwitch
set_active_on_service_changeZ	AlignmentZnewZshowr   )r   r   ZboxZin_games_view_keyZserviceZ	is_activeZis_in_games_viewr   Zservice_label_boxZlabelZ
desc_labelinclude_in_games_checkboxZstyle_contextZcheckboxZ	alignments   &&             r   r   ZServicesBox._get_service_box%   sh   gg
 (*::;'..{JO	#556GQU_ij11LL'**43H3H3JTX
 	tUE1-HHT2		$'3w||nD12As#$$UE5!<4d;J$$Q, 3 34((UE1E$'OO=>#99??	%
! 2CCE0 12!)))T5U5UWhi$$%>uaP($a8::d+I&d&=&={fMM%%c315	hy%2
r   c                s    \         P                  ! W2RR7       VP                  V4       VP                  R4       V P	                  R4       R# )(Save a setting when an option is toggledr   r   Tr   N)r   write_settingZset_visibler   Zemit)r   widgetstatesetting_keyr   s   &&&&&r   r   ZServicesBox._on_service_change\   s=    {:F!--e4 	",,T2		$%r   c                sV    VP                  4       p\        P                  ! W#RR7       R# )r    r   r   N)Z
get_activer   r!   )r   r"   r$   r#   s   &&& r   r   Z'ServicesBox._on_include_in_games_changee   s     !!#{:Fr   )r   r    )Z__name__Z
__module__Z__qualname__Z__firstlineno__r   ZSIGNAL_RUN_FIRSTZ__gsignals__r   r   r   r   r   Z__static_attributes__Z__classdictcell__Z__classcell__)r   Z__classdict__s   @@r   r   r      s?     W55tR@L5+5n&G Gr   r   N)r    r   Zgi.repositoryr   r   Zlutrisr   Z!lutris.gui.config.base_config_boxr   Zlutris.gui.widgets.scaled_imager   Zlutris.servicesr   r   r%   r   r   <module>r&      s'      &  ; 7 $]G- ]Gr   