[gtk/wip/chergert/gdk-macos-for-master] macos: fix macOS build breakage




commit 0236fe80c19850676bf1a586fc42ccd984b1fb1b
Author: Christian Hergert <chergert redhat com>
Date:   Tue Dec 8 11:29:31 2020 -0800

    macos: fix macOS build breakage
    
    Fixes breakages due to recent refactoring around sizing changes.

 gdk/macos/GdkMacosWindow.c          |  2 --
 gdk/macos/gdkmacossurface-private.h | 10 +++++-----
 gdk/macos/gdkmacossurface.c         | 10 +++++-----
 gdk/macos/gdkmacostoplevelsurface.c | 10 +++++-----
 4 files changed, 15 insertions(+), 17 deletions(-)
---
diff --git a/gdk/macos/GdkMacosWindow.c b/gdk/macos/GdkMacosWindow.c
index dd762543d0..e85ebf8805 100644
--- a/gdk/macos/GdkMacosWindow.c
+++ b/gdk/macos/GdkMacosWindow.c
@@ -230,9 +230,7 @@
   NSRect content_rect;
   GdkSurface *surface;
   GdkDisplay *display;
-  GdkEvent *event;
   gboolean maximized;
-  GList *node;
 
   surface = GDK_SURFACE (gdk_surface);
   display = gdk_surface_get_display (surface);
diff --git a/gdk/macos/gdkmacossurface-private.h b/gdk/macos/gdkmacossurface-private.h
index 9dd2a7ba52..6c04b07066 100644
--- a/gdk/macos/gdkmacossurface-private.h
+++ b/gdk/macos/gdkmacossurface-private.h
@@ -85,6 +85,11 @@ void               _gdk_macos_surface_get_shadow              (GdkMacosSurface
                                                                int                *right,
                                                                int                *bottom,
                                                                int                *left);
+void               _gdk_macos_surface_set_shadow              (GdkMacosSurface    *self,
+                                                               int                 top,
+                                                               int                 right,
+                                                               int                 bottom,
+                                                               int                 left);
 NSView            *_gdk_macos_surface_get_view                (GdkMacosSurface    *self);
 gboolean           _gdk_macos_surface_get_modal_hint          (GdkMacosSurface    *self);
 void               _gdk_macos_surface_set_modal_hint          (GdkMacosSurface    *self,
@@ -125,11 +130,6 @@ void               _gdk_macos_surface_set_opacity             (GdkMacosSurface
 void               _gdk_macos_surface_get_root_coords         (GdkMacosSurface    *self,
                                                                int                *x,
                                                                int                *y);
-void               _gdk_macos_surface_set_shadow_width        (GdkSurface         *surface,
-                                                               int                 left,
-                                                               int                 right,
-                                                               int                 top,
-                                                               int                 bottom);
 
 G_END_DECLS
 
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index 5e528ca8e2..7e0c15dfe2 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -140,11 +140,11 @@ gdk_macos_surface_get_scale_factor (GdkSurface *surface)
 }
 
 void
-gdk_macos_surface_set_shadow_width (GdkSurface *surface,
-                                    int         left,
-                                    int         right,
-                                    int         top,
-                                    int         bottom)
+_gdk_macos_surface_set_shadow (GdkMacosSurface *surface,
+                               int              top,
+                               int              right,
+                               int              bottom,
+                               int              left)
 {
   GdkMacosSurface *self = (GdkMacosSurface *)surface;
 
diff --git a/gdk/macos/gdkmacostoplevelsurface.c b/gdk/macos/gdkmacostoplevelsurface.c
index 63d924c3a2..dbd244bf43 100644
--- a/gdk/macos/gdkmacostoplevelsurface.c
+++ b/gdk/macos/gdkmacostoplevelsurface.c
@@ -157,11 +157,11 @@ _gdk_macos_toplevel_surface_present (GdkToplevel       *toplevel,
 
   if (size.shadow.is_valid)
     {
-      _gdk_macos_surface_set_shadow_width (surface,
-                                           size.shadow.left,
-                                           size.shadow.right,
-                                           size.shadow.top,
-                                           size.shadow.bottom);
+      _gdk_macos_surface_set_shadow (GDK_MACOS_SURFACE (surface),
+                                     size.shadow.top,
+                                     size.shadow.right,
+                                     size.shadow.bottom,
+                                     size.shadow.left);
     }
 
   _gdk_macos_surface_set_geometry_hints (GDK_MACOS_SURFACE (self), &geometry, mask);


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