[gnome-software: 3/13] update-list: Drop the row header




commit fb1c8609c60106549cf7dc41eb2a9d3df604300f
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Aug 3 14:06:02 2021 +0200

    update-list: Drop the row header
    
    This fixes the .content style class.

 src/gs-update-list.c | 13 -------------
 1 file changed, 13 deletions(-)
---
diff --git a/src/gs-update-list.c b/src/gs-update-list.c
index aa8b4735b..127e492fc 100644
--- a/src/gs-update-list.c
+++ b/src/gs-update-list.c
@@ -56,16 +56,6 @@ gs_update_list_add_app (GsUpdateList *update_list, GsApp *app)
        gtk_widget_show (app_row);
 }
 
-static void
-list_header_func (GtkListBoxRow *row,
-                 GtkListBoxRow *before,
-                 gpointer user_data)
-{
-       GtkWidget *header;
-       header = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
-       gtk_list_box_row_set_header (row, header);
-}
-
 static gint
 list_sort_func (GtkListBoxRow *a,
                GtkListBoxRow *b,
@@ -97,9 +87,6 @@ gs_update_list_init (GsUpdateList *update_list)
        priv->sizegroup_name = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
        priv->sizegroup_desc = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
 
-       gtk_list_box_set_header_func (GTK_LIST_BOX (update_list),
-                                     list_header_func,
-                                     update_list, NULL);
        gtk_list_box_set_sort_func (GTK_LIST_BOX (update_list),
                                    list_sort_func,
                                    update_list, NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]