[gtk/matthiasc/for-master: 10/14] gdk: Drop the GdkSurfaceTypeHint enum



commit 0553b10214ca4e28a4bff196ee51e060758a67ff
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue May 26 19:31:53 2020 -0400

    gdk: Drop the GdkSurfaceTypeHint enum
    
    This is not used in public api anymore.
    Some of the backends still use it internally,
    so keep it in gdkinternals.h for now.

 docs/reference/gdk/gdk4-sections.txt |  1 -
 gdk/gdkinternals.h                   | 18 ++++++++++++++
 gdk/gdktypes.h                       | 48 ------------------------------------
 3 files changed, 18 insertions(+), 49 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 547db24d89..18f6615a8a 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -174,7 +174,6 @@ gdk_rgba_get_type
 GdkSurface
 GdkGravity
 GdkSurfaceEdge
-GdkSurfaceTypeHint
 GdkSurfaceState
 gdk_surface_new_toplevel
 gdk_surface_new_popup
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index 9e8d543a69..586519c76d 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -313,6 +313,24 @@ typedef enum
   GDK_HINT_USER_SIZE   = 1 << 8
 } 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;
+
 struct _GdkGeometry
 {
   gint min_width;
diff --git a/gdk/gdktypes.h b/gdk/gdktypes.h
index edb92b6638..4e1cc597c4 100644
--- a/gdk/gdktypes.h
+++ b/gdk/gdktypes.h
@@ -334,54 +334,6 @@ typedef enum {
   GDK_VULKAN_ERROR_NOT_AVAILABLE,
 } GdkVulkanError;
 
-/**
- * GdkSurfaceTypeHint:
- * @GDK_SURFACE_TYPE_HINT_NORMAL: Normal toplevel window.
- * @GDK_SURFACE_TYPE_HINT_DIALOG: Dialog window.
- * @GDK_SURFACE_TYPE_HINT_MENU: Window used to implement a menu; GTK uses
- *  this hint only for torn-off menus, see #GtkTearoffMenuItem.
- * @GDK_SURFACE_TYPE_HINT_TOOLBAR: Window used to implement toolbars.
- * @GDK_SURFACE_TYPE_HINT_SPLASHSCREEN: Window used to display a splash
- *  screen during application startup.
- * @GDK_SURFACE_TYPE_HINT_UTILITY: Utility windows which are not detached
- *  toolbars or dialogs.
- * @GDK_SURFACE_TYPE_HINT_DOCK: Used for creating dock or panel windows.
- * @GDK_SURFACE_TYPE_HINT_DESKTOP: Used for creating the desktop background
- *  window.
- * @GDK_SURFACE_TYPE_HINT_DROPDOWN_MENU: A menu that belongs to a menubar.
- * @GDK_SURFACE_TYPE_HINT_POPUP_MENU: A menu that does not belong to a menubar,
- *  e.g. a context menu.
- * @GDK_SURFACE_TYPE_HINT_TOOLTIP: A tooltip.
- * @GDK_SURFACE_TYPE_HINT_NOTIFICATION: A notification - typically a “bubble”
- *  that belongs to a status icon.
- * @GDK_SURFACE_TYPE_HINT_COMBO: A popup from a combo box.
- * @GDK_SURFACE_TYPE_HINT_DND: A window that is used to implement a DND cursor.
- *
- * These are hints for the window manager that indicate what type of function
- * the window has. The window manager can use this when determining decoration
- * and behaviour of the window. The hint must be set before mapping the window.
- *
- * See the [Extended Window Manager Hints](http://www.freedesktop.org/Standards/wm-spec)
- * specification for more details about window types.
- */
-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;
-
 /**
  * GdkAxisUse:
  * @GDK_AXIS_IGNORE: the axis is ignored.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]