projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7ecfbc
)
dnd: Ref the GdkDrop during the DND operation
author
Benjamin Otte
<otte@redhat.com>
Thu, 31 May 2018 19:44:38 +0000
(21:44 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 10 Jun 2018 00:35:30 +0000
(
02:35
+0200)
It might go away if the DND takes too long otherwise...
gtk/gtkdnd.c
patch
|
blob
|
history
diff --git
a/gtk/gtkdnd.c
b/gtk/gtkdnd.c
index 6613243566436a8eb4dcb9138b52cc5072015899..add85c404820ea3c6ff8d8f735abd98e9851b4a1 100644
(file)
--- a/
gtk/gtkdnd.c
+++ b/
gtk/gtkdnd.c
@@
-208,6
+208,7
@@
gtk_drag_get_data_finish (GtkDragGetData *data,
}
g_object_unref (data->widget);
+ g_object_unref (data->context);
g_slice_free (GtkDragGetData, data);
}
@@
-292,7
+293,7
@@
gtk_drag_get_data (GtkWidget *widget,
data = g_slice_new0 (GtkDragGetData);
data->widget = g_object_ref (widget);
- data->context =
context
;
+ data->context =
g_object_ref (context)
;
data->mime_type = target;
data->time = time_;