mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-31 03:48:10 +00:00
Block drag-data-delete emission as per gtk+ advice
This commit is contained in:
parent
3cd255a482
commit
6c44cc7889
1 changed files with 13 additions and 0 deletions
|
@ -947,6 +947,14 @@ gitg_drag_source_end_cb (GtkTreeView *tree_view,
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gitg_drag_source_data_delete_cb (GtkTreeView *tree_view,
|
||||
GdkDragContext *context,
|
||||
GitgDndData *data)
|
||||
{
|
||||
g_signal_stop_emission_by_name (tree_view, "drag-data-delete");
|
||||
}
|
||||
|
||||
void
|
||||
gitg_dnd_enable (GtkTreeView *tree_view,
|
||||
GitgDndCallback callback,
|
||||
|
@ -1021,6 +1029,11 @@ gitg_dnd_enable (GtkTreeView *tree_view,
|
|||
"drag-end",
|
||||
G_CALLBACK (gitg_drag_source_end_cb),
|
||||
data);
|
||||
|
||||
g_signal_connect (tree_view,
|
||||
"drag-data-delete",
|
||||
G_CALLBACK (gitg_drag_source_data_delete_cb),
|
||||
data);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue