[gtk/present-toplevel-2: 79/79] gdk: Drop surface-type



commit 18ca6ff63a2aa561c8ed1469f3574c78e333a771
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 9 08:22:55 2020 -0700

    gdk: Drop surface-type
    
    We have subtypes for surfaces now.

 gdk/gdksurface.c | 32 --------------------------------
 gdk/gdksurface.h | 17 -----------------
 2 files changed, 49 deletions(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 4063f93b81..73c373150a 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -81,7 +81,6 @@ enum {
 
 enum {
   PROP_0,
-  PROP_SURFACE_TYPE,
   PROP_CURSOR,
   PROP_DISPLAY,
   PROP_FRAME_CLOCK,
@@ -447,13 +446,6 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
                             FALSE,
                             G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
 
-  properties[PROP_SURFACE_TYPE] =
-      g_param_spec_enum ("surface-type",
-                          P_("Surface type"),
-                          P_("Surface type"),
-                          GDK_TYPE_SURFACE_TYPE, GDK_SURFACE_TOPLEVEL,
-                          G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
-
   g_object_class_install_properties (object_class, LAST_PROP, properties);
 
   /**
@@ -619,10 +611,6 @@ gdk_surface_set_property (GObject      *object,
       gdk_surface_set_frame_clock (surface, GDK_FRAME_CLOCK (g_value_get_object (value)));
       break;
 
-    case PROP_SURFACE_TYPE:
-      surface->surface_type = g_value_get_enum (value);
-      break;
-
     case LAST_PROP + GDK_POPUP_PROP_PARENT:
       surface->parent = g_value_dup_object (value);
       if (surface->parent != NULL)
@@ -735,10 +723,6 @@ gdk_surface_get_property (GObject    *object,
       g_value_set_boolean (value, GDK_SURFACE_IS_MAPPED (surface));
       break;
 
-    case PROP_SURFACE_TYPE:
-      g_value_set_enum (value, surface->surface_type);
-      break;
-
     case LAST_PROP + GDK_POPUP_PROP_PARENT:
       g_value_set_object (value, surface->parent);
       break;
@@ -1025,22 +1009,6 @@ gdk_surface_get_widget (GdkSurface *surface)
   return surface->widget;
 }
 
-/**
- * gdk_surface_get_surface_type:
- * @surface: a #GdkSurface
- *
- * Gets the type of the surface. See #GdkSurfaceType.
- *
- * Returns: type of surface
- **/
-GdkSurfaceType
-gdk_surface_get_surface_type (GdkSurface *surface)
-{
-  g_return_val_if_fail (GDK_IS_SURFACE (surface), (GdkSurfaceType) -1);
-
-  return GDK_SURFACE_TYPE (surface);
-}
-
 /**
  * gdk_surface_get_display:
  * @surface: a #GdkSurface
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index 524eecc47e..4764648308 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -38,21 +38,6 @@
 
 G_BEGIN_DECLS
 
-/**
- * GdkSurfaceType:
- * @GDK_SURFACE_TOPLEVEL: toplevel window (used to implement #GtkWindow)
- * @GDK_SURFACE_TEMP: override redirect temporary surface (used to implement #GtkMenu)
- * @GDK_SURFACE_POPUP: popup window with semantics like xdg-popover
- *
- * Describes the kind of surface.
- */
-typedef enum
-{
-  GDK_SURFACE_TOPLEVEL,
-  GDK_SURFACE_TEMP,
-  GDK_SURFACE_POPUP
-} GdkSurfaceType;
-
 /* Size restriction enumeration.
  */
 /**
@@ -346,8 +331,6 @@ GdkSurface *   gdk_surface_new_popup            (GdkSurface    *parent,
 GDK_AVAILABLE_IN_ALL
 void          gdk_surface_destroy               (GdkSurface     *surface);
 GDK_AVAILABLE_IN_ALL
-GdkSurfaceType gdk_surface_get_surface_type     (GdkSurface     *surface);
-GDK_AVAILABLE_IN_ALL
 gboolean      gdk_surface_is_destroyed          (GdkSurface     *surface);
 
 GDK_AVAILABLE_IN_ALL


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