[gtk] popover: Drop some dead code
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] popover: Drop some dead code
- Date: Sun, 15 Jul 2018 12:21:43 +0000 (UTC)
commit 443f8ddf6bbb15d4516bf2b5fd2c8b77fa10f840
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jul 15 08:17:25 2018 -0400
popover: Drop some dead code
This will be done differently, using xdg-popup instead
of subsurfaces, so no point in keeping this.
gtk/gtkpopover.c | 24 +-----------------------
1 file changed, 1 insertion(+), 23 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 3263f06775..cbfa3c9976 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -564,29 +564,7 @@ gtk_popover_realize (GtkWidget *widget)
gtk_widget_get_surface_allocation (widget, &allocation);
- /* We want to use subsurfaces for popovers, so they can extend outside
- * the main window, but for that, we first need to have clean subsurface
- * support that works with GSK.
- */
-#if 0
- if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget)))
- {
- GtkWidget *toplevel = gtk_widget_get_toplevel (widget);
-
- g_assert (GTK_IS_WINDOW (toplevel));
-
- surface = gdk_wayland_surface_new_subsurface (gtk_widget_get_display (toplevel),
- &allocation);
-
- gdk_surface_set_transient_for (surface,
- gtk_widget_get_surface (toplevel));
- }
- else
-#endif
- {
- surface = gdk_surface_new_child (gtk_widget_get_parent_surface (widget),
- &allocation);
- }
+ surface = gdk_surface_new_child (gtk_widget_get_parent_surface (widget), &allocation);
gtk_widget_set_surface (widget, surface);
gtk_widget_register_surface (widget, surface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]