[nautilus/wip/antoniof/gtk4-preparation-batch-rename-dialog: 23/25] batch-rename-dialog: Don't add separator above first row
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/gtk4-preparation-batch-rename-dialog: 23/25] batch-rename-dialog: Don't add separator above first row
- Date: Wed, 3 Nov 2021 00:52:27 +0000 (UTC)
commit 804a55fbbea260c07ab9d577d9a9e4fa0b46bb55
Author: António Fernandes <antoniof gnome org>
Date: Sat Oct 16 16:32:47 2021 +0100
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]