[gtk/abolish-size-allocate: 1/10] window: Remove some outdated info from the docs
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/abolish-size-allocate: 1/10] window: Remove some outdated info from the docs
- Date: Tue, 5 May 2020 16:43:57 +0000 (UTC)
commit 0c78b4b277f79472533fa67065aa72568e0c29e8
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 5 12:00:15 2020 -0400
window: Remove some outdated info from the docs
Remove references to ::size-allocate and ::configure-event
from the docs.
gtk/gtkwindow.c | 11 -----------
1 file changed, 11 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index fbf0a065b7..eebf712115 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -3921,11 +3921,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,
@@ -3940,12 +3935,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 window’s semantic
* type with gtk_window_set_type_hint(), which allows the window manager
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]