From 804a55fbbea260c07ab9d577d9a9e4fa0b46bb55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Fernandes?= Date: Sat, 16 Oct 2021 16:32:47 +0100 Subject: [PATCH] batch-rename-dialog: Don't add separator above first row It doesn't look good. --- src/nautilus-batch-rename-dialog.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/nautilus-batch-rename-dialog.c b/src/nautilus-batch-rename-dialog.c index 982ff1caa..87ad3eb0b 100644 --- a/src/nautilus-batch-rename-dialog.c +++ b/src/nautilus-batch-rename-dialog.c @@ -492,6 +492,13 @@ listbox_header_func (GtkListBoxRow *row, { GtkWidget *separator; + if (before == NULL) + { + /* First row needs no separator */ + gtk_list_box_row_set_header (row, NULL); + return; + } + separator = gtk_list_box_row_get_header (row); if (separator == NULL) {