ó ^9õUc@s“ddlZddlmZddlmZddlmZddlmZdZ dZ d Z d „Z d „Z d „Zd efd„ƒYZdS(iÿÿÿÿN(tparsei(tast(tCOMPATIBLE_GIR_VERSION(t OrderedDicts)http://www.gtk.org/introspection/core/1.0s&http://www.gtk.org/introspection/c/1.0s)http://www.gtk.org/introspection/glib/1.0cCsdt|fS(Ns{%s}%s(tCORE_NS(ttag((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt_corens"scCsdt|fS(Ns{%s}%s(tGLIB_NS(R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt_glibns&scCsdt|fS(Ns{%s}%s(tC_NS(R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt_cns*st GIRParsercBs+eZed„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d„Z d „Z d „Z d „Zd „Zd „Zd„Zd„Zd„Zdd„Zd„Zd„Zed„Zed„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"RS( cCs||_d|_g|_dS(N(t _types_onlytNonet _namespacet_filename_stack(tselft types_only((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt__init__0s  cCsLtjj|ƒ}|jj|ƒt|ƒ}|j|ƒ|jjƒdS(N(tostpathtabspathRtappendRt parse_treetpop(Rtfilenamettree((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyR7s   cCsMd|_tƒ|_tƒ|_tƒ|_d|_|j|jƒƒdS(N( R Rtsett_pkgconfig_packagest _includest _c_includest _c_prefixt _parse_apitgetroot(RR((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyR>s      cCs|jS(N(R(R((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt get_namespaceFscCsjt|tƒr<xT|jƒD]}|j|kr|SqWn*x'|jƒD]}|j|krI|SqIWdS(N(t isinstancetstrt getchildrenRR (Rtnodet name_or_namestchild((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt_find_first_childKs cCs,g|jƒD]}|j|kr |^q S(N(R%R(RR&tnameR(((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt_find_childrenVscCsN|js dStjƒtj}|jd}|j|ƒrJ|t|ƒS|S(Niÿÿÿÿ(RR Rtgetcwdtsept startswithtlen(Rtcwdtcurfile((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt_get_current_fileYs  c Csû|jtdƒkst‚|jd}|tkrVtd|jƒ|tfƒ‚nxƒ|jƒD]u}|jtdƒkrŽ|j|ƒqc|jtdƒkr³|j |ƒqc|jt dƒkrc|j |ƒqcqcW|j tdƒƒ}|dk st‚|jjt dƒƒ}|r3|jdƒ}n|jjt d ƒƒ}|rc|jdƒ}ntj|jd |jdd |d |ƒ|_d |jkrÀ|jd jdƒ|j_n|j|j_|j|j_|j|j_i |jtdƒ6|jtdƒ6|jtdƒ6|jtdƒ6|jtdƒ6|jtdƒ6|jtdƒ6|jtdƒ6|j t!dƒ6}|j"sµ|j#|tdƒ<|j$|tdƒtabstractt0t is_abstracts type-structt fundamentalsref-funcs unref-funcsset-value-funcsget-value-funct-t_t implementst prerequisiteRER`svirtual-methodtinvokert constructortpropertytsignal()RGRMRttype_from_nameR RR RRRt InterfacetClassRFRftglib_type_structtTrueR„t__dict__treplaceR RR+t interfacest prerequisitest_parse_function_commontFunctiontstatic_methodst is_methodtmethodst VFunctionR‰tvirtual_methodstis_constructort constructorstfieldstextendt _parse_fieldst propertiest_parse_propertytsignalstSignal(RR&R{R|t ctor_kwargstklassRƒRyt type_structtis_fundamentaltfunc_idt func_nametifacet func_nodetfuncR`tctortpropRŒ((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRWÙsz         ''    &cCs)|j|tjƒ}|jj|ƒdS(N(R–RtCallbackRR(RR&R=((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRVscCs)|j|tjƒ}|jj|ƒdS(N(R–RR—RR(RR&RE((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyR\#sc CsË|j|ƒ}tj|jjdƒ||jjdƒp?tj|jjdƒ|jjdƒdk|jjdƒdk|jjdƒdk|jjdƒ|jjd ƒdkƒ }|j||ƒ|S( NR*t directionstransfer-ownershiptnullablet1toptionals allow-nonetscopescaller-allocates(RdRt ParameterRGRMtPARAM_DIRECTION_INRf(RR&Rgtparam((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt_parse_parameter'scCs;|jd}|jtdƒƒ}|s>td|fƒ‚n|jjdƒ}|jjdƒdk}tj|j|ƒ||ƒ}|j||ƒg} |jjdƒdk} |tj krð|||| | |jjt dƒƒƒ} n|tj kr2|jjt d ƒƒ} |||| | | ƒ} nÕ|tj krY|||| | ƒ} n®|tj krû|||| d |jjd ƒd |jjd d ƒdkd|jjdd ƒdkd|jjdd ƒdkd|jjdd ƒdkƒ} n tst‚|jjddƒ| _|jjddƒ| _|jjddƒ| _|| _|jtdƒƒ} | dk r|j| tdƒƒ}|r¬|j|ƒ| _nx6|j| tdƒƒD]}| j|j|ƒƒqÅWxt|j| tdƒƒƒD]ö\}}| |}|j| ||jƒ|jjdƒ}|r•t|ƒ}|t| ƒks‚td|t| ƒfƒ‚| |j|_ n|jjdƒ}|rt|ƒ}|t| ƒksçtd|t| ƒfƒ‚| |j|_!qqWn|j| ||jƒ|j|| ƒ|j"j#| ƒ| S(NR*s return-valuesnode %r has no return-valuestransfer-ownershipR³R´tthrowsRct identifiertwhent no_recurses no-recurseR‚tdetailedtactiontno_hookssno-hookstshadowss shadowed-bysmoved-tot parameterssinstance-parametert parametertclosures%d >= %dtdestroy($RGRLRRpRMRtReturnRdRfR±R R—R›R¥RqRFR RÂt shadowed_bytmoved_toR{R)Rºtinstance_parameterR+Rt enumeratet_parse_type_array_lengthRcRoR/targnamet closure_namet destroy_nameRttrack(RR&R§R{R*t returnnodettransferR³tretvalRÃR»R®R¼tparameters_nodet paramnodetiR¹RÅtidxRÆ((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyR–5sn !     . .cCs|g}tdƒtdƒtdƒtdƒf}xE|jƒD]7}|j|kr=|j||ƒ}|j|ƒq=q=W|S(NtfieldRARBR=(RR%Rt _parse_fieldR(RR&RytrestnamesR(tfieldobj((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyR¡vs*c Cs2||jjdƒd|jjtdƒƒd|jjdƒdkd|jjtdƒƒd|jjtd ƒƒd |jjtd ƒƒƒ}|jjd ƒdkr´t|_n|j||ƒ|js.|jj |j ||ƒƒxQ|j |t d ƒƒD]7}|j |tj|ƒ}t|_|jj|ƒqWxRt|j |t dƒƒƒD]2\}}|j|}|j|j||jƒq\WxB|j |t dƒƒD](}|jj|j |tj|ƒƒq«WxT|j |t dƒƒD]7} |j | tj|ƒ}t|_|jj|ƒqðWn|S(NR*R€Rct disguisedR´R}s type-nameR~sget-typeRs symbol-prefixtforeignR`RØRERŠ(RGRMR RR‘RÞRfR RŸR R¡R+RR–RR—R™RšRRËRÌRcR˜RRž( RtclsR&tcompoundR`R®RÖt fieldnodeRØR¯((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt_parse_compounds4   +   cCsn|jtj|ƒ}|jjtdƒƒ}|dk rQ|jj|ƒ|_ n|sj|jj |ƒn|S(Nsis-gtype-struct-for( RâRtRecordRGRMRR RRtis_gtype_struct_forR(RR&t anonymouststructRä((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRX›s cCs2|jtj|ƒ}|s.|jj|ƒn|S(N(RâRtUnionRR(RR&RåRB((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRY¤scCs®|jtdƒkrM|jj|jdƒ}|jjtdƒƒ|_|S|jtdƒkr|jjdƒ}|j|ƒ}|jjtdƒƒ}t j ||d|ƒ}|jjdƒ}|rã|dkrãt |_ n|jjdƒ}|r t |ƒ|_n|S|jtd ƒkr0t jƒS|jtdƒkr˜|jjdƒ} |jjtdƒƒ} | dkr¡| dkr‘t jƒSt jd| ƒS| dkr|j|ttdƒƒ} | dk ræ|j|ƒ}n t j}t j| |d| ƒS| d kr‚|j|tdƒƒ} t|j| ƒ} x&t| ƒd krc| jt jƒq>Wt j| d| dd| ƒS|jj| | ƒSnt sªtdƒ‚dS(NR=R*RctarrayR€szero-terminatedR‚s fixed-sizetvarargss GLib.Lists GLib.SListsGLib.HashTableiiisFailed to parse inner type(s GLib.Lists GLib.SList(scallbacksarrayRéstype(RRRRRGRMR R€RdRtArrayRqtzeroterminatedRotsizetVarargsR t TypeUnknowntTypeR)tmaptTYPE_ANYtListR+t_parse_type_simpleR/RtMapRF(RttypenodeRgt array_typet element_typet array_ctypetrettzerot fixed_sizeR*R€tsubchildt subchildrentsubchildren_types((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRóªsR           cCsXx?ttdƒD].}|j|ƒ}|dk r|j|ƒSqWtsTtdƒ‚dS(NR=RèRéRcsFailed to parse toplevel type(scallbacksarraysvarargsstype(RðRRLR RóRqRF(RR&R*Rõ((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRdÜs  cCsÀ|jtdƒƒ}|dkr%dS|jjdƒ}|dk r¼t|ƒ}|t|ƒks€tdt|t|ƒfƒ‚t ||t j ƒr©||j |_ q¼||j|_ ndS(sYA hack necessary to handle the integer parameter/field indexes on array types.RèNtlengths %r %d >= %d(RLRR RGRMRoR/RFR{R#RtFieldR*tlength_param_nameRÍ(RtsiblingsR&RgRõtlenidxR×((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRÌãs   1c Csytj|jtdƒd|jtdƒd|jtdƒd|jjtdƒƒƒ}|j||ƒ|jr‡|jj |ƒdSxQ|j |t dƒƒD]7}|j |tj |ƒ}t|_|jj |ƒq WxB|j |t d ƒƒD](}|jj |j |tj |ƒƒqôWxB|j |t d ƒƒD](}|jj |j |tj|ƒƒq9W|jj |ƒdS( NR*R}s type-nameR~sget-typeRs symbol-prefixR`RŠR=(RtBoxedRGRRMR RfR RRR+RR–R—R‘R™RšRžRŸR±(RR&RyR`R®R¯R=((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRZòs&    cCs¸d}d}|jttdƒkr-|}n|j|tdƒƒ}|dk rð|jtdƒkr~|j|tjƒ}q#|jtdƒkr«|j|dt ƒ}q#|jtdƒkrØ|j |dt ƒ}q#t s#t |jƒ‚n3|jtdƒkst |jƒ‚|j |ƒ}tj|jjdƒ||jjdƒdk|jjd ƒd k|jjd ƒd |ƒ}|jjd ƒd k|_||_|j||ƒ|S(NRARBR=RåRØR*treadableR‚twritableR´tbitstanonymous_nodetprivate(srecordsunion(R RRðRR)R–RR±RXR‘RYRqRFRdRRGRMR R{Rf(RR&R{t type_nodeRt anonymous_eltRØ((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRÙ s2  $  c Cs¢tj|jd|j|ƒ|jjdƒdk|jjdƒdk|jjdƒdk|jjdƒdk|jjdƒƒ}|j||ƒ||_|S( NR*RR‚RR´t constructsconstruct-onlystransfer-ownership(RtPropertyRGRdRMRfR{(RR&R{R°((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyR£'s  cCs^tj|jd|jd|jjtdƒƒ|jjtdƒƒƒ}|j||ƒ|S(NR*RmR¼tnick(RtMemberRGRMR RRf(RR&tmember((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyt _parse_member3s  cCsk|j|ƒ}tj|jd||jd|jjtdƒƒƒ}|j||ƒ|jj|ƒdS(NR*RmRc( RdRtConstantRGRMR RfRR(RR&R RD((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyR[;s c Cs¯|jjdƒ}|jjtdƒƒ}|jjtdƒƒ}|jjtdƒƒ}|jjtdƒƒ}|jtdƒkr“tj}n tj}g}|||d|d|d |ƒ} || _ || _ |j || ƒ|j r|j j| ƒdSxE|j|td ƒƒD]+} |j| ƒ} | | _|j| ƒqWxN|j|td ƒƒD]4} |j| tjƒ} | | _| jj| ƒqcW|j j| ƒdS( NR*Rcsget-types type-names error-domainR<tmembersR}R~RRE(RGRMR RRRRtBitfieldtEnumt error_domainR€RfR RRR+RR{R–R—R˜(RR&R*R€R~t type_nametglib_error_domainR§RRyt member_nodeRR­R®((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyRUDs8         N(#t__name__t __module__RqRRRR"R)R+R2R RIRJRKRTRfRWRVR\RºR R–R¡RâRXRYRóRdRÌRZRÙR£RR[RU(((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyR .s>      5     2 F    A   2      (Rtxml.etree.cElementTreeRtRt girwriterRt collectionsRRR RRRR tobjectR (((ss/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/girparser.pyts