Replace the Audio Backend ComboBoxText to a ComboBox with a custom model (#1451)

* Use a combobox with a custom model to be able to disable entries within it

* Address Ack's comments
This commit is contained in:
Xpl0itR 2020-08-09 21:46:06 +01:00 committed by GitHub
parent 9c6a3aacc2
commit 58f65b6523
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 67 additions and 50 deletions

View file

@ -1476,15 +1476,19 @@
</packing>
</child>
<child>
<object class="GtkBox" id="AudioBackendBox">
<object class="GtkBox" id="_audioBackendBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<placeholder/>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Change System Region</property>
<property name="halign">end</property>
<property name="margin_right">5</property>
<property name="label" translatable="yes">Audio Backend: </property>
</object>
<packing>
@ -1494,23 +1498,6 @@
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkComboBoxText" id="_audioBackendSelect">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Change Audio Backend</property>
<property name="margin_left">5</property>
<property name="active_id">Dummy</property>
<items>
<item id="Dummy" translatable="yes">Dummy</item>
</items>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>