[evolution-patches] [calendar-gui] fix for 248133



hi

 The attached patch fixes an UI
 issue in New Meeting dialog (scheduling tab)
 where clicking on Autopick and Options
 menu drops a menubar that covers
 half the Autopick and Options button 
 respectively.

 Calculation of y position of menu is 
 changed to fix this.

regards 
 
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2802
diff -u -p -r1.2802 ChangeLog
--- ChangeLog	25 Aug 2005 10:26:27 -0000	1.2802
+++ ChangeLog	31 Aug 2005 06:16:50 -0000
@@ -1,3 +1,12 @@
+2005-08-31  P. S. Chakravarthi <pchakravarthi novell com>
+
+	Fix #248133
+	* gui/e-meeting-time-sel.c
+	(e_meeting_time_selector_autopick_menu_position_callback),
+	(e_meeting_time_selector_options_menu_position_callback):
+	change the y position calculation in theseso that the menu 
+	is shown below the button.
+
 2005-08-24  Chenthill Palanisamy  <pchenthill novell com>
 
 	Fixes #313705
Index: gui/e-meeting-time-sel.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-meeting-time-sel.c,v
retrieving revision 1.69
diff -u -p -r1.69 e-meeting-time-sel.c
--- gui/e-meeting-time-sel.c	24 Aug 2005 03:07:49 -0000	1.69
+++ gui/e-meeting-time-sel.c	31 Aug 2005 06:16:50 -0000
@@ -1435,7 +1435,7 @@ e_meeting_time_selector_options_menu_pos
 	/* 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);
@@ -1484,7 +1484,7 @@ e_meeting_time_selector_autopick_menu_po
 	/* 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);


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