aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-01-14 10:17:44 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-01-14 10:17:44 +0000
commitb5e850c9a89eb65036fee056776817c4969ff803 (patch)
tree1d1ece252dc3678b8c6204ae0189edf028d5eee6
parent13cda7cefaab6b0eef7b4718629f8ce31cd9eff0 (diff)
fixed popup menu position.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@8 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--src/menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/menu.c b/src/menu.c
index 82c40cd5..1528b96c 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -214,7 +214,7 @@ void menu_button_position(GtkMenu *menu, gint *x, gint *y, gboolean *push_in,
if (xpos + width > scr_width)
xpos -= (xpos + width) - scr_width;
if (ypos + height > scr_height)
- ypos = button->requisition.height + height;
+ ypos -= button->requisition.height + height;
if (xpos < 0)
xpos = 0;
if (ypos < 0)