Zc@sddlZddlZddlZddlZddlmZddlmZmZm Z m Z ddl m Z m Z mZddlmZmZedZgZddlmZeejd dd lmZdd lmZdd lmZeZejZejZejZej Z d Z!dZ"dZ#de_$de_%ejj&e_&e"e_'e(e#e_)edddddddg7Zde*fdYZ+dej,fdYZ,dZ-e.e,de-ejdddZ/ejdxndd d!d"d#d$d%d&gD]NZ0d'e0Z1ede1d(e0e2ej3d)e0e4e1d?gD]JZ0d@e0Z1e2ej9e0e4e1Wx[dTdUdVgD]JZ0dWe0Z1ede1dXe0e2ej<e0e4e1dkdldZ1e2ee=e4e1Handle the case where the outermost type of format is a tuple.it)s#tuple type string not closed with )isexpected tuple argumenttrs&too many arguments for tuple signatureN(R8R;RBR9RttupleR tVariantBuildertnewRtrangetlent add_valuetend(RR?R@t rest_formattbuilderR*R3t_((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR:s.      #  c Csd}|dks|d r|j|ddd}|j|dd}|jdsktdn|d}|t|t| }tjjt|}ntjjtd}x|dj D]\}}|j|d|g\}}} |j||g\} }} |jds=tdn|d}tjjtd} | j || j | |j | j qW|dk r|d}n|j ||fS( s=Handle the case where the outermost type of format is a dict.iiit}s(dictionary type string not closed with }sa{?*}s{?*}N( R8RBR;R9RIR RFRGRtitemsRJRK( RR?R@RMRLt element_typetkR3tkey_vRNtval_vtentry((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR<s. "     c Csd}|dks|d rl|j|ddd}|t|t| }tjjt|}nmtjjtd}xRtt|dD]:}|j|d|d|\}}}|j|qW|dk r|d}n|j ||fS(s?Handle the case where the outermost type of format is an array.iisa*N( R8RBRIR RFRGRRHRJRK( RR?R@RMRLRQR*R3RN((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR=s'  (t__name__t __module__R tVariantt new_booleantnew_bytet new_int16t new_uint16t new_int32t new_uint32t new_int64t new_uint64t new_handlet new_doublet new_stringtnew_object_patht new_signaturet new_variantR6RBR:R<R=(((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR%Ws&              $ " !RXcBseZdZedZdZdZdZdZdZ dZ dZ e d Z d Zd Zd Zd ZdZRS(cCsMt}|j||g\}}}|r@td|n||_|S(sCreate a GVariant from a native Python object. format_string is a standard GVariant type signature, value is a Python object whose structure has to match the signature. Examples: GLib.Variant('i', 1) GLib.Variant('(is)', (1, 'hello')) GLib.Variant('(asa{sv})', ([], {'foo': GLib.Variant('b', True), 'bar': GLib.Variant('i', 2)})) s%invalid remaining format string: "%s"(R%RBR9t format_string(tclsRgtvaluetcreatorR3RLRN((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt__new__s  cGstjj|S(N(R RXt new_tuple(telements((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRlscCs|jdS(N(tunref(R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt__del__scCs |jtS(N(tprint_tTrue(R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt__str__scCs>t|dr|j}n |j}d||jtfS(NRgsGLib.Variant('%s', %s)(thasattrRgtget_type_stringRptFalse(Rtf((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt__repr__s  cCs*y|j|SWntk r%tSXdS(N(tequalR9Ru(Rtother((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt__eq__ s cCs+y|j| SWntk r&tSXdS(N(RxR9Rq(RRy((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt__ne__s cCst|j|jfS(N(thashRttunpack(R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt__hash__scCs+i |jd6|jd6|jd6|jd6|jd6|jd6|jd6|jd6|jd 6|j d 6|j d 6|j d 6|j d 6}|j |j }|r|S|j j drgt|jD]}|j|j^q}t|S|j j drpi}xQt|jD]=}|j|}|jdj||jdj(RtLEAF_ACCESSORStlaR*tresR3R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR}sH             1 ,/ c Cs,|dkrgS|jds&|gSg}d}|dd!}x|r'|d}||7}|d}|d krxqBn|d krd}|}|dkrd }nd }xc|dkr |d}||7}|d}||kr|d7}q||kr|d8}qqWn|j|d}qBW|S(s[Return a list of the element signatures of the topmost signature tuple. If the signature is not a tuple, it returns one element with the entire signature. If the signature is an empty tuple, the result is []. This is useful for e. g. iterating over method parameters which are passed as a single Variant. s()R4tiiiRR5t{RCRO(RR5(R4R(R;tappend( tklasst signaturetresulttheadttailtctleveltuptdown((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pytsplit_signatureRs<                  cCsp|jdkr"t|jS|jjdsL|jjdrV|jStd|jdS(NR0R1R2R5R4s'GVariant type %s does not have a length(R0R1R2(RtRIRR;RR9(R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt__len__s * cCs|jjdryA|j|td}|dkrKt|n|jSWqtk rxWt|j D]C}|j |}|j dj|kry|j djSqyWt|qXn|jjds|jjdrht |}|dkr(|j |}n|dksF||j krUt dn|j |jS|jd kr|j j|Std |jdS( Nsa{t*iiR5R4slist index out of rangeR0R1R2s#GVariant type %s is not a container(R0R1R2(RtR;t lookup_valueRR8tKeyErrorR}R9RHRRtintt IndexErrorRt __getitem__(RtkeytvalR*R3((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRs,  *  cCs |jS(N(t__bool__(R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt __nonzero__sc Cs|jdkr"|jd kS|jdkr>|jS|jdkrft|jd kS|jjds|jjdr|jd kS|jdkrt|jStS(NR'R(R)R*R+R,R-R.R/iR&R0R1R2R5R4R3( R'R(R)R*R+R,R-R.R/(R&(R0R1R2(R3( RtR}RRIRR;RtboolRq(R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRs *cCs{|jjds)td|jfSg}xEt|jD]1}|j|}|j|jdjqBW|S(Nsa{s$GVariant type %s is not a dictionaryi(RtR;R9RHRRRR}(RRR*R3((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pytkeyss (RVRWRkt staticmethodRlRoRrRwRzR{R~R}t classmethodRRRRRR(((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRXs        66  %  cCstjj|\}}|S(N(R RXR(RRitlength((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRsRcCs<t|tr(tj|jd|Stj||SdS(NsUTF-8(RtbytesR tmarkup_escape_texttdecode(ttextR((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRsRtDESKTOPt DOCUMENTStDOWNLOADtMUSICtPICTURESt PUBLIC_SHAREt TEMPLATEStVIDEOStUSER_DIRECTORY_sGLib.UserDirectory.DIRECTORY_t DIRECTORY_tERRtHUPtINtNVALtOUTtPRItIO_tAPPENDtGET_MASKt IS_READABLEt IS_SEEKABLEtMASKtNONBLOCKtSET_MASKtIO_FLAG_s GLib.IOFlags.tIO_FLAG_IS_WRITEABLEsGLib.IOFlags.IS_WRITABLEtAGAINtEOFtERRORtNORMALt IO_STATUS_sGLib.IOStatus.tCHILD_INHERITS_STDINtDO_NOT_REAP_CHILDtFILE_AND_ARGV_ZEROtLEAVE_DESCRIPTORS_OPENt SEARCH_PATHtSTDERR_TO_DEV_NULLtSTDOUT_TO_DEV_NULLtSPAWN_sGLib.SpawnFlags.tHIDDENtIN_MAINtREVERSEtNO_ARGtFILENAMEt OPTIONAL_ARGtNOALIASt OPTION_FLAG_sGLib.OptionFlags.tUNKNOWN_OPTIONt BAD_VALUEtFAILEDt OPTION_ERROR_sGLib.OptionError.t G_MINFLOATt G_MAXFLOATt G_MINDOUBLEt G_MAXDOUBLEt G_MINSHORTt G_MAXSHORTt G_MAXUSHORTtG_MININTtG_MAXINTt G_MAXUINTt G_MINLONGt G_MAXLONGt G_MAXULONGt G_MAXSIZEt G_MINSSIZEt G_MAXSSIZEt G_MINOFFSETt G_MAXOFFSETRNitMainLoopcBs2eZddZddZdZdZRS(cCstjj|tS(N(R RRGRu(Rhtcontext((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRk%scCsad}tjdkr]ttdr3tj}n tj}|tjtj|||_ ndS(NcSs|jt|_tS(N(tquitRqt_quit_by_sigint(tloop((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt_handler*s  twin32tunix_signal_add( tsystplatformRsR Rtunix_signal_add_fulltPRIORITY_DEFAULTtsignaltSIGINTt_signal_source(RRRtfn((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt__init__)s    cCs&t|dr"tj|jndS(NR(RsR t source_removeR(R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRo9scCs/tt|jt|dr+tndS(NR(tsuperRtrunRstKeyboardInterrupt(R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR =sN(RVRWR8RkRRoR (((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR#s   t MainContextcBseZedZRS(cCstt|j|S(N(R R t iteration(Rt may_block((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRIs(RVRWRqR(((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR GstSourcecBseZdZdZd dZdZeedZdZdZ e ee Z dZ dZ e e e ZRS( cOs&t}||_t|dt|S(Nt__pygi_custom_source(Rt __class__tsetattrRq(RhR@tkwargstsource((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRkQs  cOstt|jS(N(R RR(RR@R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRYscCs?t|dr"t|||ntt|j||dS(NR(RsRR Rt set_callback(RRt user_data((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR\scCstjdS(Ngư>(R t get_real_time(R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pytget_current_timeess.GLib.Source.get_time() or GLib.get_real_time()cCs |jS(N(t get_priority(R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt__get_prioritymscCs|j|dS(N(t set_priority(RRi((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt__set_prioritypscCs |jS(N(tget_can_recurse(R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt__get_can_recurseuscCs|j|dS(N(tset_can_recurse(RRi((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt__set_can_recursexsN(RVRWRkRR8RRRt_Source__get_priorityt_Source__set_prioritytpropertytpriorityt_Source__get_can_recurset_Source__set_can_recurset can_recurse(((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRPs        tIdlecBs&eZejdZejdZRS(cCstj}||_|S(N(R tidle_source_newR(RhR%R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRks  cCs6tt|j|tjkr2|j|ndS(N(R RRR RR(RR%((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRs(RVRWR RRkR(((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR)stTimeoutcBs,eZdejdZdejdZRS(icCstj|}||_|S(N(R ttimeout_source_newR(RhtintervalR%R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRks cCs#|tjkr|j|ndS(N(R RR(RR-R%((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRs(RVRWR RRkR(((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR+scOs(|jdtj}tj|||S(NR%(R7R tPRIORITY_DEFAULT_IDLEtidle_add(tfunctionRRR%((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR/sR/cOs+|jdtj}tj||||S(NR%(R7R Rt timeout_add(R-R0RRR%((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR1sR1cOs+|jdtj}tj||||S(NR%(R7R Rttimeout_add_seconds(R-R0RRR%((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR2sR2cst|t s"t|tjrtjdt|}||}ts_tdnd|krtjdt|d}qtj }nFt |dkst|d rtdn|d|d}ttrfd}tj j }ntt j r^tjd kr^fd }tj jj}nHtd rfd }tj j j}n }}|||||fS( NsFCalling io_add_watch without priority as second argument is deprecatedsthird argument must be callableR%sgCalling io_add_watch with priority keyword argument is deprecated, put it as second positional argumentiis%expecting callback as fourth argumentcs||S(N((RNtcondtdata(tcallbacktchannel(s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pytsRcs||S(N((RNR3R4(R5R6(s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR7stfilenocs||S(N((RNR3R4(R5R6(s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR7s(RRR t IOConditionRRRtcallableR9RRIt IOChanneltunix_newtsocketRRtwin32_new_socketR8Rs(R6t priority_t conditiontcb_and_user_dataRRtfunc_fdtransformt real_channel((R5R6s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt_io_add_watch_get_argss:"      #  !RDcOs7t||\}}}}}tj|||||S(sOio_add_watch(channel, priority, condition, func, *user_data) -> event_source_id(RDR t io_add_watch(R@RR6R%R@tfuncR((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyREsRER;cBseZdddddZdZddZddZddZddZdZ ie j j d6e j j d 6e j jd 6Zdd Zd Zeed ZdZdZeZRS(cCsm|dk rtjj|S|dk rAtjj||p=dS|dk r]tjj|StddS(NRDsLeither a valid file descriptor, file name, or window handle must be supplied(R8R R;R<tnew_filet win32_new_fdR9(Rhtfiledestfilenametmodethwnd((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRks   cOstt|jS(N(R R;R(RR@R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRsicCs t||S(N(R(Rt max_count((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pytreadscCs,|j\}}}}|dkr(dS|S(NR(t read_lineR8(Rt size_hinttstatustbufRtterminator_pos((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pytreadlines cCsig}tjj}xP|tjjkrd|j\}}}}|dkrTd}n|j|qW|S(NR(R tIOStatusRROR8R(RRPtlinesRQRRRRS((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt readlines s   cCsXt|ts!|jd}n|dkr<t|}n|j||\}}|S(NsUTF-8i(RRtencodeRIt write_chars(RRRtbuflenRQtwritten((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pytwrites  cCs"x|D]}|j|qWdS(N(R\(RRVtline((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt writelines"s iiicCsAy|j|}Wntk r0tdnX|j||S(Nsinvalid 'whence' value(t _whence_mapRt ValueErrort seek_position(Rtoffsettwhencetw((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pytseek(s  cOs+|jdtj}t|||||S(NR%(R7R RRE(RR@R5RRR%((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt add_watch/ssGLib.io_add_watch()cCs|S(N((R((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt__iter__5scCs8|j\}}}}|tjjkr.|StdS(N(ROR RURt StopIteration(RRQRRRRS((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt__next__8sN(RVRWR8RkRRNRTRWR\R^R tSeekTypetSETtCURtENDR_ReRfRRgRitnext(((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyR;s      -    tPollFDcBseZdZdZRS(cCstj}||_|S(N(R RoR(Rhtfdteventstpollfd((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRkFs  cCs||_||_dS(N(RpRq(RRpRq((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRKs (RVRWRkR(((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRoEs cOstg}t|rtjdt|}|}t|dkrX|jdtj}q3t|dkr|}|jdtj}q3t|dkr|dg}|d}q3tdnp|}|}d|kr|d}|}nEt|dkr't|dr'|d}|d}n tdd |krd|rTtd n|d g}n||||fS( NsHCalling child_watch_add without priority as first argument is deprecatediR%iis'expected at most 4 positional argumentsR0s#expected callback as third argumentR4s'got multiple values for "data" argument( R:RRRRIR7R RR9(tpriority_or_pidtpid_or_callbackR@RRtpidR5R%((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyt_child_watch_add_get_argsYs:       "    RvcOs1t||\}}}}tj||||S(s/child_watch_add(priority, pid, function, *data)(RvR tchild_watch_add(R@RR%RuR0R4((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRwsRwcCstjdS(Ngư>(R R(((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRssGLib.get_real_time()RcCstj||dS(Ni(R tfilename_from_utf8(t utf8stringRI((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyRxsRxRcGstjdttj|S(NsAGLib.unix_signal_add_full() was renamed to GLib.unix_signal_add()(RRRR R(R@((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pytadd_full_compats t glib_versions<(GLib.MAJOR_VERSION, GLib.MINOR_VERSION, GLib.MICRO_VERSION)tpyglib_versionsgi.version_info(WRRRR=tmoduleRt_giRRRRt overridesRRRtgiRR R t__all__R R Rtgi._giR Rt gi._errorRR R!R"R#R$RRRRVRWt __gtype__tmatchesRt new_literaltobjectR%RXRRRR(tattrtgetattrt UserDirectorytglobalsR9tIOFlagst IS_WRITABLERRUt SpawnFlagst OptionFlagst OptionErrortnametsplitRR RR)R+R/R1R2RDRER;RoRvRwRRxRsRzRt MAJOR_VERSIONt MINOR_VERSIONt MICRO_VERSIONR{R|(((s7/usr/lib64/python2.7/site-packages/gi/overrides/GLib.pyts     "                                -           *   M    &