[gtk/parent-surface: 3/4] popover: Stop using gtk_widget_get_parent_surface
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/parent-surface: 3/4] popover: Stop using gtk_widget_get_parent_surface
- Date: Thu, 25 Apr 2019 00:58:10 +0000 (UTC)
commit 52d4bcf1be1e280636167e26206233f8cf380a9d
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Apr 24 20:54:25 2019 -0400
popover: Stop using gtk_widget_get_parent_surface
We can just use the surface of the parent.
gtk/gtkpopover.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 58cd6473bd..b22ffd453c 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -564,7 +564,7 @@ gtk_popover_realize (GtkWidget *widget)
gtk_widget_get_surface_allocation (widget, &allocation);
- surface = gdk_surface_new_child (gtk_widget_get_parent_surface (widget), &allocation);
+ surface = gdk_surface_new_child (gtk_widget_get_surface (gtk_widget_get_parent (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]