summaryrefslogtreecommitdiffstats
path: root/gtk/src/presets.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-04-27 23:53:21 +0000
committerjstebbins <[email protected]>2009-04-27 23:53:21 +0000
commitbea518d6b661d28e5df979ce8e27311fd76ccb2a (patch)
tree556bc609bad2041d9cfa94e92bd00cfb3a591511 /gtk/src/presets.c
parent0d08a63314dbc793c4ffafbab2985ce13ad0617c (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/presets.c')
-rw-r--r--gtk/src/presets.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/src/presets.c b/gtk/src/presets.c
index fead949bf..aef862f2c 100644
--- a/gtk/src/presets.c
+++ b/gtk/src/presets.c
@@ -3071,6 +3071,11 @@ presets_drag_motion_cb(
gboolean src_folder, dst_folder;
GValue *preset;
gint tree_depth, ii;
+ GtkWidget *widget;
+
+ widget = gtk_drag_get_source_widget(ctx);
+ if (widget == NULL || widget != tv)
+ return TRUE;
// Get the type of the object being dragged
srctv = GTK_TREE_VIEW(gtk_drag_get_source_widget(ctx));