ó ¡Å2Yc@àsddlmZddlmZddlmZddlmZddlmZddlmZddlm Z d Z d e fd „ƒYZ d S( i(twith_statement(tabsolute_import(tdivision(tprint_function(tunicode_literalsi(tast(t XMLWriteru1.2t GIRWritercBàsjeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd d„Zd„Zd„Zd„Zd'd„Zd„Zdd„Zd„Zd„Zd'd'd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d „Z!d!„Z"d"„Z#gd#„Z$d$„Z%e&d%„Z'd&„Z(RS((cCàs1tt|ƒjƒ|jdƒ|j|ƒdS(NuªThis file was automatically generated from C sources - DO NOT EDIT! To affect the contents of this file, edit the original C definitions, and/or use gtk-doc annotations. (tsuperRt__init__t write_commentt_write_repository(tselft namespace((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR &scCàsÕdtfd d d g}|jd|ƒ¥x$t|jƒD]}|j|ƒq;Wx*tt|jƒƒD]}|j|ƒqhWx*tt|jƒƒD]}|j |ƒq•W||_ |j |ƒd|_ WdQXdS( Nuversionuxmlnsu)http://www.gtk.org/introspection/core/1.0uxmlns:cu&http://www.gtk.org/introspection/c/1.0u xmlns:glibu)http://www.gtk.org/introspection/glib/1.0u repository(uxmlnsu)http://www.gtk.org/introspection/core/1.0(uxmlns:cu&http://www.gtk.org/introspection/c/1.0(u xmlns:glibu)http://www.gtk.org/introspection/glib/1.0( tCOMPATIBLE_GIR_VERSIONt tagcontexttsortedtincludest_write_includetsettexported_packagest_write_pkgconfig_pkgt c_includest_write_c_includet _namespacet_write_namespacetNone(R R tattrstincludetpkgt c_include((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR .s    cCàs2d|jfd|jfg}|jd|ƒdS(Nunameuversionuinclude(tnametversiont write_tag(R RR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR?scCàs#d|fg}|jd|ƒdS(Nunameupackage(R!(R tpackageR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyRCscCàs#d|fg}|jd|ƒdS(Nunameu c:include(R!(R RR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyRGscCàs³d|jfd|jfddj|jƒfddj|jƒfddj|jƒfg}|jd|ƒ>d„}x-t|jƒd |ƒD]}|j |ƒq’WWdQXdS( Nunameuversionushared-libraryu,uc:identifier-prefixesuc:symbol-prefixesu namespacecSàs*t|tjƒrd|fSd|fSdS(Nii(t isinstanceRtAlias(tval((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pytnscmpUs tkey( RR tjointshared_librariestidentifier_prefixestsymbol_prefixesRRtvaluest _write_node(R R RR&tnode((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyRKs   cCàsƒt|tjƒr"|j|ƒn]t|tjƒrD|j|ƒn;t|tjƒrf|j|ƒnt|tjtj fƒr‘|j |ƒnît|tj ƒr³|j |ƒnÌt|tj ƒrÕ|j|ƒnªt|tjƒr÷|j|ƒnˆt|tjƒr|j|ƒnft|tjƒr.nQt|tjƒrP|j|ƒn/t|tjƒrr|j|ƒn td|ƒdS(NuWRITER: Unhandled node(R#RtFunctiont_write_functiontEnumt _write_enumtBitfieldt_write_bitfieldtClasst Interfacet _write_classtCallbackt_write_callbacktRecordt _write_recordtUniont _write_uniontBoxedt _write_boxedtMemberR$t _write_aliastConstantt_write_constanttprint(R R.((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR-]s.cCàs&|jr"|jd|jfƒndS(Nuversion(R tappend(R R.R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyt_append_versionxs cCàsx?|jjƒD].\}}|jdd|fd|fgƒqWt|dƒrv|jrv|jdd g|jƒnt|dƒrª|jrª|jddg|jƒnt|d ƒrÞ|jrÞ|jd dg|jƒnt|d ƒr|jr|jd dg|jƒndS(Nu attributeunameuvalueudocu xml:spaceupreserveu version_docu doc-versionudeprecated_docudoc-deprecatedu stability_docu doc-stability(u xml:spaceupreserve(u xml:spaceupreserve(u xml:spaceupreserve(u xml:spaceupreserve(t attributestitemsR!thasattrtdoct version_doctdeprecated_doct stability_doc(R R.R'tvalue((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyt_write_generic|s&   cCàs|js|j r#|jdƒn|js5|jrE|jdƒn|jrg|jd|jfƒn|jr‰|jd|jfƒndS( Nuintrospectableu0u deprecatedu1udeprecated-versionu stability(uintrospectableu0(u deprecatedu1(tskiptintrospectableREt deprecatedRLt stability(R R.R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyt_append_node_generics  cCàs|jr|jdƒndS(Nuthrowsu1(uthrowsu1(tthrowsRE(R tfuncR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyt_append_throws¡s cCàs„d|jfg}|jdk r:|jd|jfƒn|j||ƒ|jd|ƒ"|j|ƒ|j|jƒWdQXdS(Nunameuc:typeualias( RtctypeRRERTRROt_write_type_refttarget(R taliasR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyRA¥s cCàsœd|jfg}|j|ƒ|j||ƒ|j||ƒ|j||ƒ|j||ƒ5|j|ƒ|j|jd|ƒ|j |ƒWdQXdS(Nunametparent( RtextendRFRTRWRROt_write_return_typetretvalt_write_parameters(R tcallablettag_namet extra_attrsR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyt_write_callable®s  ufunctioncCàs¾|jr dSg}t|dƒr;|jd|jfƒn|jr]|jd|jfƒn"|jr|jd|jfƒn|jdk r§|jd|jfƒn|j|||ƒdS(Nusymbolu c:identifieru shadowed-byushadowsumoved-to( tinternal_skippedRIREtsymbolt shadowed_bytshadowstmoved_toRRd(R RVRbR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR0¹s   cCàs|j|ddƒdS(NRbumethod(R0(R tmethod((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyt _write_methodÇscCàs|j|ddƒdS(NRbufunction(R0(R Rj((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyt_write_static_methodÊscCàs|j|ddƒdS(NRbu constructor(R0(R Rj((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyt_write_constructorÍscCàs®|s dSg}|jr2|jd|jfƒn|jrK|jdƒn|jrn|j rn|jdƒn|jd|ƒ(|j|ƒ|j|jd|ƒWdQXdS( Nutransfer-ownershipuskipu1unullableu return-valueR\(uskipu1(unullableu1( ttransferRERPtnullablet not_nullableRROt _write_typettype(R treturn_R\R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR^Ðs   cCàs}|j r|jdkrdS|jdƒK|jrO|j||jdƒnx!|jD]}|j||ƒqYWWdQXdS(Nu parametersuinstance-parameter(t parameterstinstance_parameterRRt_write_parameter(R Rat parameter((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR`ßs u parametercCàs g}|jdk r.|jd|jfƒn|jdk r‡|jdkr‡|jd|jfƒ|jd|jrzdndfƒn|jr©|jd|jfƒn|jrî|j rî|jdƒ|jtj krî|jdƒqîn|j r)|jdƒ|jtj kr)|jdƒq)n|j rK|jd |j fƒn|j dk r‰|j |j ƒ}|jd d |ffƒn|jdk rÇ|j |jƒ}|jdd |ffƒn|jrà|jdƒn|j||ƒ(|j|ƒ|j|jd|ƒWdQXdS(Nunameuinu directionucaller-allocatesu1u0utransfer-ownershipunullableu allow-noneuoptionaluscopeuclosureu%dudestroyuskipR\(unullableu1(u allow-noneu1(uoptionalu1(u allow-noneu1(uskipu1(targnameRREt directiontcaller_allocatesRnRoRpRtPARAM_DIRECTION_OUTtoptionaltscopet closure_nametget_parameter_indext destroy_nameRPRRORqRr(R R\RwtnodenameRtidx((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyRvès>         cCàst|js%td||jfƒ‚n|jdk s:t‚|jjd}|jj|ƒrm|jt|ƒS|jS(Nu$Caught unresolved type %r (ctype=%r)u.( tresolvedtAssertionErrorRXt target_ginameRRRt startswithtlen(R ttypevaltprefix((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyt _type_to_name s cCàsXt|tjƒst|ƒ‚g}|jrO|jd|jpE|jfƒnt|tjƒr•|jtjj krD|j dd|jfƒqDn¯t|tj ƒrÏ|j rD|j dd|j fƒqDnut|tj ƒrô|j ddƒnP|jr|j dd|j|ƒfƒn%|jrD|j dd|jfƒn|jd|ƒdS(uN Like _write_type, but only writes the type name rather than the full details uc:typeiunameuGLib.HashTableutypeN(unameuGLib.HashTable(R#RtTypeR„RXREtcomplete_ctypetArrayt array_typetCtinserttListRtMapR…RŠttarget_fundamentalR!(R tntypeR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyRYs" "  " cCàsUt|tjƒst|ƒ‚g}|jrF|jd|jfƒn"|jrh|jd|jfƒnt|tjƒr|jdgƒnÄt|tj ƒr|j tj j krÐ|j dd|j fƒn|j sì|j ddƒn:|j r&|jdk s|jdk r&|j ddƒn|jdk rU|jdd |jffƒn|jdk rèt|tjƒr‹|j|jƒ}n=t|tjƒr²|j|jƒ}ntsÈtd |ƒ‚|j dd d |ffƒn|jd |ƒ|j|jƒWdQXn=t|tjƒrw|jrK|j dd|jfƒn|jd |ƒ|j|jƒWdQXnÚt|tjƒrÕ|j ddƒ|jd |ƒ%|j|jƒ|j|jƒWdQXn||jr|j dd|j|ƒfƒnA|j r%|j dd|j fƒn|j!rA|j ddƒn|jd |ƒdS(Nuc:typeuvarargsiunameuzero-terminatedu0u1u fixed-sizeu%du%parent not a callable or compound: %rulengthuarrayutypeuGLib.HashTableuforeign(uzero-terminatedu0(uzero-terminatedu1(unameuGLib.HashTable(uforeignu1("R#RR‹R„RŒRERXtVarargsR!RRŽRRtzeroterminatedtsizeRtlength_param_nametCallableRtCompoundtget_field_indextFalseRRqt element_typeR‘RR’tkey_typet value_typeR…RŠR“ttarget_foreign(R R”trelationR\Rtlength((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyRq(sX        "  cCàsMt|tjƒst‚|jrI|jd|jfd|jfgƒndS(Nuglib:type-nameu glib:get-type(R#Rt RegisteredR„tget_typeR]t gtype_name(R R.R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyt_append_registered^s cCàsìd|jfg}|j||ƒ|j||ƒ|j||ƒ|jd|jfƒ|jrz|jd|jfƒn|jd|ƒZ|j|ƒx|j D]}|j |ƒq¤Wx$t |j ƒD]}|j |ƒqËWWdQXdS(Nunameuc:typeuglib:error-domainu enumeration(RRFRTR¦RERXt error_domainRROtmemberst _write_memberRtstatic_methodsRl(R tenumRtmemberRj((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR2ds  cCàsÊd|jfg}|j||ƒ|j||ƒ|j||ƒ|jd|jfƒ|jd|ƒZ|j|ƒx|jD]}|j |ƒq‚Wx$t |j ƒD]}|j |ƒq©WWdQXdS(Nunameuc:typeubitfield( RRFRTR¦RERXRROR¨R©RRªRl(R tbitfieldRR¬Rj((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR4ts cCàs‚d|jfdt|jƒfd|jfg}|jdk rX|jd|jfƒn|jd|ƒ|j|ƒWdQXdS(Nunameuvalueu c:identifieru glib:nickumember( RtstrRNRftnickRRERRO(R R¬R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR©s cCàs„d|jfd|jfd|jfg}|j||ƒ|j||ƒ|jd|ƒ"|j|ƒ|j|jƒWdQXdS(Nunameuvalueuc:typeuconstant( RRNRXRFRTRRORqRŸ(R tconstantR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyRCŠs   c Càsád|jfd|jfd|jfg}|j||ƒ|j||ƒt|tjƒr¯d}|jdk r“|j d|j |jƒfƒn|j rÍ|j dƒqÍnt|tj ƒsÇt‚d}|j d |jfƒ|jdk r |j d |jfƒn|jdk r<|j d |j |jƒfƒnt|tjƒrò|jrg|j dƒn|jr‰|j d |jfƒn|jr«|j d|jfƒn|jrÍ|j d|jfƒn|jrò|j d|jfƒqòn|j||ƒ×|j|ƒt|tjƒrcx<t|jƒD](}|jdd|j |ƒfgƒq4Wnt|tj ƒr´x<t|jƒD](}|jdd|j |ƒfgƒq…Wnt|tjƒrðx't|jƒD]}|j|ƒqÖWnx$t|jƒD]}|j |ƒqWx$t|j!ƒD]}|j"|ƒq'Wx$t|j#ƒD]}|j$|ƒqNWx$t|j%ƒD]}|j&|ƒquWx!|j'D]}|j(||ƒq–Wx$t|j)ƒD]} |j*| ƒqÀWWdQXdS(Nunameuc:symbol-prefixuc:typeuclassuparentuabstractu1u interfaceuglib:type-nameu glib:get-typeuglib:type-structuglib:fundamentalu glib:ref-funcuglib:unref-funcuglib:set-value-funcuglib:get-value-funcu implementsu prerequisite(uabstractu1(uglib:fundamentalu1(+Rtc_symbol_prefixRXRFRTR#RR5t parent_typeRRERŠt is_abstractR6R„R¥R¤tglib_type_structt fundamentaltref_funct unref_functset_value_functget_value_funcRRORt interfacesR!t prerequisitest constructorsRmRªRltvirtual_methodst _write_vfunctmethodsRkt propertiest_write_propertytfieldst _write_fieldtsignalst _write_signal( R R.RRbtifaceRjtvfunctproptfieldtsignal((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR7”sp               cCàséd|jfg}|jdk r:|jd|jfƒn|j||ƒ|jd|ƒ‡|j|ƒx$t|jƒD]}|j |ƒqzWx$t|j ƒD]}|j |ƒq¡Wx$t|j ƒD]}|j |ƒqÈWWdQXdS(Nu glib:nameuc:symbol-prefixu glib:boxed(RR±RRER¦RRORR¼RmR¿RkRªRl(R tboxedRRj((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR?Ïs cCàsòd|jfg}|j||ƒ|j||ƒ|jsK|jd ƒn|jrd|jd ƒn|jr}|jd ƒn|jr–|jd ƒn|jr¸|jd|jfƒn|j d |ƒ"|j |ƒ|j |j ƒWdQXdS(Nunameureadableu0uwritableu1u constructuconstruct-onlyutransfer-ownershipuproperty(ureadableu0(uwritableu1(u constructu1(uconstruct-onlyu1( RRFRTtreadableREtwritablet constructtconstruct_onlyRnRRORqRr(R RÈR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyRÁÝs       cCàs?g}|jr(|jd|jfƒn|j|d|ƒdS(Nuinvokeruvirtual-method(tinvokerRERd(R tvfR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR¾ðs cCàsHg}|j|jkr1|jd|jfƒn|j|d|ƒdS(Nuc:typeucallback(RXRRERd(R tcallbackR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR9ösc Càsït}t|ƒ}|jdk r:|jd|jfƒn|jdk rb|jd|jfƒn|jr{|jd ƒn|jr”|jd ƒn|jdk rËt }|jd|j |jƒfƒn|j ||ƒ|j ||ƒ|j ||ƒ|jr|jd|jfƒn|jd|ƒº|j|ƒ|jrpx'|jD]}|j|||ƒqPWnx$t|jƒD]}|j|ƒq€Wx$t|jƒD]}|j|ƒq§Wx$t|jƒD]}|j|ƒqÎWWdQXdS( Nunameuc:typeu disguisedu1uforeignuglib:is-gtype-struct-foruc:symbol-prefixurecord(u disguisedu1(uforeignu1(RœtlistRRRERXt disguisedtforeigntis_gtype_struct_fortTrueRŠRFRTR¦R±RRORÂRÃRR¼RmR¿RkRªRl(R trecordRctis_gtype_structRRÉRj((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR;üs<       cCàswg}|jdk r.|jd|jfƒn|jdk rV|jd|jfƒn|j||ƒ|j||ƒ|j||ƒ|jr¨|jd|jfƒn|jd|ƒ·|j |ƒ|j røx$|j D]}|j ||ƒqÛWnx$t |j ƒD]}|j|ƒqWx$t |jƒD]}|j|ƒq/Wx$t |jƒD]}|j|ƒqVWWdQXdS(Nunameuc:typeuc:symbol-prefixuunion(RRRERXRFRTR¦R±RRORÂRÃRR¼RmR¿RkRªRl(R tunionRRÉRj((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR=s*   cCàsª|jrÕt|jtjƒrld|jfg}|j||ƒ|jd|ƒ|j|jƒWdQXq¦t|jtjƒr”|j |jƒq¦t|jtj ƒr¼|j |jƒq¦t d|jfƒ‚nÑd|jfg}|j||ƒ|j s|jd ƒn|jr)|jd ƒn|jrQ|jdt|jƒfƒn|jrj|jd ƒn|jd|ƒ(|j|ƒ|j|jd |ƒWdQXdS(NunameufielduUnknown field anonymous: %rureadableu0uwritableu1ubitsuprivateR\(ureadableu0(uwritableu1(uprivateu1(tanonymous_nodeR#RR8RRTRR9R:R;R<R=R„RÌRERÍtbitsR®tprivateRORqRr(R RÉR\RÙR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyRÃ3s0      cCàsÿd|jfg}|jr4|jd|jfƒn|jrM|jd ƒn|jrf|jd ƒn|jr|jd ƒn|jr˜|jd ƒn|j||ƒ|j||ƒ|j d|ƒ/|j |ƒ|j |j ƒ|j |ƒWdQXdS( Nunameuwhenu no-recurseu1udetaileduactionuno-hooksu glib:signal(u no-recurseu1(udetailedu1(uactionu1(uno-hooksu1(RtwhenREt no_recursetdetailedtactiontno_hooksRFRTRROR^R_R`(R RÊR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyRÅQs"      N()t__name__t __module__R R RRRRR-RFRORTRWRARdR0RkRlRmRR^R`RvRŠRYRqR¦R2R4R©RCR7R?RÁR¾R9R;R=RœRÃRÅ(((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR$sJ                 ! 6   ;      N( t __future__RRRRRtRt xmlwriterRRR(((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyts