[gtk+] Fix scroll_offset handling
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix scroll_offset handling
- Date: Fri, 23 Dec 2011 05:37:33 +0000 (UTC)
commit fbc3db8ba9306a10535ee34f412f1a6853d8124b
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 23 04:45:28 2011 +0000
Fix scroll_offset handling
scroll_offset can be negative here, so replace a > 0 test
by != 0.
gtk/gtkmenu.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index 652aa9a..ac98589 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -4807,7 +4807,7 @@ gtk_menu_position (GtkMenu *menu,
priv->position_y = y;
}
- if (scroll_offset > 0)
+ if (scroll_offset != 0)
{
GtkBorder arrow_border;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]