aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--lib/widgets/ephy-node-view.c4
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d24e51ca0..90129818c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-09-04 Marco Pesenti Gritti <marco@gnome.org>
+
+ * lib/widgets/ephy-node-view.c: (drag_motion_cb):
+
+ Check if the target type match before highlighting
+ the row and return success status.
+
2003-09-03 Marco Pesenti Gritti <marco@gnome.org>
* src/ephy-favorites-menu.c: (ephy_favorites_menu_rebuild):
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);