# HG changeset patch # User Stu Tomlinson # Date 1105480286 0 # Node ID 91f17026b693ace593181646093194756011e5e6 # Parent 1a97d5e88d12a04cd0188f88a84eed3a601f5e64 [gaim-migrate @ 11799] Fix the docklet to work with Gtk < 2.2 (without the cool positioning function though). committer: Tailor Script diff -r 1a97d5e88d12 -r 91f17026b693 plugins/docklet/docklet-x11.c --- 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