[gtk+] shortcuts: Fix view filtering



commit 1b174a6f1633645e86b57112ebac206e84963312
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Dec 15 18:40:51 2015 -0500

    shortcuts: Fix view filtering
    
    When adding invisible groups to the pages/columns, we were
    mistakenly creating new columns because the row count
    stayed at zero.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759517

 gtk/gtkshortcutssection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkshortcutssection.c b/gtk/gtkshortcutssection.c
index 03dac89..0ca0386 100644
--- a/gtk/gtkshortcutssection.c
+++ b/gtk/gtkshortcutssection.c
@@ -645,7 +645,7 @@ gtk_shortcuts_section_reflow_groups (GtkShortcutsSection *self)
       if (!visible)
         height = 0;
 
-      if (n_rows == 0 || n_rows + height > self->max_height)
+      if (current_column == NULL || n_rows + height > self->max_height)
         {
           GtkWidget *column;
           GtkSizeGroup *group;


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