summaryrefslogtreecommitdiffstats
path: root/iw/xconfig_gui.py
diff options
context:
space:
mode:
authorbfox <bfox>2000-12-15 18:17:46 +0000
committerbfox <bfox>2000-12-15 18:17:46 +0000
commit5b310f50924fc616a4007901a7ead6c28abfd01d (patch)
treee309297148432afd7dfb0ee01b9932ad45c3c38f /iw/xconfig_gui.py
parentae50092c725834a3f5f8fcebb543471ad19834ed (diff)
downloadanaconda-5b310f50924fc616a4007901a7ead6c28abfd01d.tar.gz
anaconda-5b310f50924fc616a4007901a7ead6c28abfd01d.tar.xz
anaconda-5b310f50924fc616a4007901a7ead6c28abfd01d.zip
Screen now remembers if the user has selected a default desktop other than GNOME.
Diffstat (limited to 'iw/xconfig_gui.py')
-rw-r--r--iw/xconfig_gui.py51
1 files changed, 33 insertions, 18 deletions
diff --git a/iw/xconfig_gui.py b/iw/xconfig_gui.py
index 6adcdf86f..8edbfb9fb 100644
--- a/iw/xconfig_gui.py
+++ b/iw/xconfig_gui.py
@@ -42,6 +42,8 @@ class XCustomWindow (InstallWindow):
self.todo.resState = self.selectedRes
self.todo.depthState = self.selectedDepth
+ self.todo.instClass.setDesktop (self.newDesktop)
+
# print "Res", self.todo.resState
# print "Depth", self.todo.depthState
@@ -371,8 +373,6 @@ class XCustomWindow (InstallWindow):
# self.box.pack_start (hbox, FALSE)
self.box.pack_start (test, FALSE)
-
-
#--If both KDE and GNOME are selected
if ((self.todo.hdList.has_key('gnome-core')
and self.todo.hdList['gnome-core'].selected)
@@ -393,25 +393,40 @@ class XCustomWindow (InstallWindow):
self.vbox4 = GtkVBox()
gnome_radio = GtkRadioButton (None, (_("GNOME")))
- gnome_radio.connect ("clicked", self.desktop_cb, "GNOME")
vbox3.pack_start (gnome_radio, TRUE, FALSE, 2)
-
- im = self.ics.readPixmap ("gnome.png")
- if im:
- im.render ()
- pix = im.make_pixmap ()
- a = GtkAlignment ()
- a.add (pix)
- a.set (0.5, 0.5, 1.0, 1.0)
- self.vbox4.pack_start (a, TRUE, TRUE)
-
- kde_radio = GtkRadioButton(gnome_radio, (_("KDE")))
- kde_radio.connect ("clicked", self.desktop_cb, "KDE")
-
+ kde_radio = GtkRadioButton(gnome_radio, (_("KDE")))
vbox3.pack_start (kde_radio, TRUE, FALSE, 2)
-
self.hbox4.pack_start (vbox3)
- self.hbox4.pack_start (self.vbox4)
+
+
+ #--Set the desktop GUI widget to what the user has selected
+ if self.todo.instClass.getDesktop () == "GNOME":
+ self.newDesktop = "GNOME"
+ gnome_radio.set_active (TRUE)
+ im = self.ics.readPixmap ("gnome.png")
+ if im:
+ im.render ()
+ pix = im.make_pixmap ()
+ a = GtkAlignment ()
+ a.add (pix)
+ a.set (0.5, 0.5, 1.0, 1.0)
+ self.vbox4.pack_start (a, TRUE, TRUE)
+ self.hbox4.pack_start (self.vbox4)
+
+ elif self.todo.instClass.getDesktop () == "KDE":
+ kde_radio.set_active (TRUE)
+ im = self.ics.readPixmap ("kde.png")
+ if im:
+ im.render ()
+ pix = im.make_pixmap ()
+ a = GtkAlignment ()
+ a.add (pix)
+ a.set (0.5, 0.5, 1.0, 1.0)
+ self.vbox4.pack_start (a, TRUE, TRUE)
+ self.hbox4.pack_start (self.vbox4)
+
+ gnome_radio.connect ("clicked", self.desktop_cb, "GNOME")
+ kde_radio.connect ("clicked", self.desktop_cb, "KDE")
self.box.pack_start (hbox3, FALSE, TRUE, 2)
elif ((self.todo.hdList.has_key('gnome-core')