From 0d171694caba5c8f01779c01fc0cdfdea4f120fa Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 5 Nov 2008 14:53:32 +0000 Subject: Fix multi-dnd with gtk 2.14 svn path=/trunk/; revision=8607 --- lib/egg/eggtreemultidnd.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/egg/eggtreemultidnd.c b/lib/egg/eggtreemultidnd.c index 9f3977d69..070f5c4e3 100644 --- a/lib/egg/eggtreemultidnd.c +++ b/lib/egg/eggtreemultidnd.c @@ -17,8 +17,11 @@ * Boston, MA 02111-1307, USA. */ +#include + #include #include + #include "eggtreemultidnd.h" #define EGG_TREE_MULTI_DND_STRING "EggTreeMultiDndString" @@ -56,7 +59,7 @@ egg_tree_multi_drag_source_get_type (void) if (!our_type) { - const GTypeInfo our_info = + static const GTypeInfo our_info = { sizeof (EggTreeMultiDragSourceIface), /* class_size */ NULL, /* base_init */ @@ -315,7 +318,11 @@ egg_tree_multi_drag_motion_event (GtkWidget *widget, { context = gtk_drag_begin (widget, +#if GTK_CHECK_VERSION (2, 14, 0) + gtk_drag_source_get_target_list (widget), +#else di->source_target_list, +#endif di->source_actions, priv_data->pressed_button, (GdkEvent*)event); -- cgit