call gtk_menu_set_monitor() only for GTK+ < 2.4.4 and added a #warning

2004-07-06  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpwidgets-utils.c (gimp_menu_position)
	(gimp_button_menu_position): call gtk_menu_set_monitor() only
	for GTK+ < 2.4.4 and added a #warning about it.
This commit is contained in:
Michael Natterer
2004-07-06 15:05:47 +00:00
committed by Michael Natterer
parent cc09735a20
commit fa668df1ee
2 changed files with 14 additions and 2 deletions

View File

@ -301,7 +301,10 @@ gimp_menu_position (GtkMenu *menu,
gtk_menu_set_screen (menu, screen);
if (TRUE /* gtk_check_version (2, 4, 1) */)
#ifdef __GNUC__
#warning FIXME: remove this hack as soon as we depend on GTK+ 2.4.4
#endif
if (gtk_check_version (2, 4, 4))
gtk_menu_set_monitor (menu, monitor);
gtk_widget_size_request (widget, &requisition);
@ -377,7 +380,10 @@ gimp_button_menu_position (GtkWidget *button,
gtk_menu_set_screen (menu, screen);
if (TRUE /* gtk_check_version (2, 4, 1) */)
#ifdef __GNUC__
#warning FIXME: remove this hack as soon as we depend on GTK+ 2.4.4
#endif
if (gtk_check_version (2, 4, 4))
gtk_menu_set_monitor (menu, monitor);
*x += button->allocation.x;