MOON
Server: Apache
System: Linux s5.yayogua.com.py 6.12.0-124.55.3.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:54:02 EDT 2026 x86_64
User: sanbercountryclu (1012)
PHP: 8.2.33
Disabled: NONE
Upload Files
File: //lib/python3.12/site-packages/gi/overrides/__pycache__/Gio.cpython-312.opt-1.pyc
�

��T`YIcs �ddlZddlmZmZddlmZmZmZddlm	Z	ddl
mZddlm
Z
ddlZe	d�ZgZGd	�d
ej"�Zee�Zej%d
�d-d�ZeGd�d
ej(��Zej%d
�eGd�dej*��Zej%d�eGd�dej,��Zej%d�eGd�dej.��Zej%d�eGd�dej0��Zej%d�eGd�dej2��Zej%d�eGd�dej4��Zej%d�Gd�dej6�Zee�Zej%d�Gd�dej8�Zee�Zej%d�Gd�dej:�Zee�Zej%d�Gd �d!ej<�Zee�Zej%d!�Gd"�d#�ZGd$�d%ej@�Z ee �Z ej%d%�Gd&�d'ejB�Z!ee!�Z!ej%d'�e
jDe
jFe
jHfd(krd)�Z%nd*�Z%Gd+�d,ejL�Z&ee&�Z&ej%d,�y).�N�)�wakeup_on_signal�register_sigint_fallback)�override�deprecated_init�wrap_list_store_sort_func)�get_introspection_module)�PyGIWarning)�GLib�Giocs�eZdZd�Zy)�Applicationcs��t|j�5t�5tjj
|g|��i|��cddd�cddd�S#1swYnxYw	ddd�y#1swYyxYw�N)rZquitrr
r�run)�self�args�kwargss   �5/usr/lib/python3.12/site-packages/gi/overrides/Gio.pyr
zApplication.run's^��
%�d�i�i�
0�!�#����*�*�4�A�$�A�&�A�
B�
B�	B�	B�#�#��#�1�
0�
0�s"�A-�#A�	A-�A 	�A-�-A6N)�__name__�
__module__�__qualname__r
��rrr%s��Brrcs�����fd�}|S)Ncs
��t�|�|i|���jjdd�ddz�jz}�r#tj|�d��d�td��ytj|�d�td��y)	N�.����z) shouldn't be instantiated directly, use z	 instead.r)Z
stacklevelz$ shouldn't be instantiated directly.)�super�__init__rZrsplitr�warningsZwarnr)rrr�name�cls�insteads    ��r�new_initz_warn_init.<locals>.new_init3sw���
�c�4�!�4�2�6�2��~�~�$�$�S�!�,�R�0�3�6����E����M�M�&*�G�5���
+�

�M�M�<@�B���
+rr)rrr s`` r�
_warn_initr!1s���+��Orcs2�eZdZeej
d�Zy)�
VolumeMonitorzGio.VolumeMonitor.get()N)rrrr!r
r"rrrrr"r"Cs���#�+�+�-F�G�Hrr"cs0�eZdZeej
�Zy)�DBusAnnotationInfoN)rrrr!r
r#rrrrr#r#Ls���#�0�0�1�Hrr#cs0�eZdZeej
�Zy)�DBusArgInfoN)rrrr!r
r$rrrrr$r$Ts���#�/�/�*�Hrr$cs0�eZdZeej
�Zy)�DBusMethodInfoN)rrrr!r
r%rrrrr%r%\����#�,�,�-�Hrr%cs0�eZdZeej
�Zy)�DBusSignalInfoN)rrrr!r
r'rrrrr'r'dr&rr'cs0�eZdZeej
�Zy)�DBusInterfaceInfoN)rrrr!r
r(rrrrr(r(ls���#�/�/�0�Hrr(cs0�eZdZeej
�Zy)�DBusNodeInfoN)rrrr!r
r)rrrrr)r)ts���#�*�*�+�Hrr)cs�eZdZdd�Zy)�	ActionMapNcsz���	t|�		d��fd�	}|D]}||��	y#t$rtd��wxYw)a�
        The add_action_entries() method is a convenience function for creating
        multiple Gio.SimpleAction instances and adding them to a Gio.ActionMap.
        Each action is constructed as per one entry.

        :param list entries:
            List of entry tuples for add_action() method. The entry tuple can
            vary in size with the following information:

                * The name of the action. Must be specified.
                * The callback to connect to the "activate" signal of the
                  action. Since GLib 2.40, this can be None for stateful
                  actions, in which case the default handler is used. For
                  boolean-stated actions with no parameter, this is a toggle.
                  For other state types (and parameter type equal to the state
                  type) this will be a function that just calls change_state
                  (which you should provide).
                * The type of the parameter that must be passed to the activate
                  function for this action, given as a single GLib.Variant type
                  string (or None for no parameter)
                * The initial state for this action, given in GLib.Variant text
                  format. The state is parsed with no extra type information, so
                  type tags must be added to the string if they are necessary.
                  Stateless actions should give None here.
                * The callback to connect to the "change-state" signal of the
                  action. All stateful actions should provide a handler here;
                  stateless actions should not.

        :param user_data:
            The user data for signal connections, or None
        zentries must be iterableNcs��|rQtjj|�std|�d|�d���tjj	|�}nd}|�Ytj
j
d|dd�}tjj|||�}|�?|jd|�	�n+|�td|�d|�d���tj||��}|�|jd	|�	��j|�y)
NzThe type string 'z*' given as the parameter type for action 'z'' is not a valid GVariant type string. zchange-statezStateless action 'z,' should give None for 'change_state', not 'z'.)r�parameter_type�activate)
r	ZVariantTypeZstring_is_valid�	TypeErrorZnew�VariantZparser
ZSimpleActionZnew_statefulZconnect�
ValueErrorZ
add_action)
rr,r+ZstateZchange_stateZvariant_parameterZ
variant_stateZactionr�	user_datas
        ��r�_process_actionz5ActionMap.add_action_entries.<locals>._process_action�s�����'�'�7�7��G�#�&4�T�%;�<�<�%)�$4�$4�$8�$8��$H�!�$(�!�� � $��� 2� 2�4���d� K�
��)�)�6�6�t�=N�7D�F���+��N�N�>�<��K� �+�$�&*�L�&:�;�;��)�)�t�DU�)�V���#����z�8�Y�?��O�O�F�#r)NNNN)Ziterr-)rZentriesr0r1Zentrys` `  r�add_action_entrieszActionMap.add_action_entries}sQ���@	8���M�AE�59�	$�>�E��U�#���E�	8��6�7�7�	8�s�%�:r)rrrr2rrrr*r*|s��F$rr*cs�eZdZd�Zd�ZeZy)�FileEnumeratorcs�|Srr�rs r�__iter__zFileEnumerator.__iter__�s���rcs8�|jd�}|�|St�r)Z	next_fileZ
StopIteration)rZ	file_infos  r�__next__zFileEnumerator.__next__�s"���N�N�4�(�	�� ����rN)rrrr5r6Znextrrrr3r3�s��� ��Drr3cs�eZdZd�Zy)�MenuItemcsf�|D],\}}}|j|tj||���.yr)Zset_attribute_valuer	r.)rZ
attributesrZ
format_string�values     r�
set_attributezMenuItem.set_attribute�s.��,6�(�T�=�%��$�$�T�4�<�<�
�u�+M�N�-7rN)rrrr9rrrr7r7�s��Orr7csz�eZdZdZeejjd��Zd�Zd�Z	d�Z
d�ZeZd�Z
d	�Zd
�Zy)�Settingsz0Provide dictionary-like access to GLib.Settings.)ZschemaZpathZbackend)Z	arg_namescs&�||j�vSr��	list_keys�r�keys  r�__contains__zSettings.__contains__�s���d�n�n�&�&�&rcs4�t|j��Sr)�lenr<r4s r�__len__zSettings.__len__�s���4�>�>�#�$�$rc#s>K�|j�D]}|���y�wrr;r=s  rr5zSettings.__iter__�s�����>�>�#�C��I�$�s�cs�y)NTrr4s r�__bool__zSettings.__bool__�s��rcsd�||vrtd|����|j|�j�S)N�
unknown key: )�KeyErrorZ	get_value�unpackr=s  r�__getitem__zSettings.__getitem__s/���d�?���5�6�6��~�~�c�"�)�)�+�+rc	s��||vrtd|����|j|�}|jd�j�}|jd�}|dk(r%|jd�j	�}|dd}n�|dk(rT|jd�jd�j	�}|j�}||vr�t
d|�d|�d���|d	k(rb|jd�}|jd�j	�}|j�\}	}
||	ks||
kDr,t
d|�d
|	�d|
�d���tdt|�z��|j|tj||��y)
NrCrrZtypeZenumzvalue z is not an allowed enum (z)�rangez not in range (z - z'Cannot handle allowed type range class )rDZ	get_rangeZget_child_valueZ
get_stringZget_type_stringrEr/ZNotImplementedError�strZ	set_valuer	r.)rr>r8rGZtype_�vZtype_strZallowedZtuple_Zmin_Zmax_s           r�__setitem__zSettings.__setitem__se���d�?���5�6�6����s�#���%�%�a�(�3�3�5���!�!�!�$���F�?��(�(��+�;�;�=�H����|�H�
�f�_��(�(��+�;�;�A�>�N�N�P�H��h�h�j�G��G�#� �5�RY�!Z�[�[�
�g�
��&�&�q�)�F��-�-�a�0�@�@�B�H�����J�D�$��t�|�u�t�|� �9>��d�K�M�M�&�&O�RU�V[�R\�&\�]�]����s�D�L�L��5�9�:rcs"�|j�Srr;r4s r�keysz
Settings.keys(s���~�~��rN)rrr�__doc__rr
r:rr?rAr5rBZ__nonzero__rFrJrKrrrr:r:�sJ��:��s�|�|�4�4�)F�H�H�'�%����K�,�;�B rr:cs2�eZdZdZd�Zd�Zd�Zed��Zy)�_DBusProxyMethodCallz1Helper class to implement DBusProxy method calls.cs �||_||_yr)�
dbus_proxy�method_name)rrNrOs   rrz_DBusProxyMethodCall.__init__3s��$���&��rcs��|\}}}	|j|�}|||j	|�|�y#t$r5tj�dd\}}	|r|||	|�Yy|||	|�YywxYw)Nr)Zcall_finishZ	Exception�sysZexc_info�_unpack_result)
rZobj�resultr0Zresult_callbackZerror_callbackZreal_user_data�retZetypeZes
          rZ__async_result_handlerz+_DBusProxyMethodCall.__async_result_handler7s���<E�9��.�.�		��/�/�&�)�C�	��T�0�0��5�~�F���	��|�|�~�b�q�)�H�E�1���s�A�~�6�
� ��Q��7��	�s�3�/A1�$
A1�0A1c	sL�|r(|d}|dd}t|t�std|z��d}tj|t|��}d|vr||d|j
d�|j
d�f}|jj|j||j
dd�|j
d	d
�d|j|�y|jj|j||j
dd�|j
d	d
�d�}|j|�S)Nrrz6first argument must be the method signature string: %rz()Zresult_handlerZ
error_handlerr0ZflagsZtimeoutr)
�
isinstancerHr-r	r.ZtupleZgetrNZcallrO�*_DBusProxyMethodCall__async_result_handlerZ	call_syncrQ)rrrZ	signatureZarg_variantr0rRs       r�__call__z_DBusProxyMethodCall.__call__Fs����Q��I����8�D��i��-�� X�[d� d�e�e��I��l�l�9�e�D�k�:���v�%�� 0�1����O�4����K�0�2�I�
�O�O� � ��!1�!1�;�!'���G�Q�!7����I�r�9R�TX�!%�!<�!<�i�
I�
�_�_�.�.�t�/?�/?��/5�z�z�'�1�/E�/5�z�z�)�R�/H�/3�5�F��&�&�v�.�.rcsp�|j�}t|�dk(r|d}|St|�dk(rd}|S)z?Convert a D-BUS return variant into an appropriate return valuerrN)rEr@)ZklassrRs  rrQz#_DBusProxyMethodCall._unpack_resultcsE��������v�;�!���A�Y�F��
���[�A�
��F��
rN)	rrrrLrrUrVZclassmethodrQrrrrMrM0s)��;�'�
G�/�:���rrMcs�eZdZdZd�Zy)�	DBusProxya$Provide comfortable and pythonic method calls.

    This marshalls the method arguments into a GVariant, invokes the
    call_sync() method on the DBusProxy object, and unmarshalls the result
    GVariant back into a Python tuple.

    The first argument always needs to be the D-Bus signature tuple of the
    method call. Example:

      proxy = Gio.DBusProxy.new_sync(...)
      result = proxy.MyMethod('(is)', 42, 'hello')

    The exception are methods which take no arguments, like
    proxy.MyMethod('()'). For these you can omit the signature and just write
    proxy.MyMethod().

    Optional keyword arguments:

    - timeout: timeout for the call in milliseconds (default to D-Bus timeout)

    - flags: Combination of Gio.DBusCallFlags.*

    - result_handler: Do an asynchronous method call and invoke
         result_handler(proxy_object, result, user_data) when it finishes.

    - error_handler: If the asynchronous call raises an exception,
      error_handler(proxy_object, exception, user_data) is called when it
      finishes. If error_handler is not given, result_handler is called with
      the exception object as result instead.

    - user_data: Optional user data to pass to result_handler for
      asynchronous calls.

    Example for asynchronous calls:

      def mymethod_done(proxy, result, user_data):
          if isinstance(result, Exception):
              # handle error
          else:
              # do something with result

      proxy.MyMethod('(is)', 42, 'hello',
          result_handler=mymethod_done, user_data='data')
    cs�t||�Sr)rM)rrs  r�__getattr__zDBusProxy.__getattr__�s��#�D�$�/�/rN)rrrrLrXrrrrWrWss
��+�X0rrWcs$�eZdZd�Zd�Zd�Zd�Zy)�	ListModelcsD�t|t�r=t|jt	|���D�cgc]}|j|���c}St|t�r9|dkr|t	|�z
}|dkrt�|j|�}|�t�|St�cc}w)Nr)	rT�slicerG�indicesr@�get_item�int�
IndexErrorr-)rr>�irSs    rrFzListModel.__getitem__�s����c�5�!�.3�S�[�[��T��5K�.L�M�.L��D�M�M�!�$�.L�M�M�
��S�
!��Q�w��s�4�y� ���Q�w� � ��-�-��$�C��{� � ��J��O��Ns�Bcs��|j�j}t||�s%td|j�d|j
����|D]	}||k(s�	yy)N�Expected type rTF)�
get_item_type�pytyperTr-rr)r�itemrbr_s    rr?zListModel.__contains__�sZ���#�#�%�,�,���$��'��)/�):�):�F�O�O�L�N�
N��A��D�y���rcs"�|j�Sr)Zget_n_itemsr4s rrAzListModel.__len__�s�����!�!rc#sdK�tt|��D]}|j|����y�wr)rGr@r\)rr_s  rr5zListModel.__iter__�s(�����s�4�y�!�A��-�-��"�"�"�s�.0N)rrrrFr?rAr5rrrrYrY�s��
��"�#rrY)ri9rcsn�|j||g�t|�D]}|j||��yr)�spliceZreversedZinsert)r�position�
n_removals�	additionsrIs     r�_list_store_splicerh�s/�����H�j�"�-��)�$�A��K�K��!�$�%rcs*�|j|||�yr)rd)rrerfrgs    rrhrh�s�����H�j�)�4rcs4��eZdZ�fd�Z�fd�Zd�Zd�Z�xZS)�	ListStorecsB��t|�}tt|�|g|���Sr)rrri�sort)r�compare_funcr0�	__class__s   �rrjzListStore.sort�s$���0��>���Y��*�<�D�)�D�DrcsD��t|�}tt|�||g|���Sr)rrri�
insert_sorted)rrcrkr0rls    �rrmzListStore.insert_sorted�s.���0��>���Y��3��,�,�!*�,�	,rcs��t|t�r�|jt|��\}}}|dk(rt	||t||z
d�g�y|dk(rt	||dzt||z
d�g�yt
t|||�d��D]}|j|��yt|t�r>|dkr|t|�z
}|dks|t|�k\rt�|j|�yt�)NrrrT)Zreverse)rTrZr[r@rh�maxZsortedrGZremover]r^r-)rr>�start�stop�stepr_s      r�__delitem__zListStore.__delitem__�s����c�5�!� #���C��I� 6��E�4���q�y�"�4���D�5�L�!�0D�b�I����"�4����3�u�t�|�Q�3G��L���e�T�4� 8�$�G�A��K�K��N�H�
��S�
!��Q�w��s�4�y� ���Q�w�#��T��*� � ��K�K����Orc	s��t|t��r%|j�j}g}|D]D}t||�s%t	d|j
�d|j����|j|��F|jt|��\}}}|dk(rt||t||z
d�|�ytt|||��}	t|	�t|�k7rt�|dk(r%t||dzt||z
d�|ddd��yt|	|�D]\}
}t||
d|g��yt|t �r�|dkr|t|�z
}|dks|t|�k\rt"�|j�j}t||�s%t	d|j
�d|j����t||d|g�yt�)Nr`rrrr)rTrZrarbr-rr�appendr[r@rhrnZlistrGr/Zzipr]r^)rr>r8rbZ	valuelistrIrorprqr[r_s           rrJzListStore.__setitem__�s����c�5�!��'�'�)�0�0�F��I���!�!�V�,�#�"�-�-�v���@�A�A�� � ��#��!$���C��I� 6��E�4���q�y�"��%��T�E�\�1�!5�y�B��u�U�D�$�7�8���w�<�3�y�>�1�$�$��2�:�&��d�Q�h��E�D�L�!�(<�i��"��o�O�!$�G�Y� 7���1�*�4��A��s�;�!8�
��S�
!��Q�w��s�4�y� ���Q�w�#��T��*� � ��'�'�)�0�0�F��e�V�,���)�)�6�?�?�<�=�=�
�t�S�!�e�W�5��Or)rrrrjrmrrrJZ
__classcell__)rls@rriri�s���E�,�
�&(rrir)'rZ_ossighelperrrZ	overridesrrrZmodulerZgirZ
gi.repositoryr	rPr
Z__all__rrsr!r"r#r$r%r'r(r)r*r3r7r:rMrWrYZ
MAJOR_VERSIONZ
MINOR_VERSIONZ
MICRO_VERSIONrhrirrr�<module>rts
��*�E�L�L�-���
��u�%��
��B�#�/�/�B��{�#�����}���$
�H�C�%�%�H�
�H�
�����
�2��/�/�2�
�2����#�$�
�+�#�/�/�+�
�+����}��
�.�S�'�'�.�
�.����� �
�.�S�'�'�.�
�.����� �
�1��-�-�1�
�1����"�#�
�,�3�#�#�,�
�,����~��G$��
�
�G$�T
�Y��	����{��
�S�'�'�
� �.�)������ �O�s�|�|�O��H������z��A �s�|�|�A �H�H������z��@�@�F.0��
�
�.0�b
�Y��	����{�� #��
�
� #�F
�Y��	����{��	����*�*�D�,>�,>�?�*�L�%�
5�F��
�
�F�R
�Y��	����{�r