From 950219c7eb23cc9e19017c9adde87ca57e2bceeb Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 4 Sep 2003 11:47:04 +0000 Subject: Check if the target type match before highlighting the row and return 2003-09-04 Marco Pesenti Gritti * lib/widgets/ephy-node-view.c: (drag_motion_cb): Check if the target type match before highlighting the row and return success status. --- lib/widgets/ephy-node-view.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/widgets') diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c index 9c40f8f06..901f44990 100644 --- a/lib/widgets/ephy-node-view.c +++ b/lib/widgets/ephy-node-view.c @@ -354,6 +354,7 @@ drag_motion_cb (GtkWidget *widget, EphyNodeView *view) { EphyNode *node; + GdkAtom target; GtkTreePath *path; GtkTreeViewDropPosition pos; guint action = 0; @@ -367,9 +368,10 @@ drag_motion_cb (GtkWidget *widget, get_drag_data (view, context, time); } + target = gtk_drag_dest_find_target (widget, context, NULL); node = get_node_from_path (view, path); - if (node) + if (target != GDK_NONE && node != NULL) { priority = ephy_node_get_property_int (node, view->priv->priority_prop_id); -- cgit v1.2.3