summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-05-29 14:21:57 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-05-29 18:04:08 +0000
commitece7fff339159e76f5bfb4dd2a11d6a7f65b7f14 (patch)
tree470d04c6f4799637122f3e0c75404fe1db87d2e8 /gtk/gtkwindow.c
parent147adc0bc5844581efedd39b1c0e11a19d0b5bc2 (diff)
downloadgtk+-ece7fff339159e76f5bfb4dd2a11d6a7f65b7f14.tar.gz
window: Drop more unused fields
need_default_position is never used.
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r--gtk/gtkwindow.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index ada3fcc610..ebfae7451b 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -232,7 +232,6 @@ typedef struct
* Then we set them to TRUE again on unmap (for position)
* and on unrealize (for size).
*/
- guint need_default_position : 1;
guint need_default_size : 1;
guint above_initially : 1;
@@ -1823,7 +1822,6 @@ gtk_window_init (GtkWindow *window)
priv->resizable = TRUE;
priv->configure_notify_received = FALSE;
priv->need_default_size = TRUE;
- priv->need_default_position = TRUE;
priv->modal = FALSE;
priv->gravity = GDK_GRAVITY_NORTH_WEST;
priv->decorated = TRUE;
@@ -4975,7 +4973,6 @@ gtk_window_map (GtkWidget *widget)
/* No longer use the default settings */
priv->need_default_size = FALSE;
- priv->need_default_position = FALSE;
gdk_surface_show (surface);
@@ -5033,12 +5030,6 @@ gtk_window_unmap (GtkWidget *widget)
}
priv->configure_notify_received = FALSE;
- /* on unmap, we reset the default positioning of the window,
- * so it's placed again, but we don't reset the default
- * size of the window, so it's remembered.
- */
- priv->need_default_position = TRUE;
-
info = gtk_window_get_geometry_info (window, FALSE);
if (info)
{