docs: Mention DND in the migration guide
authorMatthias Clasen <mclasen@redhat.com>
Wed, 1 Jan 2020 17:55:21 +0000 (12:55 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 8 Jan 2020 23:48:20 +0000 (18:48 -0500)
docs/reference/gtk/migrating-3to4.xml

index d64261eee7ad3ab2f743fc6ba4837203a35d959c..49a119ec6cdfdef9d981d0d498d5d8b094013b37 100644 (file)
         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>