Zc*@s ddlZddlZddlmZddlZddlZddlmZmZddl m Z ddlm Z ddlm Z ddlmZejjZejjdZgZdd lmZeejd d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNg*D]`Zej+ejdOe ee eeee)Z?eddddddddddddddddddddddddddddg7ZxQddddgD]=Zee eee|j}|tjkr'tdn|tkrC|j|n|tkr_|j|n|tkr{|j |n|t kr|j |n|t kr|j |n|tkr|j|nk|tkr|j|nO|tkr|j|n3|tkr#|j|n|tkr?|j|n|tkr[|j|n|tkrt|trt|}nktjdkrt|tr|j d}qt!d|t"|fnt!d|t"|f|j#|n:|t$kr|j%|n|j&t'r;|j(|n|j&t)rZ|j*|n|j&t+ry|j,|n|t-kr|j.|n|j&t/r|j0|n|t1kr|j t2|nd|t3kr|j4|nH|t5kr|j6|n,|t7kr*|j,|ntd|dS( Ns+GObject.Value needs to be initialized firstiisUTF-8s'Expected string or unicode but got %s%ssExpected string but got %s%ssUnknown value type %s(ii(8RRRt TypeErrorRt set_booleanRtset_charRt set_ucharRtset_intRtset_uintRtset_longRt set_ulongRt set_int64Rt set_uint64Rt set_floatRt set_doubleRt isinstancetstrtsyst version_infotunicodetencodet ValueErrorttypet set_stringRt set_paramtis_aRtset_enumRt set_flagsRRRt set_pointerRt set_objectRtintRt set_gtypeRt set_variantR(RRtgtype((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyRsr                   cCs|j}|tkr|jS|tkr5|jS|tkrK|jS|tkra|jS|t krw|j S|t kr|j S|t kr|jS|tkr|jS|tkr|jS|tkr|jS|tkr|jS|tkr|jS|tkr'|jS|jtr@|jS|jtrY|jS|jt rr|j!S|t"kr|j#S|jt$r|j%S|t&kr|j S|t'kr|j(S|t)kr|j*S|t+krndSdS(N(-RRt get_booleanRtget_charRt get_ucharRtget_intRtget_uintRtget_longRt get_ulongRt get_int64Rt get_uint64Rt get_floatRt get_doubleRt get_stringRt get_paramRRtget_enumRt get_flagsRRRt get_pointerRt get_objectRRt get_gtypeRt get_variantRR(RR((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyt get_value-s\                                        cCsd|jj|jfS(Ns(RtnameR(R((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyt__repr___sN( t__name__t __module__RRRRRRRR(((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyRs    A 2cCs2tj|}|tkr.td|n|S(Nsunknown type name: %s(Rttype_from_nameRt RuntimeError(Rttype_((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyRfs RcCs.tj|}|tkr*tdn|S(Nsno parent for type(Rt type_parentRR (R tparent((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyR os R cCsLt|dr|j}n|j rH|j rHtd|ndS(Nt __gtype__s1type must be instantiable or an interface, got %s(thasattrR tis_instantiatablet is_interfaceR(R ((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyt _validate_type_for_signal_methodxs cCst|tj|S(N(RRtsignal_list_ids(R ((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyRs RcCs t|}td|DS(Ncss|]}tj|VqdS(N(Rt signal_name(t.0ti((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pys s(Rttuple(R tids((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pytsignal_list_namess RcCst|tj||S(N(RRt signal_lookup(RR ((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyRs Rt SignalQueryt signal_idRtitypet signal_flagst return_typet param_typescCs|dk rt||}ntj|}|dkr=dS|jdkrPdSt|j|j|j|j|j t |j S(Ni( RRRt signal_queryRRRRRRRR(t id_or_nameR tres((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyR s   R t_HandlerBlockManagercBs#eZdZdZdZRS(cCs||_||_dS(N(tobjt handler_id(RR$R%((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyRs cCsdS(N((R((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyt __enter__scCstj|j|jdS(N(Rtsignal_handler_unblockR$R%(Rtexc_typet exc_valuet traceback((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyt__exit__s(RRRR&R+(((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyR#s  cCstj||t||S(sBlocks the signal handler from being invoked until handler_unblock() is called. :param GObject.Object obj: Object instance to block handlers for. :param int handler_id: Id of signal to block. :returns: A context manager which optionally can be used to automatically unblock the handler: .. code-block:: python with GObject.signal_handler_block(obj, id): pass (Rtsignal_handler_blockR#(R$R%((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyR,sR,cCsHtj|||\}}}|r.||fStd||fdS(s%Parse a detailed signal name into (signal_id, detail). :param str detailed_signal: Signal name which can include detail. For example: "notify:prop_name" :returns: Tuple of (signal_id, detail) :raises ValueError: If the given signal is unknown. s%s: unknown signal name: %sN(Rtsignal_parse_nameR(tdetailed_signalRtforce_detail_quarkR"Rtdetail((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyR-s  R-cCs,t||t\}}tj||dS(N(R-tTrueRtsignal_remove_emission_hook(R$R.thook_idRR0((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pytremove_emission_hooksR4cCs t|fS(N(tFalse(tihintt return_accuthandler_returnt user_data((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pytsignal_accumulator_first_winssR:cCs | |fS(N((R6R7R8R9((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pytsignal_accumulator_true_handledsR;tadd_emission_hookt signal_newt_FreezeNotifyManagercBs#eZdZdZdZRS(cCs ||_dS(N(R$(RR$((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyR scCsdS(N((R((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyR&scCs|jjdS(N(R$t thaw_notify(RR(R)R*((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyR+s(RRRR&R+(((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyR> s  cs%tjjfd}|S(Ncs ||S(N((targstkwargs(tfunc(s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pytmeths(tgit overridestwraps(RBRC((RBs:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyt _signalmethods!tObjectcBseZdZdZeZeZeZeZeZeZ eZ eZ eZ eZ eZeZeZeZeZejjZejjZejjZejjZeZeZeZeZejjZejj Z ejj!Z!ejj"Z"ejj#Z#ejj$Z$ejj%Z%ejj&Z&ejj'Z'ejj(Z(ejj)Z)ejj*Z*ejj+Z+ejj,Z,ejj-Z-ejj.Z.ejj/Z/dZ0dZ1e2Z3e4ej5Z6e4ej7Z8e4ej7Z9e4ej:Z;e4ej<Z=dZ>e>Z?RS(cOstddS(Ns%This method is currently unsupported.(R (RR@tkargs((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyt_unsupported_method"scOstddS(NsIData access methods are unsupported. Use normal Python attributes instead(R (RR@RI((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyt_unsupported_data_method%scCstt|jt|S(sFreezes the object's property-changed notification queue. :returns: A context manager which optionally can be used to automatically thaw notifications. This will freeze the object so that "notify" signals are blocked until the thaw_notify() method is called. .. code-block:: python with obj.freeze_notify(): pass (RRHt freeze_notifyR>(R((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyRL]scs|jdd}|tjj@r1tjj}n tjj}|tjj@rt |dkrut d|gnfd}n}|||||S(sConnect a callback to the given signal with optional user data. :param str detailed_signal: A detailed signal to connect to. :param callable handler: Callback handler to connect to the signal. :param *data: Variable data which is passed through to the signal handler. :param GObject.ConnectFlags connect_flags: Flags used for connection options. :returns: A signal id which can be used with disconnect. t connect_flagsiisWUsing GObject.ConnectFlags.SWAPPED requires exactly one argument for user data, got: %scs2t|}|j}||g}||S(N(tlisttpop(R$R@tswap(thandler(s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyt new_handlers   ( tgetRt ConnectFlagstAFTERRRt connect_aftertconnecttSWAPPEDtlenR(RR.RQtdataRAtflagst connect_funcRR((RQs:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyt connect_dataos cCs)tj|jjtdd|j|S(s-Deprecated, please use stop_emission_by_name.t stackleveli(twarningstwarnt stop_emissiont__doc__Rtstop_emission_by_name(RR.((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyRas(@RRRJRKtget_datat get_qdatatset_datat steal_datat steal_qdatat replace_datat replace_qdatatbind_property_fulltcompat_controltinterface_find_propertytinterface_install_propertytinterface_list_propertiestnotify_by_pspect run_disposet watch_closureRRHtreft_reftref_sinkt _ref_sinktunreft_unreftforce_floatingt_force_floatingRRt get_propertytget_propertiest set_propertytset_propertiest bind_propertyRWRVtconnect_objecttconnect_object_aftertdisconnect_by_functhandler_block_by_functhandler_unblock_by_functemittchaintweak_reft__copy__t __deepcopy__RLR]R,t handler_blockRGR'thandler_unblocktsignal_handler_disconnectt disconnectthandler_disconnecttsignal_handler_is_connectedthandler_is_connectedtsignal_stop_emission_by_nameRcRatemit_stop_by_name(((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyRH!sh                         ) tBindingcBseZdZdZRS(cCstjdtdd|S(NsUsing parentheses (binding()) to retrieve the Binding object is no longer needed because the binding is returned directly from "bind_property.R^i(R_R`R(R((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyt__call__s  cCsEt|drtdn#t|dttt|jdS(Nt_unbounds$binding has already been cleared out(RRtsetattrR1RRtunbind(R((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyRs(RRRR(((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyRs tpropertysGObject.PropertytPropertytSignaltSignalOverride(oRR_t collectionsRt gi.overridesRDt gi.moduleRRt gi.repositoryRRRtpropertyhelperRt signalhelpert_giRtmoduletget_introspection_moduleRt__all__RtoptiontmodulesRtgetattrtglobalstappendtcatch_warningst simplefiltertsplittnew_nameRRRRRRRRRRRRRRRRRRRRRRRRRRRRR RRt ParamFlagstREADABLEtWRITABLERRt SignalFlagsR~RxRyRnRRRRRRRRRRRRR RRRRRRR tobjectR#R,R-R4R:R;R<R=R>RGRHRRRRR(((s:/usr/lib64/python2.7/site-packages/gi/overrides/GObject.pyts