diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/widgets/ephy-node-view.c | 4 |
2 files changed, 10 insertions, 1 deletions
@@ -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); |