[gnome-builder/wip/gtk4-port] plugins/editorui: start on new editorui plugin



commit 0df4c7af66ae0512b197c22c8e7ccb117841e0d0
Author: Christian Hergert <chergert redhat com>
Date:   Fri Apr 1 21:07:59 2022 -0700

    plugins/editorui: start on new editorui plugin
    
    This is a new plugin to replace the editor plugin that will bridge to
    the new libide-editor. I'm trying to follow the convention of <name>ui
    for plugins that wrap our internal libide libraries and bridge them
    into the plugin layers.

 src/plugins/editorui/editorui-plugin.c      | 33 +++++++++++++++++++++++++++++
 src/plugins/editorui/editorui.gresource.xml |  6 ++++++
 src/plugins/editorui/editorui.plugin        | 10 +++++++++
 src/plugins/editorui/meson.build            | 11 ++++++++++
 src/plugins/meson.build                     |  1 +
 5 files changed, 61 insertions(+)
---
diff --git a/src/plugins/editorui/editorui-plugin.c b/src/plugins/editorui/editorui-plugin.c
new file mode 100644
index 000000000..0a82e747f
--- /dev/null
+++ b/src/plugins/editorui/editorui-plugin.c
@@ -0,0 +1,33 @@
+/* editorui-plugin.c
+ *
+ * Copyright 2018-2022 Christian Hergert <chergert redhat com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#define G_LOG_DOMAIN "editorui-plugin"
+
+#include "config.h"
+
+#include "gbp-editorui-resources.h"
+
+#include <libpeas/peas.h>
+
+_IDE_EXTERN void
+_gbp_editorui_register_types (PeasObjectModule *module)
+{
+  g_resources_register (gbp_editorui_get_resource ());
+}
diff --git a/src/plugins/editorui/editorui.gresource.xml b/src/plugins/editorui/editorui.gresource.xml
new file mode 100644
index 000000000..1a4e739e9
--- /dev/null
+++ b/src/plugins/editorui/editorui.gresource.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+  <gresource prefix="/plugins/editorui">
+    <file>editorui.plugin</file>
+  </gresource>
+</gresources>
diff --git a/src/plugins/editorui/editorui.plugin b/src/plugins/editorui/editorui.plugin
new file mode 100644
index 000000000..7d6018fcc
--- /dev/null
+++ b/src/plugins/editorui/editorui.plugin
@@ -0,0 +1,10 @@
+[Plugin]
+Authors=Christian Hergert <christian hergert me>
+Builtin=true
+Copyright=Copyright © 2014-2022 Christian Hergert
+Embedded=_gbp_editorui_register_types
+Hidden=true
+Module=editorui
+Name=Editor UI
+X-At-Startup=true
+X-Workspace-Kind=primary;editor;
diff --git a/src/plugins/editorui/meson.build b/src/plugins/editorui/meson.build
new file mode 100644
index 000000000..436dac956
--- /dev/null
+++ b/src/plugins/editorui/meson.build
@@ -0,0 +1,11 @@
+plugins_sources += files([
+  'editorui-plugin.c',
+])
+
+plugin_editorui_resources = gnome.compile_resources(
+  'gbp-editorui-resources',
+  'editorui.gresource.xml',
+  c_name: 'gbp_editorui',
+)
+
+plugins_sources += plugin_editorui_resources
diff --git a/src/plugins/meson.build b/src/plugins/meson.build
index 43e27eab7..09154a318 100644
--- a/src/plugins/meson.build
+++ b/src/plugins/meson.build
@@ -65,6 +65,7 @@ subdir('copyright')
 subdir('doap')
 #subdir('dspy')
 #subdir('editor')
+subdir('editorui')
 subdir('editorconfig')
 #subdir('emacs')
 #subdir('eslint')


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