[gtk/wip/otte/dnd: 5582/5584] dragdest: Use format matching APIs
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/dnd: 5582/5584] dragdest: Use format matching APIs
- Date: Sat, 15 Feb 2020 20:14:14 +0000 (UTC)
commit 894ac6c126cf30181f95b8feaa039274c0da4167
Author: Benjamin Otte <otte redhat com>
Date: Sat Feb 15 20:26:55 2020 +0100
dragdest: Use format matching APIs
gtk/gtkdragdest.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gtk/gtkdragdest.c b/gtk/gtkdragdest.c
index 6fd1480b8c..9d8489d45e 100644
--- a/gtk/gtkdragdest.c
+++ b/gtk/gtkdragdest.c
@@ -566,14 +566,12 @@ gtk_drop_target_accept (GtkDropTarget *dest,
{
GdkDragAction dest_actions;
GdkDragAction actions;
- GdkAtom target;
dest_actions = gtk_drop_target_get_actions (dest);
actions = dest_actions & gdk_drop_get_actions (drop);
- target = gtk_drop_target_match (dest, drop);
- return actions && target;
+ return actions && gdk_content_formats_match (dest->formats, gdk_drop_get_formats (drop));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]