window: Remove some outdated info from the docs

Remove references to ::size-allocate and ::configure-event
from the docs.
This commit is contained in:
Matthias Clasen 2020-05-05 12:00:15 -04:00
parent 77ffc1f9ed
commit 91d261a0b3

View File

@ -3953,11 +3953,6 @@ gtk_window_resize (GtkWindow *window,
* stored across sessions; use gtk_window_set_default_size() to
* restore them when before showing the window.
*
* To avoid potential race conditions, you should only call this
* function in response to a size change notification, for instance
* inside a handler for the #GtkWidget::size-allocate signal, or
* inside a handler for the #GtkWidget::configure-event signal:
*
* |[<!-- language="C" -->
* static void
* on_size_allocate (GtkWidget *widget,
@ -3972,12 +3967,6 @@ gtk_window_resize (GtkWindow *window,
* }
* ]|
*
* Note that, if you connect to the #GtkWidget::size-allocate signal,
* you should not use the dimensions of the #GtkAllocation passed to
* the signal handler, as the allocation may contain client side
* decorations added by GTK+, depending on the windowing system in
* use.
*
* If you are getting a window size in order to position the window
* on the screen, you should, instead, simply set the windows semantic
* type with gtk_window_set_type_hint(), which allows the window manager