[gtk/wip/otte/geometry: 2/4] gdk: Remove unused flags
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/geometry: 2/4] gdk: Remove unused flags
- Date: Thu, 30 Jul 2020 14:55:55 +0000 (UTC)
commit a606e107f154cd292315546be351e3845605eaea
Author: Benjamin Otte <otte redhat com>
Date: Thu Jul 30 04:46:09 2020 +0200
gdk: Remove unused flags
gdk/gdkinternals.h | 2 --
gdk/x11/gdksurface-x11.c | 10 ----------
2 files changed, 12 deletions(-)
---
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index a208e9c568..e241403e5d 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -301,8 +301,6 @@ typedef enum
GDK_HINT_MAX_SIZE = 1 << 2,
GDK_HINT_ASPECT = 1 << 4,
GDK_HINT_WIN_GRAVITY = 1 << 6,
- GDK_HINT_USER_POS = 1 << 7,
- GDK_HINT_USER_SIZE = 1 << 8
} GdkSurfaceHints;
typedef enum
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index bccdbc3df7..f316872d57 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -2161,16 +2161,6 @@ gdk_x11_surface_set_geometry_hints (GdkSurface *surface,
size_hints.y = 0;
}
- if (geom_mask & GDK_HINT_USER_POS)
- {
- size_hints.flags |= USPosition;
- }
-
- if (geom_mask & GDK_HINT_USER_SIZE)
- {
- size_hints.flags |= USSize;
- }
-
if (geom_mask & GDK_HINT_MIN_SIZE)
{
size_hints.flags |= PMinSize;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]