[gtk/global-coords: 28/37] window: Drop more unused fields
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/global-coords: 28/37] window: Drop more unused fields
- Date: Wed, 29 May 2019 18:06:06 +0000 (UTC)
commit ece7fff339159e76f5bfb4dd2a11d6a7f65b7f14
Author: Matthias Clasen <mclasen redhat com>
Date: Wed May 29 14:21:57 2019 +0000
window: Drop more unused fields
need_default_position is never used.
gtk/gtkwindow.c | 9 ---------
1 file changed, 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]