ó /ˆÁZc@à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((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR .s    cCàs2d|jfd|jfg}|jd|ƒdS(Nunameuversionuinclude(tnametversiont write_tag(R RR((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR?scCàs#d|fg}|jd|ƒdS(Nunameupackage(R!(R tpackageR((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyRCscCàs#d|fg}|jd|ƒdS(Nunameu c:include(R!(R RR((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pytnscmpUs tkey( RR tjointshared_librariestidentifier_prefixestsymbol_prefixesRRtvaluest _write_node(R R RR&tnode((sm/home/vagrant/ruby-gnome2/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.((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR-]s.cCàs&|jr"|jd|jfƒndS(Nuversion(R tappend(R R.R((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyt_append_node_generics  cCàs|jr|jdƒndS(Nuthrowsu1(uthrowsu1(tthrowsRE(R tfuncR((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR0¹s   cCàs|j|ddƒdS(NRbumethod(R0(R tmethod((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyt _write_methodÇscCàs|j|ddƒdS(NRbufunction(R0(R Rj((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyt_write_static_methodÊscCàs|j|ddƒdS(NRbu constructor(R0(R Rj((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyRvès>         cCàs_|js%td||jfƒ‚n|jjd}|jj|ƒrX|jt|ƒS|jS(Nu$Caught unresolved type %r (ctype=%r)u.(tresolvedtAssertionErrorRXRRt target_ginamet startswithtlen(R ttypevaltprefix((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyt _type_to_name s  cCàs:g}|jr1|jd|jp'|jfƒnt|tjƒrw|jtjjkr&|jdd|jfƒq&n¯t|tj ƒr±|j r&|jdd|j fƒq&nut|tj ƒrÖ|jddƒnP|j r|jdd|j |ƒfƒn%|jr&|jdd|jfƒn|jd|ƒdS(uN Like _write_type, but only writes the type name rather than the full details uc:typeiunameuGLib.HashTableutypeN(unameuGLib.HashTable(RXREtcomplete_ctypeR#RtArrayt array_typetCtinserttListRtMapR…RŠttarget_fundamentalR!(R tntypeR((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyRYs  "  " cCàs!g}|jr(|jd|jfƒn"|jrJ|jd|jfƒnt|tjƒro|jdgƒn®t|tjƒrà|jtjj kr²|j dd|jfƒn|j sÎ|j ddƒn:|j r|j dk sõ|jdk r|j ddƒn|j dk r7|jdd |j ffƒn|jdk r´t|tjƒrm|j|jƒ}n't|tjƒr”|j|jƒ}n|j dd d |ffƒn|jd |ƒ|j|jƒWdQXn=t|tjƒrC|jr|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|jrñ|j dd|jfƒn|jr |j ddƒn|jd |ƒdS(Nuc:typeuvarargsiunameuzero-terminatedu0u1u fixed-sizeu%dulengthuarrayutypeuGLib.HashTableuforeign(uzero-terminatedu0(uzero-terminatedu1(unameuGLib.HashTable(uforeignu1(R‹RERXR#RtVarargsR!RŒRRŽRtzeroterminatedtsizeRtlength_param_nametCallableRtCompoundtget_field_indexRRqt element_typeRRR‘tkey_typet value_typeR…RŠR’ttarget_foreign(R R“trelationR\Rtlength((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyRq(sT        "  cCàs5|jr1|jd|jfd|jfgƒndS(Nuglib:type-nameu glib:get-type(tget_typeR]t gtype_name(R R.R((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/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µnd}|j d |j fƒ|jdk ró|j d |jfƒn|jdk r$|j d |j |jƒfƒnt|tjƒrÚ|jrO|j dƒn|jrq|j d |jfƒn|jr“|j d|jfƒn|jrµ|j d|jfƒn|jrÚ|j d|jfƒqÚn|j||ƒ×|j|ƒt|tjƒrKx<t|jƒD](}|jdd|j |ƒfgƒqWnt|tjƒrœx<t|jƒD](}|jdd|j |ƒfgƒqmWnt|tjƒrØx't|jƒD]}|j|ƒq¾Wnx$t|jƒD]}|j|ƒqèWx$t|j ƒD]}|j!|ƒqWx$t|j"ƒD]}|j#|ƒq6Wx$t|j$ƒD]}|j%|ƒq]Wx!|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_abstractR¢R¡tglib_type_structt fundamentaltref_funct unref_functset_value_functget_value_funcRRORt interfacesR!R6t prerequisitest constructorsRmR§Rltvirtual_methodst _write_vfunctmethodsRkt propertiest_write_propertytfieldst _write_fieldtsignalst _write_signal( R R.RRbtifaceRjtvfunctproptfieldtsignal((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR7”sn               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((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/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(tFalsetlistRRRERXt disguisedtforeigntis_gtype_struct_fortTrueRŠRFRTR£R®RROR¿RÀRR¹RmR¼RkR§Rl(R trecordRctis_gtype_structRRÆRj((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/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((sm/home/vagrant/ruby-gnome2/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Â(((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyR$sJ                 ! 6   ;      N( t __future__RRRRRtRt xmlwriterRRR(((sm/home/vagrant/ruby-gnome2/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyts