[gtk/gdk-internal-cleanup: 2/3] gdk: Move GdkSurfaceTypeHint to its sole user
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gdk-internal-cleanup: 2/3] gdk: Move GdkSurfaceTypeHint to its sole user
- Date: Fri, 14 Aug 2020 11:46:03 +0000 (UTC)
commit 6cf8f1cdf2636e245fe78af33a9f6eb5a47f5924
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 13 21:38:44 2020 -0400
gdk: Move GdkSurfaceTypeHint to its sole user
The x11 backend is the only place where surface
type hints are used in any way. Move the enum
there.
gdk/gdkinternals.h | 18 ------------------
gdk/x11/gdksurface-x11.c | 18 ++++++++++++++++++
2 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index 0e38648ec5..9aebe1652c 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -230,24 +230,6 @@ typedef enum
GDK_HINT_MAX_SIZE = 1 << 2,
} GdkSurfaceHints;
-typedef enum
-{
- GDK_SURFACE_TYPE_HINT_NORMAL,
- GDK_SURFACE_TYPE_HINT_DIALOG,
- GDK_SURFACE_TYPE_HINT_MENU, /* Torn off menu */
- GDK_SURFACE_TYPE_HINT_TOOLBAR,
- GDK_SURFACE_TYPE_HINT_SPLASHSCREEN,
- GDK_SURFACE_TYPE_HINT_UTILITY,
- GDK_SURFACE_TYPE_HINT_DOCK,
- GDK_SURFACE_TYPE_HINT_DESKTOP,
- GDK_SURFACE_TYPE_HINT_DROPDOWN_MENU, /* A drop down menu (from a menubar) */
- GDK_SURFACE_TYPE_HINT_POPUP_MENU, /* A popup menu (from right-click) */
- GDK_SURFACE_TYPE_HINT_TOOLTIP,
- GDK_SURFACE_TYPE_HINT_NOTIFICATION,
- GDK_SURFACE_TYPE_HINT_COMBO,
- GDK_SURFACE_TYPE_HINT_DND
-} GdkSurfaceTypeHint;
-
typedef struct _GdkGeometry GdkGeometry;
struct _GdkGeometry
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index b0a49cc737..31ef5878c1 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -884,6 +884,24 @@ disconnect_frame_clock (GdkSurface *surface)
}
}
+typedef enum
+{
+ GDK_SURFACE_TYPE_HINT_NORMAL,
+ GDK_SURFACE_TYPE_HINT_DIALOG,
+ GDK_SURFACE_TYPE_HINT_MENU, /* Torn off menu */
+ GDK_SURFACE_TYPE_HINT_TOOLBAR,
+ GDK_SURFACE_TYPE_HINT_SPLASHSCREEN,
+ GDK_SURFACE_TYPE_HINT_UTILITY,
+ GDK_SURFACE_TYPE_HINT_DOCK,
+ GDK_SURFACE_TYPE_HINT_DESKTOP,
+ GDK_SURFACE_TYPE_HINT_DROPDOWN_MENU, /* A drop down menu (from a menubar) */
+ GDK_SURFACE_TYPE_HINT_POPUP_MENU, /* A popup menu (from right-click) */
+ GDK_SURFACE_TYPE_HINT_TOOLTIP,
+ GDK_SURFACE_TYPE_HINT_NOTIFICATION,
+ GDK_SURFACE_TYPE_HINT_COMBO,
+ GDK_SURFACE_TYPE_HINT_DND
+} GdkSurfaceTypeHint;
+
static void gdk_x11_surface_set_title (GdkSurface *surface,
const char *title);
static void gdk_x11_surface_set_type_hint (GdkSurface *surface,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]