]> Pileus Git - ~andy/gtk/commitdiff
Fix scroll_offset handling
authorMatthias Clasen <mclasen@redhat.com>
Fri, 23 Dec 2011 04:45:28 +0000 (04:45 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 23 Dec 2011 05:36:20 +0000 (00:36 -0500)
scroll_offset can be negative here, so replace a > 0 test
by != 0.

gtk/gtkmenu.c

index 652aa9a1a5cd1f7bf4b7c686b3585575bacba4f3..ac98589367ee642ac17d6e2ae0cfe1f51068d2f2 100644 (file)
@@ -4807,7 +4807,7 @@ gtk_menu_position (GtkMenu  *menu,
       priv->position_y = y;
     }
 
-  if (scroll_offset > 0)
+  if (scroll_offset != 0)
     {
       GtkBorder arrow_border;