[epiphany/wip/exalm/libhandy-take-2: 19/19] cookies-dialog: Hide filtered out rows when searching



commit 2e2ca7615adf5e3c769d33656928a52dafef1248
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sat May 30 16:03:08 2020 +0500

    cookies-dialog: Hide filtered out rows when searching
    
    Due to how GTK CSS works, children with
    gtk_widget_set_child_visible(child, FALSE) still count as visible and cause
    glitches with :first-child and :last-child. To work around that, set
    visible property as well.

 src/preferences/cookies-dialog.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/preferences/cookies-dialog.c b/src/preferences/cookies-dialog.c
index fd205ff9c..776050b09 100644
--- a/src/preferences/cookies-dialog.c
+++ b/src/preferences/cookies-dialog.c
@@ -212,6 +212,8 @@ filter_func (GtkListBoxRow *row,
   if (result)
     ephy_data_dialog_set_has_search_results (EPHY_DATA_DIALOG (self), TRUE);
 
+  gtk_widget_set_visible (GTK_WIDGET (row), result);
+
   return result;
 }
 


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