diff options
author | Alexander Mikhaylenko <alexm@gnome.org> | 2021-01-28 03:01:15 +0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@gnome.org> | 2021-01-28 14:42:55 +0000 |
commit | 8d505327d55edeec25f9d82cf65e8d00b72ba817 (patch) | |
tree | 9b4bed683af1e269f5fb2e0a1d5a785a9569985b /src/ephy-pages-view.c | |
parent | 16342c1cf784a42ee18ce7193b03c653d63dbadf (diff) | |
download | epiphany-8d505327d55edeec25f9d82cf65e8d00b72ba817.tar.gz |
Tweak page list styles
Match GTK4 and the upcoming new tabs more closely.
Since the close button style is shared with the bookmark tags, match that
as well.
Diffstat (limited to 'src/ephy-pages-view.c')
-rw-r--r-- | src/ephy-pages-view.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/ephy-pages-view.c b/src/ephy-pages-view.c index 13485f816..bad9335cb 100644 --- a/src/ephy-pages-view.c +++ b/src/ephy-pages-view.c @@ -181,33 +181,10 @@ ephy_pages_view_class_init (EphyPagesViewClass *klass) } static void -separator_header (GtkListBoxRow *row, - GtkListBoxRow *before, - gpointer user_data) -{ - GtkWidget *header; - - if (before == NULL) { - gtk_list_box_row_set_header (row, NULL); - - return; - } - - if (gtk_list_box_row_get_header (row) != NULL) - return; - - header = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); - gtk_widget_show (header); - gtk_list_box_row_set_header (row, header); -} - -static void ephy_pages_view_init (EphyPagesView *self) { gtk_widget_init_template (GTK_WIDGET (self)); - gtk_list_box_set_header_func (self->list_box, separator_header, NULL, NULL); - self->list_store = g_list_store_new (EPHY_TYPE_PAGE_ROW); gtk_list_box_bind_model (self->list_box, |