[gtk/dnd-gestures: 8/8] docs: Mention DND in the migration guide
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-gestures: 8/8] docs: Mention DND in the migration guide
- Date: Wed, 1 Jan 2020 18:05:30 +0000 (UTC)
commit 5c8381cb3fa49e038569d14e3e56ea04bc97e2c8
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 1 12:55:21 2020 -0500
docs: Mention DND in the migration guide
docs/reference/gtk/migrating-3to4.xml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
---
diff --git a/docs/reference/gtk/migrating-3to4.xml b/docs/reference/gtk/migrating-3to4.xml
index d64261eee7..49a119ec6c 100644
--- a/docs/reference/gtk/migrating-3to4.xml
+++ b/docs/reference/gtk/migrating-3to4.xml
@@ -903,6 +903,22 @@
gtk_tooltip_set_custom().
</para>
</section>
+
+ <section>
+ <title>Switch to the new DND api</title>
+ <para>
+ The source-side DND apis in GTK 4 have been changed to use a separate object, #GtkDragSource.
+ </para>
+ <para>
+ Instead of calling gtk_drag_source_set() and connecting to #GtkWidget signals, you create
+ a #GtkDragSource object, attach it to the widget with gtk_drag_source_attach(), and connect
+ to #GtkDragSource signals. The signals themselves are fairly similar.
+ </para>
+ <para>
+ Instead of calling gtk_drag_begin() on a widget, use a #GtkDragSource object and call
+ gtk_drag_source_drag_begin().
+ </para>
+ </section>
</section>
</chapter>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]