changeset 8247:4a6448907382

[gaim-migrate @ 8970] someone find out if this fixes the compile for gtk 2.0.x committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 12 Feb 2004 21:36:58 +0000
parents e7524f4b4ed2
children fabcfd9a7c1c
files src/gtkutils.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkutils.c	Thu Feb 12 20:58:36 2004 +0000
+++ b/src/gtkutils.c	Thu Feb 12 21:36:58 2004 +0000
@@ -1397,6 +1397,7 @@
 	g_object_unref (relation);
 }
 
+#if GTK_CHECK_VERSION(2,2,0)
 static void
 gaim_gtk_menu_position_func(GtkMenu *menu,
 							gint *x,
@@ -1546,6 +1547,8 @@
 	}
 }
 
+#endif
+
 void
 gaim_gtk_treeview_popup_menu_position_func(GtkMenu *menu,
 										   gint *x,
@@ -1566,5 +1569,7 @@
 
 	*x += rect.x+rect.width;
 	*y += rect.y+rect.height+ythickness;
+#if GTK_CHECK_VERSION(2,2,0)
 	gaim_gtk_menu_position_func (menu, x, y, push_in, data);
+#endif
 }