[gnome-builder/wip/gtk4-port] libide/editor: add missing constructor
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] libide/editor: add missing constructor
- Date: Sat, 2 Apr 2022 09:29:11 +0000 (UTC)
commit cebb44114ac2b56219a68b3e94e8bac6efe7f1c1
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]