--- system-config-soundcard-1.2.10/src/soundcard.py~ 2005-04-01 14:46:39.429262368 +1000 +++ system-config-soundcard-1.2.10/src/soundcard.py 2005-04-01 14:46:46.354209616 +1000 @@ -72,7 +72,7 @@ class childWindow: #Create an internal box that will contain a list if there's multiple cards #Or just a box if there's only one. - self.box = gtk.VBox(gtk.FALSE, 8) + self.box = gtk.VBox(False, 8) self.notebook = gtk.Notebook() @@ -136,8 +136,8 @@ class childWindow: if len(self.cardList) == 1: #There is only one card, so hide the tab and border - self.notebook.set_show_tabs(gtk.FALSE) - self.notebook.set_show_border(gtk.FALSE) + self.notebook.set_show_tabs(False) + self.notebook.set_show_border(False) self.label = gtk.Label(_("The following audio device was detected.")) self.box.pack_start(self.notebook) @@ -147,7 +147,7 @@ class childWindow: self.label = gtk.Label(_("The following audio devices were detected.")) #Create a menu - deviceBox = gtk.HBox(gtk.FALSE, 8) + deviceBox = gtk.HBox(False, 8) self.primaryDeviceOptionMenu = gtk.OptionMenu() self.primaryDeviceMenu = gtk.Menu() @@ -162,8 +162,8 @@ class childWindow: self.box.pack_start(self.notebook) - deviceBox.pack_start(gtk.Label(_("Primary audio device:")), gtk.FALSE) - deviceBox.pack_start(self.primaryDeviceOptionMenu, gtk.TRUE) + deviceBox.pack_start(gtk.Label(_("Primary audio device:")), False) + deviceBox.pack_start(self.primaryDeviceOptionMenu, True) self.box.pack_start(deviceBox) self.primaryDeviceOptionMenu.connect("changed", self.changeDefault) @@ -225,7 +225,7 @@ class childWindow: dlg.set_default_size(100, 100) dlg.set_position (gtk.WIN_POS_CENTER_ON_PARENT) dlg.set_border_width(2) - dlg.set_modal(gtk.TRUE) + dlg.set_modal(True) rc = dlg.run() dlg.destroy() @@ -273,19 +273,19 @@ class childWindow: def launch(self): self.mainVBox = gtk.VBox() - self.internalVBox = gtk.VBox(gtk.FALSE, 10) + self.internalVBox = gtk.VBox(False, 10) self.internalVBox.set_border_width(10) eventBox = gtk.EventBox() eventBox.add(self.icon_box) eventBox.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse ("#cc0000")) - self.icon_box.pack_start(self.icon, gtk.FALSE, gtk.TRUE) + self.icon_box.pack_start(self.icon, False, True) self.icon_box.pack_start(self.title) - self.mainVBox.pack_start(eventBox, gtk.FALSE) + self.mainVBox.pack_start(eventBox, False) self.msg_label.set_size_request(500, -1) - self.internalVBox.pack_start(self.msg_label, gtk.FALSE) - self.mainVBox.pack_start(self.internalVBox, gtk.TRUE) + self.internalVBox.pack_start(self.msg_label, False) + self.mainVBox.pack_start(self.internalVBox, True) return self.mainVBox, eventBox def stand_alone(self): @@ -300,11 +300,11 @@ class childWindow: self.okButton.connect("clicked", self.closeClicked) self.toplevel.set_spacing(5) - self.icon_box.pack_start(self.icon, gtk.FALSE) - self.icon_box.pack_start(self.label, gtk.FALSE) - self.toplevel.pack_start(self.icon_box, gtk.FALSE) + self.icon_box.pack_start(self.icon, False) + self.icon_box.pack_start(self.label, False) + self.toplevel.pack_start(self.icon_box, False) - self.toplevel.pack_start(self.box, gtk.FALSE) + self.toplevel.pack_start(self.box, False) #Remove the hsep from the dialog. It's ugly hsep = self.mainWindow.get_children()[0].get_children()[0] @@ -325,7 +325,7 @@ class childWindow: dlg.set_default_size(100, 100) dlg.set_position (gtk.WIN_POS_CENTER_ON_PARENT) dlg.set_border_width(2) - dlg.set_modal(gtk.TRUE) + dlg.set_modal(True) rc = dlg.run() dlg.destroy() return