[gtk/3-24-warn-fixes: 1/5] menu: Fix condition check



commit d9d3ec7cad305d169b1f5df3c3e9e0fd5fbf6922
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Feb 5 15:18:41 2019 +0100

    menu: Fix condition check
    
    A logical "and" became a binary "and" in commit c35878ec.

 gtk/gtkmenu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index f079f06e91..7b156f9861 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -5392,7 +5392,7 @@ gtk_menu_scroll_to (GtkMenu           *menu,
           if (!priv->upper_arrow_visible || !priv->lower_arrow_visible)
             gtk_widget_queue_draw (GTK_WIDGET (menu));
 
-          if (!priv->upper_arrow_visible &
+          if (!priv->upper_arrow_visible &&
               flags & GTK_MENU_SCROLL_FLAG_ADAPT)
             should_offset_by_arrow = TRUE;
           else


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