From 252edbdbc697fdb2a34dbd5ca60330a22e63dda2 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 22 May 2021 13:51:24 -0400 Subject: docs: Fix a typo --- docs/reference/gtk/migrating-3to4.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/reference/gtk/migrating-3to4.md b/docs/reference/gtk/migrating-3to4.md index 4092ad721e..13e5427a3d 100644 --- a/docs/reference/gtk/migrating-3to4.md +++ b/docs/reference/gtk/migrating-3to4.md @@ -217,8 +217,8 @@ using `GMainContext` APIs. The replacement for `gtk_events_pending()` is `g_main_context_pending()`, the replacement for `gtk_main_iteration()` is `g_main_context_iteration()`. -Here is a replacement that will iterate the default main loop until -all windows have been closed: +In GTK 4, you can use this replacement that will iterate the default main loop +until all windows have been closed: ``` while (g_list_model_get_n_items (gtk_window_get_toplevels ()) > 0) @@ -1215,7 +1215,7 @@ controller, [class@Gtk.DragSource]. Instead of calling `gtk_drag_source_set()` and connecting to `GtkWidget` signals, you create a [class@Gtk.DragSource] object, attach it to the widget with [method@Gtk.Widget.add_controller], and connect to `GtkDragSource` signals. Instead of calling `gtk_drag_begin()` on a widget -to start a drag manually, call [type_func@Gdk.Drag.begin]. +to start a drag manually, call [func@Gdk.Drag.begin]. The `::drag-data-get` signal has been replaced by the [signal@Gtk.DragSource::prepare] signal, which returns a [class@Gdk.ContentProvider] for the drag operation. -- cgit v1.2.1