From 2ff5d90bb70d5cfb042fa2c23168d11631cc3428 Mon Sep 17 00:00:00 2001 From: Juan Pablo Ugarte Date: Wed, 6 Nov 2013 17:53:04 -0300 Subject: Fixed _glade_dnd_dest_set() crash. thanks to Lubomir Rintel for pointing the problem. Closes bug 711568 "[PATCH] glade crashes upon startup" --- gladeui/glade-dnd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gladeui/glade-dnd.c b/gladeui/glade-dnd.c index 122d74d4..a726344b 100644 --- a/gladeui/glade-dnd.c +++ b/gladeui/glade-dnd.c @@ -35,11 +35,7 @@ _glade_dnd_get_target (void) void _glade_dnd_dest_set (GtkWidget *target) { - GtkTargetEntry targets[1]; - - targets[0] = *_glade_dnd_get_target (); - - gtk_drag_dest_set (target, 0, targets, 2, GDK_ACTION_COPY); + gtk_drag_dest_set (target, 0, _glade_dnd_get_target (), 1, GDK_ACTION_COPY); } GObject * -- cgit v1.2.1