[gtk/matthiasc/for-master: 5/6] win32: Stop using gdk_surface_new_temp
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 5/6] win32: Stop using gdk_surface_new_temp
- Date: Thu, 8 Oct 2020 01:22:30 +0000 (UTC)
commit 606ab611bdae26dbc1eb44f42837426100443410
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 7 21:07:40 2020 -0400
win32: Stop using gdk_surface_new_temp
No need to roundtrip through the frontend to create
one of our own surfaces.
gdk/win32/gdkdevicemanager-win32.c | 7 ++++++-
gdk/win32/gdkdrag-win32.c | 5 ++++-
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/gdk/win32/gdkdevicemanager-win32.c b/gdk/win32/gdkdevicemanager-win32.c
index 1f3f2d87db..d12666eed9 100644
--- a/gdk/win32/gdkdevicemanager-win32.c
+++ b/gdk/win32/gdkdevicemanager-win32.c
@@ -427,7 +427,12 @@ wintab_init_check (GdkDeviceManagerWin32 *device_manager)
ndevices, ncursors));
#endif
/* Create a dummy window to receive wintab events */
- wintab_window = gdk_surface_new_temp (display, &(GdkRectangle) { -100, -100, 2, 2 });
+ wintab_window =
+ _gdk_win32_display_create_surface (display,
+ GDK_SURFACE_TEMP,
+ NULL,
+ -100, -100, 2, 2);
+
g_object_ref (wintab_window);
for (devix = 0; devix < ndevices; devix++)
diff --git a/gdk/win32/gdkdrag-win32.c b/gdk/win32/gdkdrag-win32.c
index 76eaf54060..e880543992 100644
--- a/gdk/win32/gdkdrag-win32.c
+++ b/gdk/win32/gdkdrag-win32.c
@@ -1700,7 +1700,10 @@ create_drag_surface (GdkDisplay *display)
{
GdkSurface *surface;
- surface = gdk_surface_new_temp (display, &(GdkRectangle) { 0, 0, 100, 100 });
+ surface = _gdk_win32_display_create_surface (display,
+ GDK_SURFACE_TEMP,
+ NULL,
+ 0, 0, 100, 100);
return surface;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]