From 7c575b8ccfba269f4d095d5b294eb87a06bab7b0 Mon Sep 17 00:00:00 2001 From: Mohammed Sadiq Date: Wed, 12 May 2021 18:30:27 +0530 Subject: [PATCH] sound: Use content style for listboxes --- panels/sound/cc-sound-panel.c | 10 - panels/sound/cc-sound-panel.ui | 374 ++++++++++++++++----------------- 2 files changed, 184 insertions(+), 200 deletions(-) diff --git a/panels/sound/cc-sound-panel.c b/panels/sound/cc-sound-panel.c index 200df4388..2d8840fbf 100644 --- a/panels/sound/cc-sound-panel.c +++ b/panels/sound/cc-sound-panel.c @@ -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", diff --git a/panels/sound/cc-sound-panel.ui b/panels/sound/cc-sound-panel.ui index 140feaa96..b5706e28b 100644 --- a/panels/sound/cc-sound-panel.ui +++ b/panels/sound/cc-sound-panel.ui @@ -47,14 +47,12 @@ - + True - - - True - label_size_group - - + label_size_group + @@ -69,118 +67,89 @@ - + True + none + - + True - none + False - + True - False + 12 + 12 - + True - 12 - 12 - - - True - end - 0 - Output Device - - - - - True - vertical - True - 9 - - - True - 6 - - - True - True - - - - - - True - Test - - - - - - - - True - - - - + end + 0 + Output Device - - - - - True - False True - 12 - 12 - - - True - end - 0 - Configuration - - + vertical + True + 9 True 6 - + True True + + + + + + True + Test + + + + True + + + + + + + True + False - + True - False + 12 + 12 + + + True + end + 0 + Configuration + + True - 12 - 12 + 6 - - True - end - 0 - Balance - - - - + True True @@ -189,56 +158,83 @@ + + + + + True + False - + True - False + 12 + 12 - + True - 12 - 12 - - - True - end - 0 - Fade - - - - - True - True - - + end + 0 + Balance + + + + + True + True + + + + + True + False - + True - False + 12 + 12 - + True - 12 - 12 - - - True - end - 0 - Subwoofer - - - - - True - True - - + end + 0 + Fade + + + + + True + True + + + + + + + + + True + False + + + True + 12 + 12 + + + True + end + 0 + Subwoofer + + + + + True + True @@ -259,109 +255,107 @@ - + True + none + - + True - none + False - + True - False + 12 + 12 + + + True + end + 0 + Input Device + + True - 12 - 12 + vertical + True + 9 - + True - end - 0 - Input Device + True + - + True - vertical - True - 9 - - - True - True - - - - - - True - - + + + + + True + False - + True - False + 12 + 12 + + + True + end + 0 + Configuration + + True - 12 - 12 + 6 - + True - end - 0 - Configuration - - - - - True - 6 - - - True - True - - + True + + + + + True + False - + True - False + 12 + 12 - + True - 12 - 12 - - - True - end - 0 - Volume - - - - - True - True - - + end + 0 + Volume + + + + + True + True