[gtk/wip.win32.fixes: 4/5] 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: 4/5] gdksurface-win32.c: Rename window->surface in gdk_win32_surface_[un]maximize_surface
- Date: Tue, 6 Jul 2021 10:14:39 +0000 (UTC)
commit a01b6f848438a012bb24fcef604b1be73d0b65d4
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 651d999353..6fac8d20b4 100644
--- a/gdk/win32/gdksurface-win32.c
+++ b/gdk/win32/gdksurface-win32.c
@@ -2392,9 +2392,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);
@@ -4123,25 +4123,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);
@@ -4150,29 +4150,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]