mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
docs: Mention the GtkWidget.destroy vfunc
Mention GtkWidget.destroy in the migration guide.
This commit is contained in:
parent
a08fbfa586
commit
ee34e1acc5
@ -243,6 +243,10 @@ in GTK 3, you can prepare for the switch by using `gtk_widget_destroy()`
|
|||||||
only on toplevel windows, and replace all other uses with
|
only on toplevel windows, and replace all other uses with
|
||||||
`gtk_container_remove()` or `g_object_unref()`.
|
`gtk_container_remove()` or `g_object_unref()`.
|
||||||
|
|
||||||
|
### Stop using the GtkWidget.destroy vfunc
|
||||||
|
|
||||||
|
Instead of implementing GtkWidget.destroy, you can implement GObject.dispose.
|
||||||
|
|
||||||
### Reduce the use of generic container APIs
|
### Reduce the use of generic container APIs
|
||||||
|
|
||||||
GTK 4 removes `gtk_container_add()` and `gtk_container_remove()`. While there
|
GTK 4 removes `gtk_container_add()` and `gtk_container_remove()`. While there
|
||||||
|
Loading…
Reference in New Issue
Block a user