Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/gi/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyc


.Oc@sdZddlZddlZy$ddlmZddlmZWn!ek
reddlmZnXddlZddl	m
Z
eddZdZ
eZd	d
ZdZdZd
dZdZdZdZdS(s
PyGTK compatibility layer.

This modules goes a little bit longer to maintain PyGTK compatibility than
the normal overrides system.

It is recommended to not depend on this layer, but only use it as an
intermediate step when porting your application to PyGI.

Compatibility might never be 100%, but the aim is to make it possible to run
a well behaved PyGTK application mostly unmodified on top of PyGI.

iN(tUserList(treload(tGObjecttc
Cs|dkr|}n|jjdddj}x[t|D]M}yt||d}Wn
qAnXyt|tjrxw|j	j
D]c\}}|j}|j|dd}|r|j
|r|t|}nt|||qWnWntk
rqAnXyft|tjrvxM|jj
D]9\}}	|	jdj|dd}t|||	q6WnWqAtk
rqAqAXqAWdS(Nt.it_Ri(tNonet__name__trsplittuppertdirtgetattrt
issubclassRtGEnumt__enum_values__titemst
value_nametreplacet
startswithtlentsetattrt	TypeErrortGFlagst__flags_values__tvalue_names(
tmoduletdesttstriptmodnametattrtobjtvaluetenumtnametflag((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyt_install_enums2s2		

cCsxddlm}|tjd<ddlm}|tjd<ddlm}|tjd<ddlm}|tjd	<dS(
Ni(tGLibtglib(Rtgobject(tpropertyhelpersgobject.propertyhelper(tGiotgio(t
gi.repositoryR$tsystmodulesRtgi._gobjectR'R((R$RR'R(((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytenableNs


s2.0c$stttjdIkr)tjdntjddddlm}|tjd<t	|tjd	ddd
lm
}|tjd<t	|tjdddd
lm}|tjd<tjd|tjddddlmddlm
}tjd<t	t	|dd_d_jj_|j_|jj_|jj_jj

fd}|j_jjfd}|j_tjd|ddlmtjd<_dJ_jjj f_!t	d}t"|j#_$j%d ffd!Y}|_%j&j't(t(dfd"}	|	j&_'j&j)t(t(dfd#}
|
j&_)j*j'
t(
fd$}|j*_'j*j)t(fd%}|j*_)d&}
|
j+_,j-j't(fd'}|j-_'j-j)t(fd(}|j-_)j-j.t/fd)}|j-_.d*j0fd+Y}|_1j2j3t/fd,}|j2_3d-j2ffd.Y}|_4fd/}|_5fd0}|_6d1}t"|j7_8fd2}|_9d3}|j2_:j;j<_=j>j_?j@jA_Bj@jC_DjEj_FjjG_HjIjJ	d4ffd5Y}|_Id6	f	fd7Y}|_Jd8_KjLjM_NjLjOfd9}|jL_OjLjPjL_Qd:tRffd;Yd<tRffd=Yd>tRffd?Y}|jL_Sd@tRfdAY}|}|tjdB<dCtRfdDY}|} | tjdE<| _TxltUD]^}!|!jVdFr|!d}"|"ddGkrdH|"}"ntW|!}#tX| |"|#qqWdS(KNiisutf-8tAtks1.0i(R/tatktPango(R1tpangot
PangoCairo(R3t
pangocairotGdkt	GdkPixbufs2.0(R5(R6sgtk.gdkRiicsqyMyjdddd}Wntk
r>j}nX||Wntk
rl|}nX|S(Ni(t	RectangleR(twindowtrect(R5torig_get_frame_extents(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytget_frame_extentss

cs|dS(Ni((tself(torig_get_origin(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyt
get_originstGtk(R?tgtkiiccSstjdtdddS(Ns%set_tool_item_type() is not supportedt
stackleveli(twarningstwarntDeprecationWarning(t
menuactiontgtype((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytset_tool_item_types	t	Alignmentcs#eZddddfdZRS(gcsAj|||j_||j_||j_||j_dS(N(t__init__tpropstxaligntyaligntxscaletyscale(R<RKRLRMRN(torig_Alignment(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRIs

(Rt
__module__RI((RO(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRHscs|||||dS(N((R<tchildtexpandtfilltpadding(t
orig_pack_end(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytpack_endscs|||||dS(N((R<RQRRRSRT(torig_pack_start(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyt
pack_startscs|||dS(N((R<tcellRR(torig_tree_view_column_pack_end(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyttree_view_column_pack_endscs|||dS(N((R<RYRR(t orig_tree_view_column_pack_start(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyttree_view_column_pack_startsc_sdS(N((tviewtpositionttitleRYtargstkwargs((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytinsert_column_with_attributesscs|||dS(N((R<RYRR(torig_cell_pack_end(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyt
cell_pack_endscs|||dS(N((R<RYRR(torig_cell_pack_start(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytcell_pack_startscs&fd}||||dS(Ncs'|dtkr|d }n|S(Ni(t_unset(Ra(tfunc(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytcallbacks
((R<RYRit	user_dataRj(torig_set_cell_data_func(Ris2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytset_cell_data_funcstGenericCellRenderercBseZRS((RRP(((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRnscs#fd}|||dS(Ncs'|dtkr|d }n|S(Ni(Rh(Ra(Ri(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRjs
((R<RiRkRj(torig_combo_row_separator_func(Ris2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytcombo_row_separator_funcst
ComboBoxEntrycs)eZfdZdZdZRS(csjj|dt|dS(Nt	has_entry(tComboBoxRItTrue(R<tkwds(R?(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRI	scSs|j|dS(N(tset_entry_text_column(R<ttext_column((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytset_text_columnscSs
|jS(N(tget_entry_text_column(R<((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytget_text_column
s(RRPRIRxRz((R?(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRqs	cs
jS(N(Rq((R?(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytcombo_box_entry_newscsjd|S(Ntmodel(Rq(R|(R?(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytcombo_box_entry_new_with_modelscSstjdtdddS(Ns)install_child_property() is not supportedRAi(RBRCRD(t	containerR"tpspec((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytinstall_child_propertys	cs9j}jt}|j||jd|S(Ni(Rst	ListStoretstrt	set_modelRv(tcomboR|(R?(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytnew_text s


cSs |j}|j|gdS(N(t	get_modeltappend(R<ttextR|((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytappend_text'stHScalecseZdfdZRS(csj|d|dS(Nt
adjustment(RI(R<R(torig_HScale(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRI8sN(RRPRRI((R(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyR7stVScalecseZdfdZRS(csj|d|dS(NR(RI(R<R(torig_VScale(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRI=sN(RRPRRI((R(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyR<scSsdS(N(R(R((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyt<lambda>Ascs&dtfdY}||S(NtSizeRequestcBseZdZRS(cSs8|j|_|j|_tj||j|jgdS(N(theighttwidthRRI(R<treq((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRIIs(RRPRI(((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRHs(R(twidgetR(torig_size_request(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytsize_requestGst
BaseGettercs eZdZfdZRS(cSs
||_dS(N(tcontext(R<R((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRISscs7|jj|}jd|jd|jd|jS(Ntredtgreentblue(Rtget_background_colortColorRRR(R<tstatetcolor(R5(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyt__getitem__Vs	(RRPRIR((R5(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRRs	tStylescseZfdZRS(cs@|j}||_jdddddd|_dS(NRiRR(tget_style_contexttbaseRtblack(R<RR(R5R(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRI]s(RRPRI((R5R(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyR\stStyleDescriptorcseZfdZRS(cs
|S(N((R<tinstancetclass_(R(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyt__get__cs(RRPR((R(s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRbst	UnixPrintcBseZRS((RRP(((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRhstgtkunixprinttKeysymscBseZRS((RRP(((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRnssgtk.keysymstKEY_t
0123456789R(ii(iici(YRR+tversion_infotsetdefaultencodingtgitrequire_versionR*R/R,R#R1R3R5R6t_2BUTTON_PRESStBUTTON_PRESStScreentget_defaulttscreen_get_defaulttPixbuft
new_from_filetpixbuf_new_from_filetPixbufLoadert
new_with_typetWindowR;R>R?tgdkt
pygtk_versiont
MAJOR_VERSIONt
MINOR_VERSIONt
MICRO_VERSIONtgtk_versiontclassmethodtActionRGRHtBoxRVRtRXtTreeViewColumntTreeViewRct
CellLayoutRmRhtCellRendererRnRstset_row_separator_funcRqR{R}t	ContainerRtcombo_box_new_textRtExpandertnew_with_mnemonictexpander_new_with_mnemonict	IconThemeticon_theme_get_defaulttImagetnew_from_pixbuftimage_new_from_pixbuftnew_from_stocktimage_new_from_stocktSettingstsettings_get_defaulttset_default_icontwindow_set_default_iconRRt	stock_addtWidgettget_default_directiontwidget_get_default_directionRthidethide_alltobjecttstyletkeysymsR
RRR($tversionR/R1R3R6R;R>RGRHRVRXR[R]RcReRgRmRnRpRqR{R}RRRRRRRRt	unixprintRRR!ttargetR((R\RWR=RORRoRURR?RR:RRlRZRdRfR5Rs2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyt
enable_gtk`s







		

		
															
	
	
	

cCs1tjddddlm}|tjd<dS(NtVtes0.0i(Rtvte(RRR*RR+R,(R((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyt
enable_vte|scCs:tjddddlm}|tjd<d|_dS(	NtPopplers0.18i(Rtpopplerii(iii(RRR*RR+R,tpypoppler_version(R((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytenable_popplers
s1.0cCsCtjd|ddlm}|tjd<|jj|j_dS(NtWebKiti(Rtwebkit(	RRR*RR+R,tWebViewt
get_inspectortget_web_inspector(RR((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyt
enable_webkits
cCs1tjddddlm}|tjd<dS(NtGUdevs1.0i(Rtgudev(RRR*RR+R,(R((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytenable_gudevscCstjddddlm}|tjd<t||jj|_	|j
j|_|j
j|_|jj|_d|_d|_ddlm}|tjd	<t|dd
lm}|tjd<t|ddlm}|tjd
<t|ddlm}|tjd<t||j|_|j|_ddlm}|tjd<t|d|ddlm}|tjd<t|dS(NtGsts0.10i(RtgstcSsdS(Nii
i(ii
i((((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRscSsdS(Nii
i((ii
i(((((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyRs(t
GstInterfacessgst.interfaces(tGstAudios	gst.audio(tGstVideos	gst.video(tGstBasesgst.base(t
GstControllersgst.controllerR(t
GstPbutilssgst.pbutils(RRR*RR+R,R#tRegistryRtregistry_get_defaulttElementtregistertelement_registertElementFactorytmaketelement_factory_maketCapstnew_anytcaps_new_anytget_pygst_versiontget_gst_versionRRRRt
BaseTransformtBaseSinkRR(RRRRRRR((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyt
enable_gsts<











cCs}tjddddlm}|tjd<t|dd|j|_|j	|_
|j|_|j
|_|j|_dS(Nt	GooCanvass2.0i(Rt	goocanvasRtGOO_CANVAS_(RRR*RR+R,R#tCanvasItemSimplet
ItemSimplet
CanvasItemtItemtCanvasImageRtCanvasGrouptGroupt
CanvasRecttRect(R((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pytenable_goocanvass
(t__doc__R+RBtcollectionsRtimpRtImportErrorRR*RRR#R.RRhRRRRRRR(((s2/usr/lib/python2.7/dist-packages/gi/pygtkcompat.pyt<module>!s(
						(