[sysprof/wip/gtk4-port] display: fix removal of pages
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/gtk4-port] display: fix removal of pages
- Date: Fri, 1 Oct 2021 23:42:04 +0000 (UTC)
commit 5df9ee5664cfe061996bcf36df86ec6bf9009e9c
Author: Christian Hergert <chergert redhat com>
Date: Fri Oct 1 16:41:59 2021 -0700
display: fix removal of pages
src/libsysprof-ui/sysprof-display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libsysprof-ui/sysprof-display.c b/src/libsysprof-ui/sysprof-display.c
index bf58aa3f..51a7293b 100644
--- a/src/libsysprof-ui/sysprof-display.c
+++ b/src/libsysprof-ui/sysprof-display.c
@@ -1315,7 +1315,7 @@ _sysprof_display_destroy (SysprofDisplay *self)
g_return_if_fail (SYSPROF_IS_DISPLAY (self));
- if ((parent = gtk_widget_get_parent (GTK_WIDGET (self))) && GTK_IS_NOTEBOOK (parent))
+ if ((parent = gtk_widget_get_ancestor (GTK_WIDGET (self), GTK_TYPE_NOTEBOOK)))
gtk_notebook_remove_page (GTK_NOTEBOOK (parent),
gtk_notebook_page_num (GTK_NOTEBOOK (parent), GTK_WIDGET (self)));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]