[gnome-initial-setup: 2/4] keyboard: Drop the header for the first row



commit adc95643dc9bfae074a1958990a3609e73817308
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Mon Jul 29 14:30:51 2019 +0200

    keyboard: Drop the header for the first row
    
    Drop the header for the first row instead of letting it as-is. This
    ensures the first row never has a header, which is needed when
    searching as the new first row may already have a header.

 gnome-initial-setup/pages/keyboard/cc-input-chooser.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gnome-initial-setup/pages/keyboard/cc-input-chooser.c 
b/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
index 4ee2926..1c34ef7 100644
--- a/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
+++ b/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
@@ -581,8 +581,10 @@ update_header_func (GtkListBoxRow *child,
 {
         GtkWidget *header;
 
-        if (before == NULL)
+        if (before == NULL) {
+                gtk_list_box_row_set_header (child, NULL);
                 return;
+        }
 
         header = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
         gtk_list_box_row_set_header (child, header);


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