KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21573/task/21573/root/usr/share/system-config-display/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/task/21573/root/usr/share/system-config-display/xConfigDialog.pyo
mò
4;EOc@sÃdkZdkZdkZdkZdkZdkZdkZdkZdkZ	dk
lZlZl
Z
dkTdZdZdkZeiddƒei
dƒeiZdfd„ƒYZdS(	N(t_sN_s
textdomain(t*iissystem-config-displays/usr/share/localet
XConfigDialogcBsžtZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d	„Z
dd
„Zd„Z
dd„Zd
„Zd„Zd„Zd„ZRS(NcCs
|i}dS(N(tselftxml(RR((t1/usr/share/system-config-display/xConfigDialog.pytsetup_sizegroups*scGs{|iiƒiƒidƒ}||iiƒjodSn|ii|ƒ|i	iƒiƒidƒ}|i|ƒdS(NtDEPTHt
RESOLUTION(Rtdepth_option_menutget_menut
get_activetget_datatdepthtstatetget_colordepthtset_colordepthtres_option_menutrestsetup_ui_resolution(RtargsRR
((Rt
depth_changed-scGsÌ|iiƒiƒidƒ}t|ƒ\}}|i	i
||ƒ|iidƒ}|itdƒ|iiƒ|iiƒfƒ|iidƒi|iiƒƒ|iidƒi|iiƒƒdS(NRt
display_labels
%s with %stmonitor_type_labeltvideocard_type_label(RRR
RRRtresolution_from_stringtwthtsize_previewtset_resolutionRt
get_widgettlabeltset_textRRtget_monitor_nametget_videocard_name(RRRRRR((Rt	update_ui6s/"c
CsÎ|iidƒ}d}|iiƒ}ti	ƒ}d}d}	x[|D]S}ti|ƒ}|id|ƒ|i|ƒ||jo
|}	n|d}qFW|ii|ƒ|ii|	ƒ|iiƒdS(Ntresolution_radiobutton_boxiRi(RRRtboxtNonetlastRtavailable_resolutionstgtktMenutres_menutcounttcurrentRtMenuItemtitemtset_datatappendtcurrent_resRtset_menutset_historytshow_all(
RR2R%R,R'RR(R/R+R-((RRAs"


cCsP|iidƒ}|itiƒ|iƒd|_ti	ƒ|i
ƒ|iS(Ntdisplay_dialogi(RRRtdialogtset_positionR)tWIN_POS_CENTERtshowt
dialog_resulttmainthide(RR7((RtrunWs
	

cCs|iiƒiƒidƒ}|iiƒiƒidƒ}|ii	|ƒ|ii
|ƒtiƒ\}}|ii|ƒ|idƒdS(NRRs/etc/X11/xorg.conf(RRR
RRRR	R
RRRt
xf86configtreadConfigFiletxconfigtxconfigpatht
merge_intotwrite(RRARR
RB((Rtfirstboot_apply`scCsG|iiƒiƒidƒ}|iiƒiƒidƒ}|ii	|ƒ|ii
|ƒ|iiƒtjot
|iiƒdjoI|io>|idjo+|ii|iƒ\|_|_|_n|idƒdStiƒ}
d|
_|i|
_tit|iƒdƒ\}}tit|iƒdƒ\}}d|
_$d|
_%t&|ƒt&|ƒf|
i'd<d|
_(t&|ƒt&|ƒf|
i)d<|iii*|
ƒti+d	ƒ}|
i-i*|ƒn|iid}
d|
_|i|
_|i\}}|i\}}d|
_$d|
_%t&|ƒt&|ƒf|
i'd<d|
_(t&|ƒt&|ƒf|
i)d<t
|ii.ƒdjoÇti/ƒ}d
|_d|_1d|_ti2ƒ}|i4iƒiƒidƒ}||_||_5|i6iƒiƒidƒ}ti7|ƒ}|i9i*|ƒ|i:i*|ƒ|ii.i*|ƒn™t
|ii.ƒdjo|ii.d}|i:d}|i4iƒiƒidƒ}||_||_5|i6iƒiƒidƒ}||i9d_;nt
|ii1ƒdjo/ti<ƒ}x	|i>i?D]û}|iAƒ|iBiƒiƒidƒjoÊ|iCƒ|_D|iAƒ|_Ed
|_$d|_d|iFƒ|iGƒ|iHƒf}||_J|iiKƒdjo
|}n/d|iiKƒ|iiMƒ|iiNƒ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ontTruetlenRAtmonitortautoconfig_monitortsecond_monitor_dialogR&tdehydrate_second_monitortsecond_monitor_modeltsecond_monitor_vrefreshtsecond_monitor_hsynctconfigure_second_monitorR?tXF86ConfMonitortsecond_monitort
identifiert	modelnametstringtsplittstrtlower_vrefreshtupper_vrefreshtlower_hsynctupper_hsynctvendort
n_vrefreshtfloattvrefreshtn_hsyncthsynctinsertt
XF86OptiontoptiontoptionstscreentXF86ConfScreent
second_screentdevicetXF86ConfDisplaytdisplay_optiontsecondDepthOptionMenutdefaultdepthtsecondResolutionOptionMenutXF86ModetmodetmodestdisplaytnametXF86ConfDevicetsecond_videocardtvct
videocardstcardtgetDescriptiontsecondVideocardOptionMenut	getDrivertdrivertboardt	getPCIBust	getPCIDevtgetPCIFntsecondPCIBustbusidtget_videocard_PCIBust
primaryPCIBustget_videocard_PCIDevtget_videocard_PCIFntlayouttadjacenciestscrnumtwheret	refscreentXF86ConfAdjacencytsecond_adjacencytxinerama_option_existstclone_option_existstxinerama_optiontclone_optionRRtget_historytvalR,tadjtremoveR!t	get_vsynct	get_hsyncR;R)t	main_quit(RtwidgetRR›RrRyRWRiRRœR`RƒRvRŸRžRhR†RfR,R’R¢R
R~RRg((RtoknsR$+
	!!												
		
+		%	
.

+		4 		




		
"$	%%			cCstiƒdS(N(R)R¦(RR§((Rtcancel\scCstiƒdS(Ni(R)R¦(RR§tevent((Rtdelete_s
cCs¿|ipGti|i|ii|iiiƒ|i|ƒ|_|ii	ƒn|ii
ƒ|iiƒoM|ii|iƒ|ii
ƒ|i|iiƒƒ|iƒd|_ndS(Ni(Rtmonitor_dialogt
monitorDialogt
MonitorDialogRRRWtgetMonitorIDRthydrate_primary_monitort	goto_pathR>tdehydrate_primary_monitortrecalc_modeRtget_resolutionR#RX(RR§R((Rtconfigure_monitorcs



cGsŠ|ip(ti|i|ii|iƒ|_n|iiƒoD|ii|iƒ|ii	ƒ|i
|iiƒƒ|iƒndS(N(
Rtvideocard_dialogtvideocardDialogtVideocardDialogRRt	videocardR>t	dehydrateR³RR´R#(RR((Rtconfigure_videocardts

cCs¿|ipGti|i|ii|iiiƒ|i|ƒ|_|ii	ƒn|ii
ƒ|iiƒoD|ii|iƒ\}}}|iidƒi|ƒd|_n
d|_dS(NtsecondMonitorLabeli(RRYR­R®RRRWR¯Rthydrate_second_monitorR±R>RZtmodelRmRoRR RXR&(RR§RRmRoR¾((RR^s


cGs^|iiƒtjo$|iidƒ|iitƒn!|iidƒ|iitƒdS(Ns7/usr/share/system-config-display/pixmaps/monitor-on.pngs8/usr/share/system-config-display/pixmaps/monitor-off.png(	RRTRRUtmon2t
set_from_filetsettingTablet
set_sensitivetFalse(RR((Rtenable_toggled‘s
cCs¨|iidƒ}|iƒd}|i|ƒ|idƒ|idƒ|iƒd}|iƒd}	|i|ƒtit
dƒƒ}
|
id|i|iiƒƒ|	iƒd}|	iƒd}|	iƒd}|	iƒd}|	i|ƒ|	i|ƒ|	i|ƒ|	i|ƒ|	i|	id	ƒd|	id
ƒƒ|itiƒ|itƒ|iddƒ|idd
ƒ|	i|dddddtiƒ|	i|
dddddtiƒ|	i|dddddtiƒ|	i|dddddtiƒ|	i|dddddtiƒ|	i|dddddtiƒ|
i ƒ|i!|ii"ƒƒ|ii#ƒ}|o!|i%i&|i'|dƒƒn|S(NtnotebookiiiisConfigure...tclickedisn-rowss	n-columnstxaligntyalignf0.5tyoptionsiÿÿÿÿ((RRRRÅtget_childrentvboxR£tset_spacingtset_border_widthtmonitorLabelttableR)tButtonRt
monitorButtontconnectRµRR!tresolutionLabelt
depthLabeltresolutionButtontdepthButtontresizetget_propertytset_justifytJUSTIFY_LEFTt
set_line_wrapRUtset_propertytattachtFILLR:RR´tavailable_color_depthstavailableDepthsR	R4tindex(RRÖRÔRàRÓRÎRÕRËRÅRÏRÑ((Rtget_display_page™sF







&
""""""
!cCs}ydk}dk}WndSnX|iiƒ}|idƒ}|pdSn|d}d}xddddgD]}t
||ƒdjoc||didƒd	}|i
ƒ}|od
||f}n|}|itd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i\iK|ƒ|i\i-d.ƒ|i\iLƒt]|ii^di_ƒd.jo|i9i`taƒnt]|ƒdjoË|ib|iƒ|ii2ƒi3ƒdjo|ii5tcd2ƒƒnd.|_|ii&ƒyAdkd}|ifigdƒ}	|iihd3|	d|	d.fƒWnnX|i'|ii(ƒƒ|iƒnt]|ƒd.jo‚|d.ii|_j|d.ikd|_l|d.imd|_n|i	id4ƒi7|d.iiƒ|id5ƒid6|io|d.iiƒnt]|iiWƒd.jo‡|iiWd.ip}|d7jo|ii-dƒnC|d
jo|ii-d.ƒn"|djo|ii-d8ƒn|iiLƒn|io™y‹|ii^diq}xq|D]i}|itd9joStui3|ivƒd:jo|i	id;ƒi-d.ƒq^	|i	id;ƒi-dƒqõqõWWqq	qq	Xn|id5ƒid6|io|ƒ|id<ƒid6|iwƒ|id=ƒid6|ixƒ|idƒid>|iyƒ|id?ƒid6|iz|ii2ƒƒ|id@ƒid6|i{ƒdS(ANssystem-config-displays
display.gladetdomains./usr/share/system-config-display/display.gladesB/usr/share/system-config-display/pixmaps/system-config-display.pngR6iR	tchangedRtthousands_menu_itemRitmillions_menu_itemiRztthousands_menu_item_2tmillions_menu_item_2tscreenshot_dareairiVtmonitor_top_images8/usr/share/system-config-display/pixmaps/monitor-top.pngtmonitor_base_images9/usr/share/system-config-display/pixmaps/monitor-base.pngtmonitor_left_images:/usr/share/system-config-display/pixmaps/monitor-right.pngtmonitor_right_images9/usr/share/system-config-display/pixmaps/monitor-left.pngsunknown monitorRRthardware_monitor_icons4/usr/share/system-config-display/pixmaps/monitor.pngthardware_videocard_icons6/usr/share/system-config-display/pixmaps/videocard.pngRTtnvttoggledtmon_image_1s7/usr/share/system-config-display/pixmaps/monitor-on.pngtmon_image_2s8/usr/share/system-config-display/pixmaps/monitor-off.pngRÁRiR|RKRˆs(autoconfigured)s%sx%sR¼tsecondMonitorButtonRÆiiRLRPRNt	ok_buttont
cancel_buttontdelete_eventtmonitorConfigButtontvideocardConfigButton(|R„RR)tgladetbindtextdomaintostaccesstF_OKtXMLRR&t
iconPixbufRætpixbuf_new_from_fileRtset_iconRXthardware_stateRRAR	RÒRRR#RõR0RöRztscreenSizePreviewtScreenSizePreviewRtresolution_radioR¬R¶RYtsecond_videocard_dialogRR³RR´RR
Rßt	availableR4RáRÀt
get_directiontTEXT_DIR_RTLR!tlowerRWRïtgetMonitorNameR R"RTtget_videocard_driverRÄRÂRÃtmon1R¿RÁR(R*R+R,R-RR.R/R1R|R3R5tkudzutprobetCLASS_VIDEOtBUS_PCIt	PROBE_ALLtkudzu_videocard_listtget_xconfigtmonitor_listRwtvideocard_listRttscreen_listtvideocard_menuR†tdescRˆRVR•R–t
set_activeRURòRtrhpxl._pyrandrtrhpxlt_pyrandrtgetResRRbR[RmR\RoR]R^R{Rstlayout_optionstoptRRcR¡R¨R©R«RµR»(RRRAR„R1R0R-RR(RR-R+RRR(R)R†R,R&R'R/R
((Rt__init__és&					!					


") 


!

 	
	& *



%(t__name__t
__module__RRR#RR>RER¨R©R«R&RµR»R^RÄRâRòR2(((RR)s 									î					5	(RR?R)t	gtk.gladeR­RR·Rtrhpxl.videocardR-trhpl.translateRtN_t
textdomaintrhpxl.xhwstatetTRUEtFALSEtgettextRR(RR<RR;R)R·R=R­R?R9RR8R-RR((Rt?s"										
	

Anon7 - 2021