diff options
author | jstebbins <[email protected]> | 2009-04-27 23:53:21 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-04-27 23:53:21 +0000 |
commit | bea518d6b661d28e5df979ce8e27311fd76ccb2a (patch) | |
tree | 556bc609bad2041d9cfa94e92bd00cfb3a591511 /gtk/src/queuehandler.c | |
parent | 0d08a63314dbc793c4ffafbab2985ce13ad0617c (diff) |
LinGui: fix drag and drop problems in presets and queue
don't allow dragging unknown widget types into treeviews
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2357 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/queuehandler.c')
-rw-r--r-- | gtk/src/queuehandler.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c index aed2b0790..a6c9f466b 100644 --- a/gtk/src/queuehandler.c +++ b/gtk/src/queuehandler.c @@ -778,6 +778,11 @@ queue_drag_motion_cb( GtkTreeView *srctv; GtkTreeModel *model; GtkTreeSelection *select; + GtkWidget *widget; + + widget = gtk_drag_get_source_widget(ctx); + if (widget == NULL || widget != tv) + return TRUE; // This bit checks to see if the source is allowed to be // moved. Only pending and canceled items may be moved. |