[gtk/fix-3728-3799: 68/69] gdksurface-win32.c: Rename window->surface in gdk_win32_surface_[un]maximize_surface




commit d3cb93893f6b12aa42eb306bb9a168fb2922ee1e
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Sat Jul 3 12:14:51 2021 +0800

    gdksurface-win32.c: Rename window->surface in gdk_win32_surface_[un]maximize_surface
    
    Makes things a bit more consistent.

 gdk/win32/gdksurface-win32.c | 42 +++++++++++++++++++++---------------------
 1 file changed, 21 insertions(+), 21 deletions(-)
---
diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c
index 85c445f433..6e9d57844f 100644
--- a/gdk/win32/gdksurface-win32.c
+++ b/gdk/win32/gdksurface-win32.c
@@ -2393,9 +2393,9 @@ snap_right (GdkSurface *surface,
 }
 
 static void
-gdk_win32_surface_maximize (GdkSurface *window);
+gdk_win32_surface_maximize (GdkSurface *surface);
 static void
-gdk_win32_surface_unmaximize (GdkSurface *window);
+gdk_win32_surface_unmaximize (GdkSurface *surface);
 static void
 gdk_win32_surface_minimize (GdkSurface *window);
 
@@ -4124,25 +4124,25 @@ gdk_win32_surface_minimize (GdkSurface *window)
 }
 
 static void
-gdk_win32_surface_maximize (GdkSurface *window)
+gdk_win32_surface_maximize (GdkSurface *surface)
 {
   GdkWin32Surface *impl;
 
-  g_return_if_fail (GDK_IS_SURFACE (window));
+  g_return_if_fail (GDK_IS_SURFACE (surface));
 
-  if (GDK_SURFACE_DESTROYED (window))
+  if (GDK_SURFACE_DESTROYED (surface))
     return;
 
   GDK_NOTE (MISC, g_print ("gdk_surface_maximize: %p: %s\n",
-                          GDK_SURFACE_HWND (window),
-                          _gdk_win32_surface_state_to_string (window->state)));
+                          GDK_SURFACE_HWND (surface),
+                          _gdk_win32_surface_state_to_string (surface->state)));
 
-  impl = GDK_WIN32_SURFACE (window);
+  impl = GDK_WIN32_SURFACE (surface);
 
-  if (GDK_SURFACE_IS_MAPPED (window))
-    GtkShowWindow (window, SW_MAXIMIZE);
+  if (GDK_SURFACE_IS_MAPPED (surface))
+    GtkShowWindow (surface, SW_MAXIMIZE);
   else
-    gdk_synthesize_surface_state (window,
+    gdk_synthesize_surface_state (surface,
                                 0,
                                 GDK_TOPLEVEL_STATE_MAXIMIZED);
 
@@ -4151,29 +4151,29 @@ gdk_win32_surface_maximize (GdkSurface *window)
 }
 
 static void
-gdk_win32_surface_unmaximize (GdkSurface *window)
+gdk_win32_surface_unmaximize (GdkSurface *surface)
 {
   GdkWin32Surface *impl;
 
-  g_return_if_fail (GDK_IS_SURFACE (window));
+  g_return_if_fail (GDK_IS_SURFACE (surface));
 
-  if (GDK_SURFACE_DESTROYED (window))
+  if (GDK_SURFACE_DESTROYED (surface))
     return;
 
   GDK_NOTE (MISC, g_print ("gdk_surface_unmaximize: %p: %s\n",
-                          GDK_SURFACE_HWND (window),
-                          _gdk_win32_surface_state_to_string (window->state)));
+                          GDK_SURFACE_HWND (surface),
+                          _gdk_win32_surface_state_to_string (surface->state)));
 
-  _gdk_win32_surface_invalidate_egl_framebuffer (window);
+  _gdk_win32_surface_invalidate_egl_framebuffer (surface);
 
-  if (GDK_SURFACE_IS_MAPPED (window))
-    GtkShowWindow (window, SW_RESTORE);
+  if (GDK_SURFACE_IS_MAPPED (surface))
+    GtkShowWindow (surface, SW_RESTORE);
   else
-    gdk_synthesize_surface_state (window,
+    gdk_synthesize_surface_state (surface,
                                 GDK_TOPLEVEL_STATE_MAXIMIZED,
                                 0);
 
-  impl = GDK_WIN32_SURFACE (window);
+  impl = GDK_WIN32_SURFACE (surface);
   impl->inhibit_configure = FALSE;
   impl->drag_move_resize_context.native_move_resize_pending = TRUE;
 }


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