403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/pygobject/2.0/codegen/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/pygobject/2.0/codegen/codegen.pyo
VJc@sddkZddkZddkZddkZddkZddkZddkZddkZddkZddk	Z	ddk
Z
defdYZedZ
edZedZedZedZd	Zd
ZdfdYZd
fdYZdefdYZdefdYZdefdYZdefdYZdfdYZhadZdZdZdZdZ e!djoei"e ei#ndS(iNtCoveragecBs,eZdZdZdZdZRS(cCs||_d|_d|_dS(Ni(tnametwrappedtnot_wrapped(tselfR((s+/usr/share/pygobject/2.0/codegen/codegen.pyt__init__s		cCs|id7_dS(Ni(R(R((s+/usr/share/pygobject/2.0/codegen/codegen.pytdeclare_wrappedscCs|id7_dS(Ni(R(R((s+/usr/share/pygobject/2.0/codegen/codegen.pytdeclare_not_wrappedscCsp|i|i}ti}|o8|id|it|id||i|fn|id|idS(Ns0***INFO*** The coverage of %s is %.2f%% (%i/%i)
ids%***INFO*** There are no declared %s.
(RRtsyststderrtwriteRtfloat(Rttotaltfd((s+/usr/share/pygobject/2.0/codegen/codegen.pyt
printstatss		(t__name__t
__module__RRRR(((s+/usr/share/pygobject/2.0/codegen/codegen.pyRs			sglobal functionstmethodssvirtual proxiessvirtual accessorssinterface proxiescCsytidtddti\}}}d}z7t|}|tijod|f}n|}Wd~~~X|S(Nt
deprecatedt
stacklevelitsNo ArgType for %s(twarningstwarntDeprecationWarningRtexc_infotstrtargtypestArgTypeError(tetypetvaluettbtrettsval((s+/usr/share/pygobject/2.0/codegen/codegen.pyR.s

cCsti|o	|dS|S(Nt_(tkeywordt	iskeyword(R((s+/usr/share/pygobject/2.0/codegen/codegen.pytfixname=s	t
FileOutputcBsPeZdZddZdZdZdZdZdZ	dZ
RS(	sOSimple wrapper for file object, that makes writing #line
    statements easier.cCs9||_d|_|o
||_n|ii|_dS(Ni(tfptlinenotfilenameR(RR&R(((s+/usr/share/pygobject/2.0/codegen/codegen.pyREs
		
cCs0|ii||iti|d|_dS(Ns
(R&R
R'tstringtcount(RR((s+/usr/share/pygobject/2.0/codegen/codegen.pyR
MscCs"x|D]}|i|qWdS(N(R
(Rtsequencetline((s+/usr/share/pygobject/2.0/codegen/codegen.pyt
writelinesPscCs|iidS(N(R&tclose(R((s+/usr/share/pygobject/2.0/codegen/codegen.pyR.SscCs|iidS(N(R&tflush(R((s+/usr/share/pygobject/2.0/codegen/codegen.pyR/UscCs|id||fdS(sDwrites out a #line statement, for use by the C
        preprocessor.s#line %d "%s"
N(R
(RtlinenumR(((s+/usr/share/pygobject/2.0/codegen/codegen.pytsetlineXscCs|i|id|idS(s*resets line numbering to the original fileiN(R1R'R((R((s+/usr/share/pygobject/2.0/codegen/codegen.pyt	resetline\sN(RRt__doc__tNoneRR
R-R.R/R1R2(((s+/usr/share/pygobject/2.0/codegen/codegen.pyR%Bs					tWrappercBs|eZdZddddddddd	d
ddd
dddddddddddddddgZdZdZdZd Zd!Zd"Z	d#Z
d;Zd;Z
eeid$Zd%Zd&Zd'Zd(Zd)Zd*Zd+d+d+d;d,Zd-Zd.Zd/Zd0Zd1Zd2Zd3Zd4Z d5Z!d6Z"d7Z#d8Z$d9Z%d:Z&RS(<s:	PyTypeObject G_GNUC_INTERNAL Py%(typename)s_Type = {
    PyObject_HEAD_INIT(NULL)
    0,                                 /* ob_size */
    "%(classname)s",                   /* tp_name */
    sizeof(%(tp_basicsize)s),          /* tp_basicsize */
    0,                                 /* tp_itemsize */
    /* methods */
    (destructor)%(tp_dealloc)s,        /* tp_dealloc */
    (printfunc)0,                      /* tp_print */
    (getattrfunc)%(tp_getattr)s,       /* tp_getattr */
    (setattrfunc)%(tp_setattr)s,       /* tp_setattr */
    (cmpfunc)%(tp_compare)s,           /* tp_compare */
    (reprfunc)%(tp_repr)s,             /* tp_repr */
    (PyNumberMethods*)%(tp_as_number)s,     /* tp_as_number */
    (PySequenceMethods*)%(tp_as_sequence)s, /* tp_as_sequence */
    (PyMappingMethods*)%(tp_as_mapping)s,   /* tp_as_mapping */
    (hashfunc)%(tp_hash)s,             /* tp_hash */
    (ternaryfunc)%(tp_call)s,          /* tp_call */
    (reprfunc)%(tp_str)s,              /* tp_str */
    (getattrofunc)%(tp_getattro)s,     /* tp_getattro */
    (setattrofunc)%(tp_setattro)s,     /* tp_setattro */
    (PyBufferProcs*)%(tp_as_buffer)s,  /* tp_as_buffer */
    %(tp_flags)s,                      /* tp_flags */
    %(tp_doc)s,                        /* Documentation string */
    (traverseproc)%(tp_traverse)s,     /* tp_traverse */
    (inquiry)%(tp_clear)s,             /* tp_clear */
    (richcmpfunc)%(tp_richcompare)s,   /* tp_richcompare */
    %(tp_weaklistoffset)s,             /* tp_weaklistoffset */
    (getiterfunc)%(tp_iter)s,          /* tp_iter */
    (iternextfunc)%(tp_iternext)s,     /* tp_iternext */
    (struct PyMethodDef*)%(tp_methods)s, /* tp_methods */
    (struct PyMemberDef*)0,              /* tp_members */
    (struct PyGetSetDef*)%(tp_getset)s,  /* tp_getset */
    NULL,                              /* tp_base */
    NULL,                              /* tp_dict */
    (descrgetfunc)%(tp_descr_get)s,    /* tp_descr_get */
    (descrsetfunc)%(tp_descr_set)s,    /* tp_descr_set */
    %(tp_dictoffset)s,                 /* tp_dictoffset */
    (initproc)%(tp_init)s,             /* tp_init */
    (allocfunc)%(tp_alloc)s,           /* tp_alloc */
    (newfunc)%(tp_new)s,               /* tp_new */
    (freefunc)%(tp_free)s,             /* tp_free */
    (inquiry)%(tp_is_gc)s              /* tp_is_gc */
};

t
tp_getattrt
tp_setattrttp_getattrottp_setattrot
tp_comparettp_reprttp_as_numberttp_as_sequencet
tp_as_mappingttp_hashttp_callttp_strttp_as_bufferttp_richcomparettp_iterttp_iternextttp_descr_getttp_descr_setttp_initttp_allocttp_newttp_freettp_is_gcttp_traversettp_cleart
tp_deallocttp_flagsttp_docsqstatic PyObject *
%(funcname)s(PyObject *self, void *closure)
{
%(varlist)s    ret = %(field)s;
%(codeafter)s
}

sz    if (!PyArg_ParseTupleAndKeywords(args, kwargs,"%(typecodes)s:%(name)s"%(parselist)s))
        return %(errorreturn)s;
sh    if (PyErr_Warn(PyExc_DeprecationWarning, "%(deprecationmsg)s") < 0)
        return %(errorreturn)s;
sL    { "%(name)s", (PyCFunction)%(cname)s, %(flags)s,
      %(docstring)s },
s
static int
pygobject_no_constructor(PyObject *self, PyObject *args, PyObject *kwargs)
{
    gchar buf[512];

    g_snprintf(buf, sizeof(buf), "%s is an abstract widget", self->ob_type->tp_name);
    PyErr_SetString(PyExc_NotImplementedError, buf);
    return -1;
}

sstatic PyObject *
_wrap_%(cname)s(PyObject *self%(extraparams)s)
{
%(varlist)s%(parseargs)s%(codebefore)s    %(begin_allow_threads)s
    %(setreturn)s%(cname)s(%(arglist)s);
    %(end_allow_threads)s
%(codeafter)s
}

sstatic PyObject *
_wrap_%(cname)s(PyObject *cls%(extraparams)s)
{
    gpointer klass;
%(varlist)s%(parseargs)s%(codebefore)s    klass = g_type_class_ref(pyg_type_from_object(cls));
    if (%(class_cast_macro)s(klass)->%(virtual)s)
        %(setreturn)s%(class_cast_macro)s(klass)->%(virtual)s(%(arglist)s);
    else {
        PyErr_SetString(PyExc_NotImplementedError, "virtual method %(name)s not implemented");
        g_type_class_unref(klass);
        return NULL;
    }
    g_type_class_unref(klass);
%(codeafter)s
}

cCs(||_||_||_||_dS(N(tparsertobjinfot	overridesR&(RRRRSRTR&((s+/usr/share/pygobject/2.0/codegen/codegen.pyRs			cCs%titi|iidddS(Nt_TYPE_R!i(R)tlowertreplaceRSttypecode(R((s+/usr/share/pygobject/2.0/codegen/codegen.pytget_lower_namescCs
tdS(N(tNotImplementedError(Rt	fieldname((s+/usr/share/pygobject/2.0/codegen/codegen.pytget_field_accessorscCshS(N((R((s+/usr/share/pygobject/2.0/codegen/codegen.pytget_initial_class_substdictscCshd|iid6dd6S(Ns%s.__init__Rs-1terrorreturn(RStpy_name(Rtconstructor((s+/usr/share/pygobject/2.0/codegen/codegen.pyt!get_initial_constructor_substdictscCsZhd|ii|ifd6}|iod|d<d|d<nd|d<d|d<|S(Ns%s.%sRspyg_begin_allow_threads;tbegin_allow_threadsspyg_end_allow_threads;tend_allow_threadsR(RSR_Rtunblock_threads(Rtmethodt	substdict((s+/usr/share/pygobject/2.0/codegen/codegen.pytget_initial_method_substdicts 



cCs|ii|iiodS|iid|ii|i}|idpd|d<n|ii|d<|iio$d|ii|ii	f|d<n|ii	|d<|ii
|d<|iid|iip|i|d	<n|i
|d
<|i|d<x|iD]}d|ii|f}d|i|f}|d
 djod|}n|ii|o0|ii|}|i|||||<q|i|pd||<qqW|ii|i||idS(Ns#
/* ----------- %s ----------- */

RPs(Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPEttypenames%s.%st	classnameRQs
%s.tp_initRHt
tp_methodst	tp_getsets_wrap_%s_%sittp_as_t&t0(RTtis_type_ignoredRStc_nameR&R
R]thas_keyt
modulenameRt	docstringtslot_is_overridentwrite_constructort
write_methodst
write_getsetst
slots_listRYt
slot_overridetwrite_functiont	type_tmpltwrite_virtuals(RRftslottslotnametslotfunctdata((s+/usr/share/pygobject/2.0/codegen/codegen.pytwrite_class	s@

ic	Cs|p
h}nti}|idd|o|iidn|iotidnx|iD]w}|idjo'd|i
jo|idggntii
|i}	|	i|i|i|i|i|qoWd|d<|oP|idjod|d<ntii
|i}	|	i|i|i|n|idjo&|ih|id	6|dd6}
nd}
|id
|i|iod|d<d
|d<nd|d<d|d<|io|ii|d<n|id|i|i|d<|i
|d<|i|d<|i|d<|
ti|i dd|d|d<ti|i!dd|d|d<|i
p|o=|i"||d<d|d<d}|i#|d|d<nd|d<d|d<d}|||fS( srThis function is the guts of all functions that generate
        wrappers for functions, methods and constructors.R^tNULLRsvarargs functions not supportedt|t	setreturntnonesret = tdeprecationmsgRspyg_begin_allow_threads;Rbspyg_end_allow_threads;RcRhtcnametvarlistt	typecodest	parselisttarglistsreturn NULLsreturn t
codebeforet	codeaftert	parseargss", PyObject *args, PyObject *kwargstextraparamssMETH_VARARGS|METH_KEYWORDStMETH_NOARGSN(RN($RtWrapperInfot
setdefaultRtappendtvarargstArgTypeNotFoundErrortparamstpdfltR4tparsestrt
add_parselisttmatchertgettptypetwrite_paramtpnametpnullRtwrite_returntcaller_owns_returnRtdeprecated_tmplRRdRSRptget_varlistt
get_parselisttget_arglistR)RWtget_codebeforet
get_codeaftert
parse_tmplt
get_kwlist(Rtfunction_objttemplatet
handle_returnt	is_methodt
kwargs_neededRftinfotparamthandlerRtflags((s+/usr/share/pygobject/2.0/codegen/codegen.pytwrite_function_wrapper4sn


 
	









cCsd}|ii|i|i}|p|iS|i}y%|ii|oD|ii|}|i|||ii	|ii
j|i_nt|dd}|o]t|idjpt|idtio|i|Stiid|idn|i||idddddd	d
|i|d}|ii|d|}WnJtij
o;}tiid|iit|f|i}nX|S(
NRnt write_property_based_constructoris.Warning: generating old-style constructor for:s
RRRiRft_wrap_s'Could not write constructor for %s: %s
(RRtfind_constructorRSRTtwrite_default_constructorRptis_overridentoverrideRzRXtnewstyle_constructorsthas_new_constructor_apitgetattrR4tlenRt
isinstancetdefinitionstPropertyRRR	R
Rtconstructor_tmplRaR&RRRtwrite_noconstructor(RtinitfuncR`tfuncnameRtproperty_basedtcodetex((s+/usr/share/pygobject/2.0/codegen/codegen.pyRusD			

			cCs@t|idp#|ii|id|i_nd}|S(Ntno_constructor_writtenitpygobject_no_constructor(thasattrRTR&R
t
noconstructorR(RR((s+/usr/share/pygobject/2.0/codegen/codegen.pyRs
cCs
|iS(N(R(R((s+/usr/share/pygobject/2.0/codegen/codegen.pyRscCs|ii|o
d}nA|ii|o
d}n$|ii|o
d}nd}|ii|o|d7}n"|ii|o|d7}n|S(NsMETH_VARARGS|METH_KEYWORDSRtMETH_OtMETH_VARARGSs|METH_STATICs|METH_CLASS(RTtwants_kwargstwants_noargstwants_oneargtis_staticmethodtis_classmethod(RRR((s+/usr/share/pygobject/2.0/codegen/codegen.pyt
get_methflagss


cCs\|ii|\}}|ii|||ii||ii|iiddS(Ns

(RTtgetstartlineR&R1R
R2(RRRR'R(((s+/usr/share/pygobject/2.0/codegen/codegen.pyRzs

cCsy|i|}|i|d<||d<|iidddd|d<|ii|d<ti|iddd|d	<|S(
NtvirtualRRUR!it_CLASStclass_cast_macroRXtcast(RgRRXRWRSR)(RtmethRtparentRf((s+/usr/share/pygobject/2.0/codegen/codegen.pyt_get_class_virtual_substdicts

	cCsg}|ii}x~|ii|iD]g}|i}|ii|oq(ny|ii|oL|ii|p&|ii|}|i	||n|i
|}nG|i||iddddd|i
|\}}|ii||i|iht|id6d|d6|d6|id	6tiWq(tij
o9}titiid
||it|fq(Xq(Wx|ii|D]}ti||}	|ii|oqnyv|ii||}|i	|||i
|}|i|ih|d6d|	d6|d6dd	6tiWqtij
o6}titiid
||t|fqXqW||i 7}|oad|ii}
|id
|iid|
|iit!i"|d|iidnd}
|
S(NRiRRfRRRRRss!Could not write method %s.%s: %s
Rs
_Py%s_methodss    { NULL, NULL, 0, NULL }
s"static const PyMethodDef %s[] = {
Rs};

(#RSRpRRtfind_methodsRTt
is_ignoredRtis_already_includedRRzRRtmethod_tmplRgR&R
Rtmethdef_tmplR$RRstmethods_coverageRRRRRR	Rtget_defines_fortclass2cnametdefinetwrite_virtual_accessorsR)tjoin(RRtklassRtmethod_nameRt	methflagsRRRpt
methoddefs((s+/usr/share/pygobject/2.0/codegen/codegen.pyRvsn		
#

 
c	Cs|ii}g}x|ii|iD]}|iid|i}|ii|oq(nyN|ii|oL|ii|p&|ii	|}|i
||n|i|}n|ii
dtid|iidddddddzS|i||id	td
td|i|||i\}}|ii|Wd|id=X|i|ihdt|id
6d|d6|dd6dd6tiWq(tij
o9}tit i!id||it"|fq(Xq(W|S(Nt__do_iRt*RRRRRRRftdo_RRRs|METH_CLASSRRRss2Could not write virtual accessor method %s.%s: %s
(#RSRpRRt
find_virtualsRRTRRRRRzRRtinsertRt	ParameterR4Rtvirtual_accessor_tmpltTruetFalseRR&R
RRR$tvaccessors_coverageRRRRRR	R(	RRRRRRRRR((s+/usr/share/pygobject/2.0/codegen/codegen.pyR$sH
	#c
Cs|ii}g}x4|ii|iD]}|iid|i}|ii|oq(ny|ii|o=|ii|p&|ii	|}|i
||qntii
|i\}}tid|dt}|i||||iti|ddd|id|dxU|iD]J}	tii|	i\}
}|	i|d	<|i|
||	i|q6Wti}|i||ii|i|it |id|ft!i"Wq(ti#j
oU}t!i$|it |idft&i'id
||it(|fq(Xq(W|oe|ii|ii)odS|ii)i*dd
dd}
|ii)i*dd
d}d|}||i_+g}|D]$\}}|dj	o|tqq~}|iidt,|o+|iid|iidt,nx]|D]U\}}d|}|djo|iidt,qH|iidt,qHW|iidndS(sa
        Write _wrap_FooBar__proxy_do_zbr() reverse wrapers for
        GObject virtuals
        t__proxy_do_Rt	is_staticRRRtc_types *t	directions(Could not write virtual proxy %s.%s: %s
NRUR!iRs__%s_class_initsC
static int
%(funcname)s(gpointer gclass, PyTypeObject *pyclass)
{
s    PyObject *o;
s    %(klass)sClass *klass = %(class_cast_macro)s(gclass);
    PyObject *gsignals = PyDict_GetItemString(pyclass->tp_dict, "__gsignals__");
s=
    /* overriding %(do_name)s is currently not supported */
s@
    o = PyObject_GetAttrString((PyObject *) pyclass, "%(do_name)s");
    if (o == NULL)
        PyErr_Clear();
    else {
        if (!PyObject_TypeCheck(o, &PyCFunction_Type)
            && !(gsignals && PyDict_GetItemString(gsignals, "%(name)s")))
            klass->%(name)s = %(cname)s;
        Py_DECREF(o);
    }
s    return 0;
}
(-RSRpRRRRRTRRRRRzRRtget_reverse_retRtreversewrappertReverseWrapperRtset_return_typet
add_parametertPyGObjectMethodParamRtget_reverseRtpdirRtMemoryCodeSinktgenerateR&R
R/RR$tvproxies_coverageRRRR4RR	RRXRWtclass_init_functvars(RRtvirtualsRRRRtpropstwrapperRRtbufRRt
cast_macroRt_[1]RRthave_implemented_virtualstdo_name((s+/usr/share/pygobject/2.0/codegen/codegen.pyR|Ms
	

 
#
#		

	
c	Cs|i}|d}d|d}d|d}|iipdSg}x|iiD]\}}|idd}d}	d}
|iid|}|ii|o||ii|}|i||t	i
|||djo||}	nt	i
|||djo||}
q$n|	djoy||}
ti}ti
i|}|i|d||ii|ih|
d	6|id
6|i|d6|id6|
}	Wqtij
o2}tiid
|ii|t|fqXn|	djp
|
djo$|idt||	|
fqWqWW|pdS|iid|x|D]}|ii|qlW|iid|iid|S(Nt_getsetsRt__get_t__set_Rnt.R!iRRtfieldRs%Could not write getter for %s.%s: %s
s&    { "%s", (getter)%s, (setter)%s },
s"static const PyGetSetDef %s[] = {
s$    { NULL, (getter)0, (setter)0 },
s};

(RYRStfieldsRWRpRTtattr_is_overrident
attr_overrideRzR)tfindRRRRRR&R
tgetter_tmplRR\RRRR	RRR$(Rt
lower_nametgetsets_nametgetterprefixtsetterprefixtgetsetstftypetcfnametfnamet
getternamet
setternametattrnameRRRRRtgetset((s+/usr/share/pygobject/2.0/codegen/codegen.pyRws`







	&	c
Cs|iidx1|iD]#\}}|iid|iqWx.|D]&\}}}}|iid|qKWxs|iD]e}	|iid|	ixE|	iD]:\}
}|t|iid}|iid|qWqW|iiddS(Nscstatic PyObject *
_wrap__get_symbol_names(PyObject *self)
{
    PyObject *pylist = PyList_New(0);

s6    PyList_Append(pylist, PyString_FromString("%s"));
is    return pylist;
}

(	R&R
tget_classesRt	get_enumstvaluesRRTRr(Rtwritert	functionstobjtbasesRRRRstenumtnickR((s+/usr/share/pygobject/2.0/codegen/codegen.pyt_write_get_symbol_namess(	


csiidiiidiift}xp|iD]b\}}|o!iid|it}niid|iiid|i	qCWiidxn|D]f\}}}}	iid|iid||||	fiid	iidqWtfd
}
t
iid}x|iD]}iid|i|
|dtiidxc|iD]X\}
}||}iid||
|iid
|iidqWq_WiiddS(Nsstatic PyObject *
_wrap__get_symbol(PyObject *self, PyObject *args)
{
    PyObject *d;
    char *name;
    static PyObject *modulename = NULL;
    static PyObject *module = NULL;
    static char *strip_prefix = "%s";

    if (!PyArg_ParseTuple(args, "Os", &d, &name))
        return NULL;

    if (!modulename)
       modulename = PyString_FromString("%s");

    if (!module)
       module = PyDict_GetItemString(d, "__module__");

R!s    if (!strcmp(name, "%s")) {
s&    } else if (!strcmp(name, "%s")) {
s5       return (PyObject*)pygobject_lookup_class(%s);
s    }
s$    else if (!strcmp(name, "%s")) {
sD        static PyMethodDef ml = { "%s", (PyCFunction)%s, %s, "%s"};
s9        return PyCFunction_NewEx(&ml, NULL, modulename);
csu|o
d}nd}|idjo'iid||i|ifn$iid||i|ifdS(Nsreturn RR+s8        %spyg_enum_add(module, "%s", strip_prefix, %s);
s5    %spyg_flags_add(module, "%s", strip_prefix, %s);
(tdeftypeR&R
RRX(R+t	returnobjR(R(s+/usr/share/pygobject/2.0/codegen/codegen.pyt
write_enum!s
		iR/s5        return PyObject_GetAttrString(module, "%s");
s    return Py_None;
}

(
R&R
RTRrtupperRR$RRRXRR%R&(RR'R(tfirstR)R*RRRRsR0t	strip_lenR+R,R((Rs+/usr/share/pygobject/2.0/codegen/codegen.pyt_write_get_symbolsJ	

	



cCsg}x2|iiD]!}|i}|ii|oqny|ii|o5|ii|}|i|||i|}n8|i	||i
dddd\}}|ii||i
|id|||iftiWqtij
o6}titiid|it|fqXqWx|iiD]}y\|ii|}|i|||i|}|i
|d||dftiWqKtij
o3}titiid|t|fqKXqKW|S(NRiRiRs Could not write function %s: %s
R(RRtfind_functionsRpRTRRRRzRRt
function_tmplR&R
RRRstfunctions_coverageRRRRRR	Rt
get_functionstfunction(RR(tfuncRRRRR((s+/usr/share/pygobject/2.0/codegen/codegen.pyt_write_function_bodies@sF		
 

cCs|iidg}|i}|iio|i|||i||xt|iD]f\}}|iid|i|i	||dd|iidd|i
f|iidq\W|id|id	nMxI|D]A\}}}	}
|i|it
d
|d|d|	d
|
qW|id|iid|d|iiti|d|iiddS(Ns*
/* ----------- functions ----------- */

sstatic PyTypeObject *
%s_register_type(const gchar *name, PyObject *unused)
{
    PyObject *m = PyImport_ImportModule("gtk");
    PyObject *d = PyModule_GetDict(m);
tindentis.    return (%s)PyDict_GetItemString(d, "%s");
s
PyTypeObject*s}
sV    { "_get_symbol_names", (PyCFunction)_wrap__get_symbol_names, METH_NOARGS, NULL },
sK    { "_get_symbol", (PyCFunction)_wrap__get_symbol, METH_VARARGS, NULL },
RRRRss    { NULL, NULL, 0, NULL }
sconst PyMethodDef s_functions[] = {
Rs};

(R&R
R;RTtdynamicnamespaceR-R4R$RpRRRRtdictR)R(RR'tprefixR(t
func_infosR)R*RRRRs((s+/usr/share/pygobject/2.0/codegen/codegen.pytwrite_functionsis6

		

N('RRR{RxRRRRRR6RR4RRR%RtstdoutRRYR\R]RaRgRRRuRRRRzRRvRR|RwR-R4R;RA(((s+/usr/share/pygobject/2.0/codegen/codegen.pyR5`sP/
					
	,	N	0					
	E	)	X	6		L	)tGObjectWrappercBs_eZdZdZeeidZdZdZ	dZ
dZdZdZ
RS(	szstatic int
_wrap_%(cname)s(PyGObject *self%(extraparams)s)
{
%(varlist)s%(parseargs)s%(codebefore)s    self->obj = (GObject *)%(cname)s(%(arglist)s);
%(codeafter)s
    if (!self->obj) {
        PyErr_SetString(PyExc_RuntimeError, "could not create %(typename)s object");
        return -1;
    }
%(aftercreate)s    pygobject_register_wrapper((PyObject *)self);
    return 0;
}

sstatic PyObject *
_wrap_%(cname)s(PyGObject *self%(extraparams)s)
{
%(varlist)s%(parseargs)s%(codebefore)s    %(begin_allow_threads)s
    %(setreturn)s%(cname)s(%(cast)s(self->obj)%(arglist)s);
    %(end_allow_threads)s
%(codeafter)s
}

cCsLti||||||io%ti|iiddd|_ndS(NRUR!i(R5RRSR)RWRXt	castmacro(RRRRSRTR&((s+/usr/share/pygobject/2.0/codegen/codegen.pyRs
cCshdd6dd6dd6S(Nt	PyGObjectttp_basicsizes offsetof(PyGObject, weakreflist)ttp_weaklistoffsetsoffsetof(PyGObject, inst_dict)t
tp_dictoffset((R((s+/usr/share/pygobject/2.0/codegen/codegen.pyR]s
cCs,ti|iiddd}d||fS(NRUR!is%s(pygobject_get(self))->%s(R)RWRSRX(RR[RD((s+/usr/share/pygobject/2.0/codegen/codegen.pyR\scCs8ti||}|ipd|d<nd|d<|S(Ns    g_object_ref(self->obj);
taftercreateR(R5RaR(RR`Rf((s+/usr/share/pygobject/2.0/codegen/codegen.pyRas		

cCs8ti||}ti|iiddd|d<|S(NRUR!iR(R5RgR)RWRSRX(RReRf((s+/usr/share/pygobject/2.0/codegen/codegen.pyRgscCsy|ii|ii}Wntj
o
d}nX|dj	o|i|i_n$|iidjot|i_ndS(NtGObjectRn(RRtfind_objectRSRt
ValueErrorR4RR(RR((s+/usr/share/pygobject/2.0/codegen/codegen.pyRs
cCst|i_|i}|dIJ|d|iIJ|iod}||IJnd}d|ii|iif}|io
g}|iD]}|i	p||qq~}g}	|iD]}|i	o|	|qq~	}
|g}||
D]}||i
q~}|g}
||
D]}|
|iq!~
}|dt|iIJ|dt|iIJ|d|IJ|d	|IJ|d
IJ|J|i
dj	o&|id|i
|dIJ|Jn|id
d}|o|dt|7}n|
o|ddt|
7}n|d|7}||IdIx+tt|iD]}|d|IqTW|idt|inG|id|i
dj	o|id|i
n|id||id||ip|dIJn|idd|iS(Ns
static ints=_wrap_%s(PyGObject *self, PyObject *args, PyObject *kwargs)
{s=    GType obj_type = pyg_type_from_object((PyObject *) self);cSs1|o"dditd|dSdSdS(Nt{s, cSsd|dS(t"((ts((s+/usr/share/pygobject/2.0/codegen/codegen.pyt<lambda>ss, NULL }s{ NULL }(Rtmap(targ((s+/usr/share/pygobject/2.0/codegen/codegen.pytpy_str_list_to_cs"s%s.%ss    GParameter params[%i];s)    PyObject *parsed_args[%i] = {NULL, };s    char *arg_names[] = %s;s    char *prop_names[] = %s;s    guint nparams, i;s8    if (PyErr_Warn(PyExc_DeprecationWarning, "%s") < 0)
s        return -1;s3    if (!PyArg_ParseTupleAndKeywords(args, kwargs, RNtORs
:%s.__init__"s, arg_namess, &parsed_args[%i]s))
        return -1;

    memset(params, 0, sizeof(GParameter)*%i);
    if (!pyg_parse_constructor_args(obj_type, arg_names,
                                    prop_names, params, 
                                    &nparams, parsed_args))
        return -1;
    pygobject_constructv(self, nparams, params);
    for (i = 0; i < nparams; ++i)
        g_value_unset(&params[i].value);
s'    static char* kwlist[] = { NULL };

sL    if (PyErr_Warn(PyExc_DeprecationWarning, "%s") < 0)
        return -1;

s    if (!PyArg_ParseTupleAndKeywords(args, kwargs,
                                     ":%s.__init__",
                                     kwlist))
        return -1;

    pygobject_constructv(self, 0, NULL);
s    if (!self->obj) {
        PyErr_SetString(
            PyExc_RuntimeError, 
            "could not create %s object");
        return -1;
    }
s    g_object_ref(self->obj);
s    return 0;
}

s_wrap_%s(RRSRR&RpRRTRrRtoptionaltargnameRRRR4R
trangeR(RR`toutRORSRiRRtmandatory_argumentst_[2]toptional_argumentst_[3]t	arg_namest_[4]t
prop_namesRti((s+/usr/share/pygobject/2.0/codegen/codegen.pyRs	


	
$$



(RRRRR%RRBRR]R\RaRgRR(((s+/usr/share/pygobject/2.0/codegen/codegen.pyRCs						tGInterfaceWrappercBs;eZdZdZdZdZdZdZRS(sstatic PyObject *
_wrap_%(cname)s(PyObject *cls%(extraparams)s)
{
    %(vtable)s *iface;
%(varlist)s%(parseargs)s%(codebefore)s    iface = g_type_interface_peek(g_type_class_peek(pyg_type_from_object(cls)), %(typecode)s);
    if (iface->%(virtual)s)
        %(setreturn)siface->%(virtual)s(%(arglist)s);
    else {
        PyErr_SetString(PyExc_NotImplementedError, "interface method %(name)s not implemented");
        return NULL;
    }
%(codeafter)s
}

cCshdd6dd6dd6S(NtPyObjectRFRnRGRH((R((s+/usr/share/pygobject/2.0/codegen/codegen.pyR]cs
cCsdS(NRn((R((s+/usr/share/pygobject/2.0/codegen/codegen.pyRuhscCsdS(NRn((R((s+/usr/share/pygobject/2.0/codegen/codegen.pyRwkscCsJ|i|}|i|d<||d<|ii|d<|ii|d<|S(NRRRXtvtable(RgRRSRXRc(RRRRRf((s+/usr/share/pygobject/2.0/codegen/codegen.pyRos

c
CsG|ii}g}x4|ii|iD]}|iid|i}|ii|oq(ny|ii|o=|ii|p&|ii	|}|i
||qntii
|i\}}tid|dt}|i||||iti|ddd|id|dxU|iD]J}	tii|	i\}
}|	i|d	<|i|
||	i|q6Wti}|i||ii|i|it |id|ft!i"Wq(ti#j
oU}t!i$|it |idft&i'id
||it(|fq(Xq(W|p4g}
|D]\}}|o|
|q\q\~
odSd|}|ii)}|iidt*xI|D]A\}}d|}|djoqn|iid
t*qW|iidd|}|iid||f||i_+dS(NRRRRRRRs *Rs*Could not write interface proxy %s.%s: %s
s__%s__interface_inits
static void
%(funcname)s(%(vtable)s *iface, PyTypeObject *pytype)
{
    %(vtable)s *parent_iface = g_type_interface_peek_parent(iface);
    PyObject *py_method;

sk    py_method = pytype? PyObject_GetAttrString((PyObject *) pytype, "%(do_name)s") : NULL;
    if (py_method && !PyObject_TypeCheck(py_method, &PyCFunction_Type)) {
        iface->%(name)s = %(cname)s;
    } else {
        PyErr_Clear();
        if (parent_iface) {
            iface->%(name)s = parent_iface->%(name)s;
        }
    Py_XDECREF(py_method);
    }
s}

s__%s__iinfosW
static const GInterfaceInfo %s = {
    (GInterfaceInitFunc) %s,
    NULL,
    NULL
};
(,RSRpRRRRRTRRRRRzRRRRRRRRRRRRRRRRRR&R
R/RR$tiproxies_coverageRRRR4RR	RRcRtinterface_info(RRtproxiesRRRRRRRRR	RRRRRRcR
Re((s+/usr/share/pygobject/2.0/codegen/codegen.pyR|wsp
	

 
#<
	

	
	(RRRR]RuRwRR|(((s+/usr/share/pygobject/2.0/codegen/codegen.pyRaMs				t
GBoxedWrappercBs/eZdZdZdZdZdZRS(sstatic int
_wrap_%(cname)s(PyGBoxed *self%(extraparams)s)
{
%(varlist)s%(parseargs)s%(codebefore)s    self->gtype = %(typecode)s;
    self->free_on_dealloc = FALSE;
    self->boxed = %(cname)s(%(arglist)s);
%(codeafter)s
    if (!self->boxed) {
        PyErr_SetString(PyExc_RuntimeError, "could not create %(typename)s object");
        return -1;
    }
    self->free_on_dealloc = TRUE;
    return 0;
}

sstatic PyObject *
_wrap_%(cname)s(PyObject *self%(extraparams)s)
{
%(varlist)s%(parseargs)s%(codebefore)s    %(begin_allow_threads)s
    %(setreturn)s%(cname)s(pyg_boxed_get(self, %(typename)s)%(arglist)s);
    %(end_allow_threads)s
%(codeafter)s
}

cCshdd6dd6dd6S(NtPyGBoxedRFRnRGRH((R((s+/usr/share/pygobject/2.0/codegen/codegen.pyR]s
cCsd|ii|fS(Nspyg_boxed_get(self, %s)->%s(RSRp(RR[((s+/usr/share/pygobject/2.0/codegen/codegen.pyR\scCs&ti||}|ii|d<|S(NRX(R5RaRSRX(RR`Rf((s+/usr/share/pygobject/2.0/codegen/codegen.pyRas(RRRRR]R\Ra(((s+/usr/share/pygobject/2.0/codegen/codegen.pyRgs
		tGPointerWrappercBs/eZdZdZdZdZdZRS(sWstatic int
_wrap_%(cname)s(PyGPointer *self%(extraparams)s)
{
%(varlist)s%(parseargs)s%(codebefore)s    self->gtype = %(typecode)s;
    self->pointer = %(cname)s(%(arglist)s);
%(codeafter)s
    if (!self->pointer) {
        PyErr_SetString(PyExc_RuntimeError, "could not create %(typename)s object");
        return -1;
    }
    return 0;
}

sstatic PyObject *
_wrap_%(cname)s(PyObject *self%(extraparams)s)
{
%(varlist)s%(parseargs)s%(codebefore)s    %(setreturn)s%(cname)s(pyg_pointer_get(self, %(typename)s)%(arglist)s);
%(codeafter)s
}

cCshdd6dd6dd6S(Nt
PyGPointerRFRnRGRH((R((s+/usr/share/pygobject/2.0/codegen/codegen.pyR]"s
cCsd|ii|fS(Nspyg_pointer_get(self, %s)->%s(RSRp(RR[((s+/usr/share/pygobject/2.0/codegen/codegen.pyR\'scCs&ti||}|ii|d<|S(NRX(R5RaRSRX(RR`Rf((s+/usr/share/pygobject/2.0/codegen/codegen.pyRa+s(RRRRR]R\Ra(((s+/usr/share/pygobject/2.0/codegen/codegen.pyRis
		tSourceWritercBseZeeidZedZdZdZ	dZ
dZdZdZ
dZd	Zd
dZdZd
ZdZdZddZRS(cCs(||_||_||_||_dS(N(RRRTR?R&(RRRRTR?R&((s+/usr/share/pygobject/2.0/codegen/codegen.pyR2s			cCs|t_|i||i|i|i|it|id|i
|i}|i||i
|i
ip|in|i|itt_dS(N(Rtpy_ssize_t_cleant
write_headerst
write_importstwrite_type_declarationst
write_bodyt
write_classesR5RRR4RTR&RAR?R=twrite_enumstwrite_extension_inittwrite_registersR(RRlR((s+/usr/share/pygobject/2.0/codegen/codegen.pyR
8s	







cCs|iid|iid|o|iidn|iid|o|iidn|ii|ii|ii|iiddS(Ns-/* -- THIS FILE IS GENERATED - DO NOT EDIT */s*/* -*- Mode: C; c-basic-offset: 4 -*- */

s#define PY_SSIZE_T_CLEAN
s#include <Python.h>


s

#if PY_VERSION_HEX < 0x02050000
typedef int Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX
#define PY_SSIZE_T_MIN INT_MIN
typedef inquiry lenfunc;
typedef intargfunc ssizeargfunc;
typedef intobjargproc ssizeobjargproc;
#endif

s

(R&R
RTtget_headersR2(RRl((s+/usr/share/pygobject/2.0/codegen/codegen.pyRmKs	
cCs|iidxo|iiD]^\}}}}|djp
t|o2|iid||iid||fq q W|iiddS(Ns5/* ---------- types from other modules ---------- */
sstatic PyTypeObject *_%s;
s#define %s (*_%s)
s

(R&R
RTtget_importsR4tis_registered_object(RtmoduletpynameRt
importing_for((s+/usr/share/pygobject/2.0/codegen/codegen.pyRnbs"cCs|iidxI|iiD];}|ii|ip|iid|idqqWxI|iiD];}|ii|ip|iid|idqiqiWxI|iiD];}|ii|ip|iid|idqqW|iiddS(Ns6/* ---------- forward type declarations ---------- */
sPyTypeObject G_GNUC_INTERNAL Pys_Type;
s
(	R&R
RRtboxesRTRoRptobjectst
interfaces(RR)t	interface((s+/usr/share/pygobject/2.0/codegen/codegen.pyRojs
#
#
#cCs:|ii|ii|ii|iiddS(Ns

(R&R
RTtget_bodyR2(R((s+/usr/share/pygobject/2.0/codegen/codegen.pyRpxs
c
CsDt|}t}x+|o#t}d}d}xt|D]\}}|idjoq;n|ig}|| D]}||iqs~joYxQt||dD]8\}	}|i|ijo|d|	}|}PqqWq;Pq;q;W|dj	oA|dj	o4||jo#|i||i|t}q;qqW|S(NRJi(	tlistRRR4t	enumerateRRpRtpop(
RR|tmodifiedtparent_indextchild_indexR`R)RRtj((s+/usr/share/pygobject/2.0/codegen/codegen.pyt_sort_parent_children}s2
2		
cCs|i|ii}xt|iift|iift|ft|ii	ffD]U\}}xF|D]>}||i||i
|i}|i|ii
dqeWqRWdS(Ns
(RRRR|RgR{RitpointersRCRaR}RTR&RR
(RR|Rtitemstitemtinstance((s+/usr/share/pygobject/2.0/codegen/codegen.pyRqs	
cCsKg}x>|iiD]0}|ii|ioqn|i|qW|S(N(RRtenumsRTRoRpR(RRR+((s+/usr/share/pygobject/2.0/codegen/codegen.pyR%s
cCsD|iipdS|iid|iid|id|iidx|iD]}|idjo8x|iD]&\}}|iid||fqzWqZ|i	djo$|iid|i
|ifqZ|iid|i
|ifqZW|iid	|iid
|iid|iiddS(
Ns0
/* ----------- enums and flags ----------- */

svoid
s>_add_constants(PyObject *module, const gchar *strip_prefix)
{
sV#ifdef VERSION
    PyModule_AddStringConstant(module, "__version__", VERSION);
#endif
sa    PyModule_AddIntConstant(module, (char *) pyg_constant_strip_prefix("%s", strip_prefix), %s);
R+s0  pyg_enum_add(module, "%s", strip_prefix, %s);
s1  pyg_flags_add(module, "%s", strip_prefix, %s);
s
s  if (PyErr_Occurred())
s    PyErr_Print();
s}

(RRRR&R
R?R%RXR4R&R.R(RR+R,R((s+/usr/share/pygobject/2.0/codegen/codegen.pyRrs2
	
	

	Rc	Cs|ii}|pdSh}xW|D]O\}}}}|djp
t|o#|i|gi||fq)q)W|iidx|D]	}|iid|x||D]\}}|iid||f|iid||iid|iid||f|iid||iidqW|iid	|iid
|iid||iid||iid
qW|iiddS(Ns    PyObject *module;

s:    if ((module = PyImport_ImportModule("%s")) != NULL) {
sD        _%s = (PyTypeObject *)PyObject_GetAttrString(module, "%s");
s        if (_%s == NULL) {
s/            PyErr_SetString(PyExc_ImportError,
s2                "cannot import name %s from %s");
s            return %s;
s
        }
s
    } else {
s+        PyErr_SetString(PyExc_ImportError,
s$            "could not import %s");
s        return %s;
s    }
s
(RTRvR4RwRRR&R
(RtretvaltimportstbymodRxRyRRz((s+/usr/share/pygobject/2.0/codegen/codegen.pytwrite_object_importss>'		cCsc|iid|iid|id|i|ii|iid|iidS(Ns)/* initialise stuff extension classes */
svoid
s!_register_classes(PyObject *d)
{
s
(R&R
R?RRTtget_initR2(R((s+/usr/share/pygobject/2.0/codegen/codegen.pyRss

cCs#|ii}d}x|t|jow||i}xct|dt|D]>}||i|jo$|i|d||||=PqPqPW|d}qWg}xu|D]m}|ii|ioqng}|idjo|i
|in||i}|i
||fqW|S(Nii(RRR|RRRWRpRRTRoR4Rt
implements(RR|tposRR`RR)R*((s+/usr/share/pygobject/2.0/codegen/codegen.pyR$s.

	
cCsx_|iiD]Q}|ii|ip5|iid|id|id|idq
q
Wx_|ii	D]Q}|ii|ip5|iid|id|id|idqoqoWx|ii
D]}|ii|ipi|iid|id|id|id|idj	o$|iid|i|ifqVqqW|ii
p1xk|iD]\}}|i||qtWn>x:|iD],\}}|iid|i|ifqW|iid	dS(
Ns    pyg_register_boxed(d, "s", s, &Pys_Type);
s    pyg_register_pointer(d, "s    pyg_register_interface(d, "s*    pyg_register_interface_info(%s, &%s);
s_    pyg_type_register_custom_callback("%s", (PyGTypeRegistrationFunction)%s_register_type, d);
s}
(RRR{RTRoRpR&R
RRXRR}ReR4R=R$R(RtboxedtpointerR~R)R*((s+/usr/share/pygobject/2.0/codegen/codegen.pyRts:
	 
	0
	( 


	cCsU|iiptS|djotSt|}|ii|iijotStS(NRJ(RTR=Rtget_object_by_nameRxRVRrR(RtbaseR)((s+/usr/share/pygobject/2.0/codegen/codegen.pyt_can_direct_ref3s

ic
Cs;d|d}|ordt|d}xM|D]E}|i|o|d|7}q0t|}|d|i7}q0W|d7}nd}|iid	td
|d|id|id
||i	o|ii|d|int
id|iIJ|idj	o(|ii|d|i|ifndS(Nt isPy_BuildValue("(%s)"RTs, &Py%s_Types!, PyObject_GetAttrString(m, "%s")t)Rsb%(indent)spygobject_register_class(d, "%(c_name)s", %(typecode)s, &Py%(c_name)s_Type, %(bases)s);
R<RpRXR*s(pyg_set_object_has_new_constructor(%s);
sWarning: Constructor for %s needs to be updated to new API
         See http://live.gnome.org/PyGTK_2fWhatsNew28#update-constructorss!pyg_register_class_init(%s, %s);
(RRRRR&R
R>RpRXRRR	RR4(RR)R*R<t
indent_strt	bases_strRtbaseobj((s+/usr/share/pygobject/2.0/codegen/codegen.pyR=s2	)
	
	(RRR%RRBRRR
RmRnRoRpRRqR%RrRRsR$RtRR(((s+/usr/share/pygobject/2.0/codegen/codegen.pyRk1s 								"$			!	
cCs
|tjS(N(t_objects(Rp((s+/usr/share/pygobject/2.0/codegen/codegen.pyRwascCst|S(N(R(Rp((s+/usr/share/pygobject/2.0/codegen/codegen.pyRdscCsBx7|iD],}tii|i|i|t|i<q
Wx*|iD]}tii|i|iqDWx=|i	D]2}tii
|i|i|i|t|i<qqWx:|iD]/}tii
|id|i|t|i<qWxW|iD]L}|idjotii|i|iqtii|i|iqWdS(NR(R{RRtregister_boxedRpRXRRtregister_pointerR|tregister_objectRR}R4RR.t
register_flagt
register_enum(RRRRR)tifaceR+((s+/usr/share/pygobject/2.0/codegen/codegen.pytregister_typeshs(




s9usage: codegen.py [-o overridesfile] [-p prefix] defsfilecCsti}d}d}d}ti|dddddddd	d
g\}}h}t}xl|D]d\}	}
|	djoti|
}qe|	djo
|
}qe|	djo-ti|
|}|it|~qe|	djo
|
}qe|	djo
|
}qe|	djoh}t	|
|qe|	djoM|
i
d}
y|
d||
d<Wqtj
od||
d<qXqe|	djotii
d|
qe|	djo
t}qeqeWt|djotitIJdS|ot|dt_nti|d|}|p"tii|ddd}n|it|t|||tti|}|i|titititit idS( Ntpygtkiso:p:r:t:D:I:s	override=sprefix=s	register=soutfilename=sload-types=serrorfilename=spy_ssize_t-cleans-os
--overrides-ps--prefixs-rs
--registers
--outfilenames--errorfilenames-ts--load-typess-Dt=is-Is--py_ssize_t-cleantws.c(s-os
--override(s-ps--prefix(s-rs
--register(s-ts--load-types(!Rt	OverridesR4tgetoptRt
defsparsert
DefsParsertstartParsingRtexecfiletsplitt
IndexErrortinclude_pathRRRRR	tusagetopentostpathtsplitextRkR%RBR
R7RRRRRd(targvtoR?toutfilenamet
errorfilenametoptstargstdefinesRltoptRRtptglobalstnamevaltsw((s+/usr/share/pygobject/2.0/codegen/codegen.pytmain|sl














"

!




t__main__($RR"RR)RRRRRRRtobjectRR7RRRRdRR$R%R5RCRaRgRiRkRRwRRRRRtexitR(((s+/usr/share/pygobject/2.0/codegen/codegen.pyt<module>sJ		630/				;


Youez - 2016 - github.com/yon3zu
LinuXploit