[gtk/wip/matthiasc/popup5: 70/128] wayland: Remove a useless switch
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk/wip/matthiasc/popup5: 70/128] wayland: Remove a useless switch
- Date: Sat, 18 May 2019 16:23:36 +0000 (UTC)
commit e4bc5bddcf781a7cf455dc7c00674914d1480aff
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Apr 29 16:49:38 2019 +0000
    wayland: Remove a useless switch
    
    We are setting the title unconditionally, now
 gdk/wayland/gdksurface-wayland.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index 6b22635fd3..55609fde28 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -575,18 +575,7 @@ _gdk_wayland_display_create_surface_impl (GdkDisplay     *display,
       gdk_display_get_n_monitors (display) > 0)
     impl->scale = gdk_monitor_get_scale_factor (gdk_display_get_monitor (display, 0));
 
-  impl->title = NULL;
-
-  switch (GDK_SURFACE_TYPE (surface))
-    {
-    case GDK_SURFACE_TOPLEVEL:
-    case GDK_SURFACE_TEMP:
-      gdk_surface_set_title (surface, get_default_title ());
-      break;
-
-    default:
-      break;
-    }
+  gdk_surface_set_title (surface, get_default_title ());
 
   if (real_parent == NULL)
     display_wayland->toplevels = g_list_prepend (display_wayland->toplevels, surface);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]