aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-09-04 19:47:04 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-09-04 19:47:04 +0800
commit950219c7eb23cc9e19017c9adde87ca57e2bceeb (patch)
tree118355a3dc20cddbe4ce6bbb03e0043ef864982b /lib
parentd61780b30cd54e69dba79d74602079d7acdef8f1 (diff)
downloadgsoc2013-epiphany-950219c7eb23cc9e19017c9adde87ca57e2bceeb.tar
gsoc2013-epiphany-950219c7eb23cc9e19017c9adde87ca57e2bceeb.tar.gz
gsoc2013-epiphany-950219c7eb23cc9e19017c9adde87ca57e2bceeb.tar.bz2
gsoc2013-epiphany-950219c7eb23cc9e19017c9adde87ca57e2bceeb.tar.lz
gsoc2013-epiphany-950219c7eb23cc9e19017c9adde87ca57e2bceeb.tar.xz
gsoc2013-epiphany-950219c7eb23cc9e19017c9adde87ca57e2bceeb.tar.zst
gsoc2013-epiphany-950219c7eb23cc9e19017c9adde87ca57e2bceeb.zip
Check if the target type match before highlighting the row and return
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-node-view.c4
1 files changed, 3 insertions, 1 deletions
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);