addhw: Some UI cleanup and simplification

This commit is contained in:
Cole Robinson 2010-03-04 15:29:33 -05:00
parent 7c92a277b2
commit b4f7383d28
2 changed files with 499 additions and 573 deletions

View File

@ -705,6 +705,9 @@ class vmmAddHardware(gobject.GObject):
self.window.get_widget("create-forward").show()
def page_changed(self, notebook, page, page_number):
devbox = self.window.get_widget("host-device")
devbox.hide()
if page_number == PAGE_CHAR:
devtype = self.window.get_widget("char-device-type")
self.change_char_device_type(devtype)
@ -713,6 +716,9 @@ class vmmAddHardware(gobject.GObject):
elif page_number == PAGE_SUMMARY:
self.populate_summary()
elif page_number == PAGE_HOSTDEV:
devbox.show()
return
def populate_summary(self):

File diff suppressed because it is too large Load Diff