[gnome-builder] libide/gui: page cleanup
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/gui: page cleanup
- Date: Fri, 29 Jul 2022 05:31:10 +0000 (UTC)
commit 5509d444d85238e5344860feb6f41a42183cd371
Author: Christian Hergert <chergert redhat com>
Date: Thu Jul 28 22:29:38 2022 -0700
libide/gui: page cleanup
src/libide/gui/ide-page.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libide/gui/ide-page.c b/src/libide/gui/ide-page.c
index 514374ef2..38b3cb440 100644
--- a/src/libide/gui/ide-page.c
+++ b/src/libide/gui/ide-page.c
@@ -117,7 +117,7 @@ ide_page_root (GtkWidget *widget)
GTK_WIDGET_CLASS (ide_page_parent_class)->root (widget);
- toplevel = GTK_WIDGET (gtk_widget_get_native (widget));
+ toplevel = GTK_WIDGET (gtk_widget_get_root (widget));
if (IDE_IS_WORKSPACE (toplevel))
_ide_workspace_add_page_mru (IDE_WORKSPACE (toplevel), &priv->mru_link);
@@ -132,7 +132,7 @@ ide_page_unroot (GtkWidget *widget)
g_assert (IDE_IS_PAGE (self));
- toplevel = GTK_WIDGET (gtk_widget_get_native (widget));
+ toplevel = GTK_WIDGET (gtk_widget_get_root (widget));
if (IDE_IS_WORKSPACE (toplevel))
_ide_workspace_remove_page_mru (IDE_WORKSPACE (toplevel), &priv->mru_link);
@@ -294,11 +294,11 @@ ide_page_init (IdePage *self)
{
IdePagePrivate *priv = ide_page_get_instance_private (self);
+ priv->mru_link.data = self;
+
gtk_widget_init_template (GTK_WIDGET (self));
panel_widget_set_kind (PANEL_WIDGET (self), PANEL_WIDGET_KIND_DOCUMENT);
-
- priv->mru_link.data = self;
}
const char *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]