changeset 10505:91f17026b693

[gaim-migrate @ 11799] Fix the docklet to work with Gtk < 2.2 (without the cool positioning function though). committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 11 Jan 2005 21:51:26 +0000
parents 1a97d5e88d12
children 4f67724c207c
files plugins/docklet/docklet-x11.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/docklet/docklet-x11.c	Tue Jan 11 17:25:06 2005 +0000
+++ b/plugins/docklet/docklet-x11.c	Tue Jan 11 21:51:26 2005 +0000
@@ -129,6 +129,7 @@
 	gtk_image_set_from_pixbuf(GTK_IMAGE(image), blank_icon);
 }
 
+#if GTK_CHECK_VERSION(2,2,0)
 static void
 docklet_x11_position_menu(GtkMenu *menu, int *x, int *y, gboolean *push_in,
 						  gpointer user_data)
@@ -153,6 +154,7 @@
 
 	*push_in = TRUE;
 }
+#endif
 
 static void
 docklet_x11_destroy()
@@ -229,7 +231,11 @@
 	docklet_x11_destroy,
 	docklet_x11_update_icon,
 	docklet_x11_blank_icon,
+#if GTK_CHECK_VERSION(2,2,0)
 	docklet_x11_position_menu
+#else
+	NULL
+#endif
 };
 
 void