[gtk/matthiasc/for-master: 8/14] window: Drop an unused field
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 8/14] window: Drop an unused field
- Date: Wed, 27 May 2020 00:08:30 +0000 (UTC)
commit efbc6616206b3b43fac49b2ec998fc19dd9a839b
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 26 19:30:26 2020 -0400
window: Drop an unused field
The type-hint property is gone, and nothing reads
or writes the type_hint field anymore.
gtk/gtkwindow.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 93139fb164..00c6c26910 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -241,8 +241,6 @@ typedef struct
guint hide_on_close : 1;
guint in_emit_close_request : 1;
- GdkSurfaceTypeHint type_hint;
-
GtkGesture *click_gesture;
GtkEventController *key_controller;
GtkEventController *application_shortcut_controller;
@@ -3602,9 +3600,8 @@ gtk_window_resize (GtkWindow *window,
* ]|
*
* 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
- * to e.g. center dialogs. Also, if you set the transient parent of
+ * on the screen, don't. You should, instead, simply let the window
+ * manager place windows. Also, if you set the transient parent of
* dialogs with gtk_window_set_transient_for() window managers will
* often center the dialog over its parent window. It's much preferred
* to let the window manager handle these cases rather than doing it
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]