fYI ddlZddlmZmZddlmZmZmZddlm Z ddl m Z ddl m Z ddlZe dZgZGd d ej"ZeeZej%d d-d ZeGd d ej(Zej%d eGddej*Zej%deGddej,Zej%deGddej.Zej%deGddej0Zej%deGddej2Zej%deGddej4Zej%dGddej6ZeeZej%dGddej8ZeeZej%dGddej:ZeeZej%dGd d!ej<ZeeZej%d!Gd"d#ZGd$d%ej@Z ee Z ej%d%Gd&d'ejBZ!ee!Z!ej%d'e jDe jFe jHfd(krd)Z%nd*Z%Gd+d,ejLZ&ee&Z&ej%d,y).N)wakeup_on_signalregister_sigint_fallback)overridedeprecated_initwrap_list_store_sort_func)get_introspection_module) PyGIWarning)GLibGioceZdZdZy) Applicationct|j5t5tjj |g|i|cdddcdddS#1swYnxYw dddy#1swYyxYwN)rquitrr rrun)selfargskwargss 2/usr/lib/python3/dist-packages/gi/overrides/Gio.pyrzApplication.run'sz %dii 0 B!# B**4A$A&A B B B B B B B B B Bs" A-#A A-A A--A6N)__name__ __module__ __qualname__rrrr%sBrrcfd}|S)Nc t||i|jjddddzjz}r#t j |ddtdyt j |dtdy) N.z) shouldn't be instantiated directly, use z instead.r) stacklevelz$ shouldn't be instantiated directly.)super__init__rrsplitrwarningswarnr )rrrnameclsinsteads rnew_initz_warn_init..new_init3sw c4!4262~~$$S!,R036E  MM&*G5 + MM<@B +rr)r(r)r*s`` r _warn_initr+1s + Orc2eZdZeej dZy) VolumeMonitorzGio.VolumeMonitor.get()N)rrrr+r r-r#rrrr-r-Cs#++-FGHrr-c0eZdZeej Zy)DBusAnnotationInfoN)rrrr+r r/r#rrrr/r/Ls#001Hrr/c0eZdZeej Zy) DBusArgInfoN)rrrr+r r1r#rrrr1r1Ts#//*Hrr1c0eZdZeej Zy)DBusMethodInfoN)rrrr+r r3r#rrrr3r3\#,,-Hrr3c0eZdZeej Zy)DBusSignalInfoN)rrrr+r r6r#rrrr6r6dr4rr6c0eZdZeej Zy)DBusInterfaceInfoN)rrrr+r r8r#rrrr8r8ls#//0Hrr8c0eZdZeej Zy) DBusNodeInfoN)rrrr+r r:r#rrrr:r:ts#**+Hrr:ceZdZddZy) ActionMapNcz t| dfd }|D]}|| y#t$r tdwxYw)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 iterableNc|rQtjj|std|d|dtjj |}nd}|Ytj j d|dd}tjj|||}|?|jd| n+|td|d|dtj||}||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_typeactivate) r VariantTypestring_is_valid TypeErrornewVariantparser SimpleAction new_statefulconnect ValueError add_action) r'r@r?state change_statevariant_parameter variant_stateactionr user_datas r_process_actionz5ActionMap.add_action_entries.._process_actions''77G#&4T%;<<%)$4$4$8$8$H!$(! $ 2 24d K ))66t=N7DF+NN><K +$&*L&:;;))tDU)V#z8Y? OOF #r)NNNN)iterrC)rentriesrQrRentrys` ` radd_action_entrieszActionMap.add_action_entries}sV@ 8 MAE59 $> $E U # $E 867 7 8s %:r)rrrrVrrrr<r<|sF$rr<ceZdZdZdZeZy)FileEnumeratorc|Srrrs r__iter__zFileEnumerator.__iter__s rc8|jd}||Str) next_file StopIteration)r file_infos r__next__zFileEnumerator.__next__s"NN4(    rN)rrrr[r`nextrrrrXrXs  DrrXceZdZdZy)MenuItemcf|D],\}}}|j|tj||.yr)set_attribute_valuer rE)r attributesr' format_stringvalues r set_attributezMenuItem.set_attributes5,6 O (T=%  $ $T4<< u+M N OrN)rrrrirrrrcrcsOrrcczeZdZdZeej jdZdZdZ dZ dZ e Z dZ d Zd Zy ) Settingsz0Provide dictionary-like access to GLib.Settings.)schemapathbackend) arg_namesc&||jvSr list_keysrkeys r __contains__zSettings.__contains__sdnn&&&rc4t|jSr)lenrrrZs r__len__zSettings.__len__s4>>#$$rc#>K|jD]}|ywrrqrss rr[zSettings.__iter__s!>># CI scy)NTrrZs r__bool__zSettings.__bool__srcd||vrtd||j|jS)N unknown key: )KeyError get_valueunpackrss r __getitem__zSettings.__getitem__s/ d?56 6~~c"))++rc ||vrtd||j|}|jdj}|jd}|dk(r9|jdj }|j dsJ|dd}n|dk(r|jdj j dsJ|jdjdj }|j }||vrtd|d|d |d k(rb|jd}|jdj }|j \} } || ks|| kDr,td|d | d | d td t|z|j|tj||y)Nr}rrtypeaenumzvalue z is not an allowed enum ()rangez not in range (z - z'Cannot handle allowed type range class ) r~ get_rangeget_child_value get_stringget_type_string startswithrrJNotImplementedErrorstr set_valuer rE) rrtrhrtype_vtype_strallowedtuple_min_max_s r __setitem__zSettings.__setitem__s d?56 6s#%%a(335  ! !! $ F?((+;;=H&&s+ ++|H f_$$Q'779DDSI II((+;;A>NNPHhhjGG# 5RY!Z[[ g &&q)F--a0@@BHJD$t|ut| 9>dKMM&&ORUV[R\&\] ] sDLL59:rc"|jSrrqrZs rkeysz Settings.keys(s~~rN)rrr__doc__rr rkr#rurxr[r{ __nonzero__rrrrrrrkrksJ:s||44)FHH'% K,;B rrkc2eZdZdZdZdZdZedZy)_DBusProxyMethodCallz1Helper class to implement DBusProxy method calls.c ||_||_yr) dbus_proxy method_name)rrrs rr#z_DBusProxyMethodCall.__init__3s$&rc|\}}} |j|}|||j ||y#t$r5tjdd\}} |r ||| |Yy||| |YywxYw)Nr) call_finish Exceptionsysexc_info_unpack_result) robjresultrQresult_callbackerror_callbackreal_user_dataretetypees r__async_result_handlerz+_DBusProxyMethodCall.__async_result_handler7s Y*<D)DDrcDt|}tt|||g|Sr)rr"r insert_sorted)rrrrQrs rrzListStore.insert_sorteds.0> Y3 ,,!*, ,rct|tr|jt|\}}}|dk(rt ||t ||z dgy|dk(rt ||dzt ||z dgyt t|||dD]}|j|yt|tr>|dkr|t|z }|dks|t|k\rt|j|yt)Nrrr T)reverse) rrrrwrmaxsortedrremoverrrC)rrtstartstopsteprs r __delitem__zListStore.__delitem__s c5 ! # CI 6 E4qy"4D5L!0DbI"43ut|Q3GLeT4 8$G#AKKN# S !Qws4y Qw#T*  KK Orc t|tr%|jj}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|dddyt| |D]\} }t|| d|gyt|t r|dkr|t|z }|dks|t|k\rt"|jj}t||s%t d|j d|j t||d|gyt)Nrrrrr )rrrrrCrrappendrrwrrlistrrJziprr) rrtrhr valuelistrrrrrrs rrzListStore.__setitem__s c5 !'')00FI $!!V,#"--v@AA  #  $!$ CI 6 E4qy"%TE\1!5yBuUD$78w<3y>1$$2:&dQhEDL!(rs *ELL- u% B#//B{# }$ HC%%H H  2//2 2#$ +#//+ +} .S''. .  .S''. .  1--1 1"# ,3##, ,~G$ G$T Y  { S''  .) Os||O H zA s||A H H z@@F.0 .0b Y  { # #F Y  { **D,>,>?*L% 5F FR Y  {r