From 752f32f7dbd4d99f159abdd591e164cf00741b0d Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Wed, 21 Dec 2005 08:33:19 +0000 Subject: Changed the code in options and autopick call back in e-meeting-time-sel.c so that the menus drop at appropriate positions as suggested in the report of the bug #248133 svn path=/trunk/; revision=30918 --- calendar/gui/e-meeting-time-sel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calendar/gui/e-meeting-time-sel.c') diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c index 46c8deb2f5..801347ce3b 100644 --- a/calendar/gui/e-meeting-time-sel.c +++ b/calendar/gui/e-meeting-time-sel.c @@ -1438,7 +1438,7 @@ e_meeting_time_selector_options_menu_position_callback (GtkMenu *menu, /* Calculate our preferred position. */ gdk_window_get_origin (mts->options_button->window, x, y); *x += mts->options_button->allocation.x; - *y += mts->options_button->allocation.y + mts->options_button->allocation.height / 2 - 2; + *y += mts->options_button->allocation.y + mts->options_button->allocation.height - 2; /* Now make sure we are on the screen. */ gtk_widget_size_request (mts->options_menu, &menu_requisition); @@ -1487,7 +1487,7 @@ e_meeting_time_selector_autopick_menu_position_callback (GtkMenu *menu, /* Calculate our preferred position. */ gdk_window_get_origin (mts->autopick_button->window, x, y); *x += mts->autopick_button->allocation.x; - *y += mts->autopick_button->allocation.y + mts->autopick_button->allocation.height / 2 - 2; + *y += mts->autopick_button->allocation.y + mts->autopick_button->allocation.height - 2; /* Now make sure we are on the screen. */ gtk_widget_size_request (mts->autopick_menu, &menu_requisition); -- cgit v1.2.3