[gtk/present-toplevel-2: 35/70] wayland: Stop using gdk_surface_set_title



commit 8e6114ec5831a6849fdea92bbf9d7fdeeab64626
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 e84bd37960..ceaa72bc2f 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -602,6 +602,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,
@@ -654,7 +656,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);
@@ -4338,7 +4340,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]