summaryrefslogtreecommitdiffstats
path: root/iw/fdisk_gui.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2002-06-17 19:14:43 +0000
committerMatt Wilson <msw@redhat.com>2002-06-17 19:14:43 +0000
commitcd6c235fd0291888df9d2d8bfd378c1459b5387a (patch)
tree40c8111be7c6b2f5db393e7dcbc16f3acb2a819e /iw/fdisk_gui.py
parent4f96a697569827dd88e662f884e0fa000d962b75 (diff)
downloadanaconda-cd6c235fd0291888df9d2d8bfd378c1459b5387a.tar.gz
anaconda-cd6c235fd0291888df9d2d8bfd378c1459b5387a.tar.xz
anaconda-cd6c235fd0291888df9d2d8bfd378c1459b5387a.zip
1) replace zvt in fdisk screen with vte (fdisk_gui.py, upd-instroot)
2) avoid going into a infinite loop when looking for partitions in the tree model -- this was happening because the partition in question was a parent node, and was being skipped.
Diffstat (limited to 'iw/fdisk_gui.py')
-rw-r--r--iw/fdisk_gui.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/iw/fdisk_gui.py b/iw/fdisk_gui.py
index 2eb079c54..ac0a0917e 100644
--- a/iw/fdisk_gui.py
+++ b/iw/fdisk_gui.py
@@ -13,7 +13,7 @@
import gtk
from iw_gui import *
-from gnome import zvt
+import vte
from rhpl.translate import _
from dispatch import DISPATCH_NOOP
import partitioning
@@ -36,7 +36,7 @@ class FDiskWindow (InstallWindow):
def child_died (self, widget, button):
- self.windowContainer.remove (self.windowContainer.children ()[0])
+ self.windowContainer.remove (self.windowContainer.get_children ()[0])
self.windowContainer.pack_start (self.buttonBox)
button.set_state (gtk.STATE_NORMAL)
try:
@@ -52,9 +52,10 @@ class FDiskWindow (InstallWindow):
def button_clicked (self, widget, drive):
- term = zvt.Term(80, 24)
- term.set_del_key_swap(gtk.TRUE)
- term.connect("child_died", self.child_died, widget)
+ term = vte.Terminal()
+ term.set_encoding("UTF-8")
+ term.set_font_from_string("monospace")
+ term.connect("child_exited", self.child_died, widget)
self.drive = drive
# free our fd's to the hard drive -- we have to
@@ -66,9 +67,7 @@ class FDiskWindow (InstallWindow):
isys.makeDevInode(drive, '/tmp/' + drive)
- if term.forkpty() == 0:
- env = os.environ
- os.execve (path, (path, '/tmp/' + drive), env)
+ term.fork_command(path, (path, '/tmp/' + drive))
term.show()
self.windowContainer.remove(self.buttonBox)
@@ -107,7 +106,7 @@ class FDiskWindow (InstallWindow):
sw = gtk.ScrolledWindow()
sw.add_with_viewport(box)
sw.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
- viewport = sw.children()[0]
+ viewport = sw.get_children()[0]
viewport.set_shadow_type(gtk.SHADOW_ETCHED_IN)
sw.set_size_request(-1, 400)