Block drag-data-delete emission as per gtk+ advice

This commit is contained in:
Jesse van den Kieboom 2010-01-11 23:51:03 +01:00
parent 3cd255a482
commit 6c44cc7889

View file

@ -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