[gtk/wip.win32.fixes: 150/151] gdksurface-win32.c: Rename window->surface in gdk_win32_surface_[un]maximize_surface
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip.win32.fixes: 150/151] gdksurface-win32.c: Rename window->surface in gdk_win32_surface_[un]maximize_surface
- Date: Fri, 23 Jul 2021 10:45:23 +0000 (UTC)
commit 869d7f86bdddae67845a94c97c9b635d3dc7946a
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 dc5c4e5c29..fca99e3893 100644
--- a/gdk/win32/gdksurface-win32.c
+++ b/gdk/win32/gdksurface-win32.c
@@ -2394,9 +2394,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);
@@ -4125,25 +4125,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);
@@ -4152,29 +4152,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]