sound: Use content style for listboxes

This commit is contained in:
Mohammed Sadiq 2021-05-12 18:30:27 +05:30 committed by Robert Ancell
parent e09ecc41aa
commit 7c575b8ccf
2 changed files with 184 additions and 200 deletions

View file

@ -258,16 +258,6 @@ cc_sound_panel_init (CcSoundPanel *self)
gtk_widget_init_template (GTK_WIDGET (self));
gtk_list_box_set_header_func (self->input_list_box,
cc_list_box_update_header_func,
NULL, NULL);
gtk_list_box_set_header_func (self->output_list_box,
cc_list_box_update_header_func,
NULL, NULL);
gtk_list_box_set_header_func (GTK_LIST_BOX (self->stream_list_box),
cc_list_box_update_header_func,
NULL, NULL);
self->sound_settings = g_settings_new (KEY_SOUNDS_SCHEMA);
g_signal_connect_object (self->sound_settings,
"changed::allow-volume-above-100-percent",

View file

@ -46,15 +46,13 @@
</attributes>
</object>
</child>
<child>
<object class="GtkFrame">
<property name="visible">True</property>
<child>
<object class="CcStreamListBox" id="stream_list_box">
<property name="visible">True</property>
<property name="label-size-group">label_size_group</property>
</object>
</child>
<style>
<class name="content"/>
</style>
</object>
</child>
<child>
@ -68,13 +66,13 @@
</attributes>
</object>
</child>
<child>
<object class="GtkFrame">
<property name="visible">True</property>
<child>
<object class="GtkListBox" id="output_list_box">
<property name="visible">True</property>
<property name="selection_mode">none</property>
<style>
<class name="content"/>
</style>
<child>
<object class="GtkListBoxRow">
<property name="visible">True</property>
@ -245,8 +243,6 @@
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
@ -258,13 +254,13 @@
</attributes>
</object>
</child>
<child>
<object class="GtkFrame">
<property name="visible">True</property>
<child>
<object class="GtkListBox" id="input_list_box">
<property name="visible">True</property>
<property name="selection_mode">none</property>
<style>
<class name="content"/>
</style>
<child>
<object class="GtkListBoxRow">
<property name="visible">True</property>
@ -368,8 +364,6 @@
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>