aboutsummaryrefslogtreecommitdiff
path: root/iw
diff options
context:
space:
mode:
authorwiktor w brodlo <wiktor@brodlo.net>2011-07-09 18:18:20 +0000
committerwiktor w brodlo <wiktor@brodlo.net>2011-07-09 18:18:20 +0000
commit96bd0146470b7f0c8d79dfc1a00d89be76f39e66 (patch)
tree41dcdbd4cc708143af63ad7f44e8857bcccdb5a3 /iw
parentadd the Xorg screen to the dispatcher and installclass (diff)
downloadanaconda-96bd0146470b7f0c8d79dfc1a00d89be76f39e66.tar.gz
anaconda-96bd0146470b7f0c8d79dfc1a00d89be76f39e66.tar.bz2
anaconda-96bd0146470b7f0c8d79dfc1a00d89be76f39e66.zip
The Xorg selection screen
Diffstat (limited to 'iw')
-rw-r--r--iw/xorg_gui.py57
1 files changed, 57 insertions, 0 deletions
diff --git a/iw/xorg_gui.py b/iw/xorg_gui.py
new file mode 100644
index 0000000..9b0f8e2
--- /dev/null
+++ b/iw/xorg_gui.py
@@ -0,0 +1,57 @@
+#
+# xorg_gui.py: gui Xorg/DE/WM settings.
+#
+# Copyright (C) 2011 wiktor w brodlo
+# Copyright (C) 2011 Gentoo Foundation
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+import string
+import gtk
+import gtk.glade
+import gtk.gdk
+import gobject
+import pango
+import sys
+import gui
+
+from iw_gui import *
+
+from constants import *
+import gettext
+_ = lambda x: gettext.ldgettext("anaconda", x)
+
+class XorgWindow(InstallWindow):
+ des = ["fluxbox", "gnome", "kde", "lxde", "xfce4"]
+
+ def getNext(self):
+ for de in des:
+ cb = self.xml.get_widget(de)
+ if cb.get_property("active")
+ self.anaconda.xorg = de
+ return None
+
+ def getScreen(self, anaconda):
+ self.anaconda = anaconda
+ self.intf = anaconda.intf
+
+ (self.xml, self.align) = gui.getGladeWidget("makeconf.glade", "makeconf_align")
+
+ for de in des:
+ icon = self.xml.get_widget(de+"_icon")
+ gui.readImageFromFile(de+".png", image=icon)
+
+ return self.align
+