gaim/gaim

Parents 6d79fa3ebf80
Children 7b4cfc4fbee6
Fix the docklet to work with Gtk < 2.2 (without the cool positioning function though).
--- a/plugins/docklet/docklet-x11.c Tue Jan 11 12:27:29 2005 -0500
+++ b/plugins/docklet/docklet-x11.c Tue Jan 11 16:51:14 2005 -0500
@@ -123,6 +123,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)
@@ -147,6 +148,7 @@
*push_in = TRUE;
}
+#endif
static void
docklet_x11_destroy()
@@ -207,7 +209,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