[gnome-builder/wip/gtk4-port: 322/1774] libide/editor: add missing constructor




commit 5085d95ca8965fd5ab020823f7cc5c0ac4c5ded0
Author: Christian Hergert <chergert redhat com>
Date:   Sat Apr 2 02:14:56 2022 -0700

    libide/editor: add missing constructor

 src/libide/editor/ide-editor-page.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/src/libide/editor/ide-editor-page.c b/src/libide/editor/ide-editor-page.c
index 77bb453f7..c990d1b79 100644
--- a/src/libide/editor/ide-editor-page.c
+++ b/src/libide/editor/ide-editor-page.c
@@ -147,6 +147,16 @@ ide_editor_page_init (IdeEditorPage *self)
   gtk_widget_init_template (GTK_WIDGET (self));
 }
 
+GtkWidget *
+ide_editor_page_new (IdeBuffer *buffer)
+{
+  g_return_val_if_fail (IDE_IS_BUFFER (buffer), NULL);
+
+  return g_object_new (IDE_TYPE_EDITOR_PAGE,
+                       "buffer", buffer,
+                       NULL);
+}
+
 /**
  * ide_editor_page_get_view:
  * @self: a #IdeEditorPage


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]