[gtk/present-toplevel-2: 9/59] wayland: Stop using gdk_surface_set_title
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 9/59] wayland: Stop using gdk_surface_set_title
- Date: Thu, 12 Mar 2020 18:58:10 +0000 (UTC)
commit f7aec64e6f8af8459bd1f46461ced28abe05bd77
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 1 12:31:26 2020 -0500
wayland: Stop using gdk_surface_set_title
Directly call the backend function for this, and for
gdk_surface_set_transient_for.
gdk/wayland/gdksurface-wayland.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index c387548e6d..20ab195a4a 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -591,6 +591,8 @@ gdk_wayland_surface_update_scale (GdkSurface *surface)
}
static void gdk_wayland_surface_create_surface (GdkSurface *surface);
+static void gdk_wayland_surface_set_title (GdkSurface *surface,
+ const char *title);
GdkSurface *
_gdk_wayland_display_create_surface (GdkDisplay *display,
@@ -643,7 +645,7 @@ _gdk_wayland_display_create_surface (GdkDisplay *display,
gdk_display_get_n_monitors (display) > 0)
impl->scale = gdk_monitor_get_scale_factor (gdk_display_get_monitor (display, 0));
- gdk_surface_set_title (surface, get_default_title ());
+ gdk_wayland_surface_set_title (surface, get_default_title ());
if (parent == NULL)
display_wayland->toplevels = g_list_prepend (display_wayland->toplevels, surface);
@@ -4268,7 +4270,7 @@ gdk_wayland_surface_set_transient_for_exported (GdkSurface *surface,
return FALSE;
}
- gdk_surface_set_transient_for (surface, NULL);
+ gdk_wayland_surface_set_transient_for (surface, NULL);
impl->imported_transient_for =
zxdg_importer_v1_import (display_wayland->xdg_importer, parent_handle_str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]