summaryrefslogtreecommitdiffstats
path: root/doc/api
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api')
0 files changed, 0 insertions, 0 deletions
href='#n49'>49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
#
# xsetup.py - handles anaconda specific XFree86 needs
#
# Michael Fulbright <msf@redhat.com>
#
# Copyright 2002,2003 Red Hat, Inc.
#
# This software may be freely redistributed under the terms of the GNU
# library public license.
#
# You should have received a copy of the GNU Library Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

#
# should probably go in rhpl
#
import iutil
import rhpl.xserver as xserver
from rhpl.translate import _


import string
class XSetup:

    def __init__(self, hwstate):
	self.skipx = 0
	self.imposed_sane_default = 0
	self.xhwstate = hwstate

    #
    # mouse and keyboard maybe should be part of this object
    #
    # really all of this should be in rhpl probably
    #
    def write(self, fn, mouse, keyboard):
	#
	# always turn dri on
	#
	self.xhwstate.set_dri_enabled(1)

	#
	# XXX - cleanup monitor name to not include 'DDC Probed Monitor'
	#       in its string if its there.
	#
	#       This is around for legacy reasons.  The monitor description
	#       string passed around inside anaconda includes this prefix
	#       so that the UI can properly display the monitor as a DDC
	#       probed value versus a user selected value.
	#
	monname = self.xhwstate.get_monitor_name()
	if monname is not None:
	    ddc_monitor_string = _("DDC Probed Monitor")
	    if monname[:len(ddc_monitor_string)] == ddc_monitor_string: