]> git.0d.be Git - jack_mixer.git/commitdiff
Fix new output channel not creating from dialog
authorDaniel Sheeler <dsheeler@pobox.com>
Sat, 11 Jul 2020 06:31:18 +0000 (01:31 -0500)
committerDaniel Sheeler <dsheeler@pobox.com>
Sat, 11 Jul 2020 06:31:18 +0000 (01:31 -0500)
channel.py

index 20f6c300581b90596d2939b2d6c89fda8d12ed2c..b92ca1596b090bf33016c6f569716a1df9e10921 100644 (file)
@@ -992,8 +992,11 @@ class ChannelPropertiesDialog(Gtk.Dialog):
 class NewChannelDialog(ChannelPropertiesDialog):
     def create_ui(self):
         ChannelPropertiesDialog.create_ui(self)
-        self.properties_table.attach(Gtk.Label(label='Value'), 0, 1, 2, 3)
+        self.add_initial_value_radio()
+        self.vbox.show_all()
 
+    def add_initial_value_radio(self):
+        self.properties_table.attach(Gtk.Label(label='Value'), 0, 1, 2, 3)
         self.value_hbox = Gtk.HBox()
         self.properties_table.attach(self.value_hbox, 1, 2, 2, 3)
         self.minus_inf = Gtk.RadioButton(label='-Inf')
@@ -1001,7 +1004,6 @@ class NewChannelDialog(ChannelPropertiesDialog):
         self.value_hbox.pack_start(self.minus_inf, True, True, 0)
         self.value_hbox.pack_start(self.zero_dB, True, True, 0)
 
-        self.vbox.show_all()
 
 class NewInputChannelDialog(NewChannelDialog):
     def __init__(self, app):
@@ -1076,6 +1078,8 @@ class NewOutputChannelDialog(NewChannelDialog, OutputChannelPropertiesDialog):
         self.mixer = app.mixer
         self.app = app
         OutputChannelPropertiesDialog.create_ui(self)
+        self.add_initial_value_radio()
+        self.vbox.show_all()
         self.fill_ui()
         self.set_default_size(365, -1)