aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-11-05 22:53:32 +0800
committerChristian Persch <chpe@src.gnome.org>2008-11-05 22:53:32 +0800
commit0d171694caba5c8f01779c01fc0cdfdea4f120fa (patch)
tree811dc35cb4589c326121c634ba401055c73f2650 /lib
parent03030bfe606c72c883c346324ac3c357901db751 (diff)
downloadgsoc2013-epiphany-0d171694caba5c8f01779c01fc0cdfdea4f120fa.tar.gz
gsoc2013-epiphany-0d171694caba5c8f01779c01fc0cdfdea4f120fa.tar.zst
gsoc2013-epiphany-0d171694caba5c8f01779c01fc0cdfdea4f120fa.zip
Fix multi-dnd with gtk 2.14
svn path=/trunk/; revision=8607
Diffstat (limited to 'lib')
-rw-r--r--lib/egg/eggtreemultidnd.c9
1 files changed, 8 insertions, 1 deletions
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 <config.h>
+
#include <string.h>
#include <gtk/gtk.h>
+
#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);