From 9743cb6fa786531cf77f1b8263765e6f5f77bae4 Mon Sep 17 00:00:00 2001 From: werner Date: Sun, 25 Apr 2010 00:37:04 +0000 Subject: [PATCH] One more little DND surprise: drag-end doesn't get called if have a successful drag-drop. So we have to explicitly clear "dragging", or the last frame successfully referenced suddenly becomes unselectable. - gui_frame_drag.c (drag_canvas_drop): call drag_end to clear "dragging" - TODO: removed the entry about the frame reference procedure git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5938 99fdad57-331a-0410-800a-d7fa5415bdb3 --- TODO | 2 -- gui_frame_drag.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO b/TODO index 9542551..896b1da 100644 --- a/TODO +++ b/TODO @@ -79,5 +79,3 @@ Future directions: - instead of blue screening, we could perhaps just skip the offending items and replace them with a "here's a problem" marker that would still point to the underlying object and allow repairs to be made -- instead of the awkward lock-switch-anchor process for frame references, we - could just drag the frame name into the canvas diff --git a/gui_frame_drag.c b/gui_frame_drag.c index d43f7c8..c32a829 100644 --- a/gui_frame_drag.c +++ b/gui_frame_drag.c @@ -486,6 +486,7 @@ static gboolean drag_canvas_drop(GtkWidget *widget, if (!canvas_frame_drop(dragging, x, y)) return FALSE; gtk_drag_finish(drag_context, TRUE, FALSE, time_); + drag_end(widget, drag_context, user_data); return TRUE; }