[gnome-control-center] search: Use content style for listboxes
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] search: Use content style for listboxes
- Date: Wed, 19 May 2021 03:31:12 +0000 (UTC)
commit 453eb3adaf59ca4fde6cd33e6e77a8c393b9e9bc
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Wed May 12 19:13:39 2021 +0530
search: Use content style for listboxes
panels/search/cc-search-panel.c | 3 ---
panels/search/cc-search-panel.ui | 12 +++++-------
2 files changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/panels/search/cc-search-panel.c b/panels/search/cc-search-panel.c
index b0d4d42d6..6b2b9416a 100644
--- a/panels/search/cc-search-panel.c
+++ b/panels/search/cc-search-panel.c
@@ -33,7 +33,6 @@ struct _CcSearchPanel
GtkWidget *list_box;
GtkWidget *search_vbox;
- GtkWidget *search_frame;
GtkWidget *settings_button;
CcSearchPanelRow *selected_row;
@@ -664,7 +663,6 @@ cc_search_panel_init (CcSearchPanel *self)
gtk_list_box_set_sort_func (GTK_LIST_BOX (self->list_box),
(GtkListBoxSortFunc)list_sort_func, self, NULL);
- gtk_list_box_set_header_func (GTK_LIST_BOX (self->list_box), cc_list_box_update_header_func, NULL, NULL);
gtk_widget_set_sensitive (self->settings_button, cc_search_locations_dialog_is_available ());
@@ -692,7 +690,6 @@ cc_search_panel_class_init (CcSearchPanelClass *klass)
gtk_widget_class_bind_template_child (widget_class, CcSearchPanel, list_box);
gtk_widget_class_bind_template_child (widget_class, CcSearchPanel, search_vbox);
- gtk_widget_class_bind_template_child (widget_class, CcSearchPanel, search_frame);
gtk_widget_class_bind_template_child (widget_class, CcSearchPanel, settings_button);
gtk_widget_class_bind_template_callback (widget_class, settings_button_clicked);
diff --git a/panels/search/cc-search-panel.ui b/panels/search/cc-search-panel.ui
index 731cc95d2..711c37527 100644
--- a/panels/search/cc-search-panel.ui
+++ b/panels/search/cc-search-panel.ui
@@ -35,17 +35,15 @@
</object>
</child>
<child>
- <object class="GtkFrame" id="search_frame">
+ <object class="GtkListBox" id="list_box">
<property name="visible">True</property>
- <child>
- <object class="GtkListBox" id="list_box">
- <property name="visible">True</property>
- </object>
- </child>
+ <style>
+ <class name="content"/>
+ </style>
</object>
</child>
</object>
- </child>
+ </child>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]