[gnome-builder] plugins/web-browser: add web-browser plugin



commit 22209fb1930745133f3839530cd7204f8e39046f
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jul 11 23:31:03 2022 -0700

    plugins/web-browser: add web-browser plugin
    
    Allows creating simple browser windows using IdeWebkitPage.

 .../web-browser/gbp-web-browser-workbench-addin.c  | 213 +++++++++++++++++++++
 .../web-browser/gbp-web-browser-workbench-addin.h  |  31 +++
 .../web-browser/gbp-web-browser-workspace-addin.c  | 180 +++++++++++++++++
 .../web-browser/gbp-web-browser-workspace-addin.h  |  31 +++
 src/plugins/web-browser/gtk/keybindings.json       |   4 +
 src/plugins/web-browser/gtk/menus.ui               |  12 ++
 src/plugins/web-browser/meson.build                |  17 ++
 src/plugins/web-browser/web-browser-plugin.c       |  40 ++++
 src/plugins/web-browser/web-browser.gresource.xml  |   8 +
 src/plugins/web-browser/web-browser.plugin         |  10 +
 10 files changed, 546 insertions(+)
---
diff --git a/src/plugins/web-browser/gbp-web-browser-workbench-addin.c 
b/src/plugins/web-browser/gbp-web-browser-workbench-addin.c
new file mode 100644
index 000000000..83f2549b3
--- /dev/null
+++ b/src/plugins/web-browser/gbp-web-browser-workbench-addin.c
@@ -0,0 +1,213 @@
+/* gbp-web-browser-workbench-addin.c
+ *
+ * Copyright 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 "gbp-web-browser-workbench-addin"
+
+#include "config.h"
+
+#include <libide-editor.h>
+#include <libide-gui.h>
+#include <libide-webkit.h>
+
+#include "gbp-web-browser-workbench-addin.h"
+
+struct _GbpWebBrowserWorkbenchAddin
+{
+  GObject parent_instance;
+  IdeWorkbench *workbench;
+};
+
+static gboolean
+gbp_web_browser_workbench_addin_can_open (IdeWorkbenchAddin *addin,
+                                          GFile             *file,
+                                          const char        *content_type,
+                                          int               *priority)
+{
+  g_autofree char *scheme = NULL;
+
+  g_assert (IDE_IS_MAIN_THREAD ());
+  g_assert (GBP_IS_WEB_BROWSER_WORKBENCH_ADDIN (addin));
+  g_assert (G_IS_FILE (file));
+  g_assert (priority != NULL);
+
+  scheme = g_file_get_uri_scheme (file);
+
+  if (ide_str_equal0 (scheme, "https") || ide_str_equal0 (scheme, "http"))
+    {
+      *priority = -1000;
+      return TRUE;
+    }
+
+  return FALSE;
+}
+
+static inline gboolean
+can_use_workspace (IdeWorkspace *workspace)
+{
+  if (workspace != NULL)
+    {
+      GType type = G_OBJECT_TYPE (workspace);
+
+      return g_type_is_a (type, IDE_TYPE_PRIMARY_WORKSPACE) ||
+             g_type_is_a (type, IDE_TYPE_EDITOR_WORKSPACE);
+    }
+
+  return FALSE;
+}
+
+static void
+find_suitable_workspace_cb (IdeWorkspace *workspace,
+                            gpointer      data)
+{
+  IdeWorkspace **ptr = data;
+
+  if (*ptr == NULL && can_use_workspace (workspace))
+    *ptr = workspace;
+}
+
+static void
+gbp_web_browser_workbench_addin_open_async (IdeWorkbenchAddin   *addin,
+                                            GFile               *file,
+                                            const char          *content_type,
+                                            int                  at_line,
+                                            int                  at_line_offset,
+                                            IdeBufferOpenFlags   flags,
+                                            IdePanelPosition    *position,
+                                            GCancellable        *cancellable,
+                                            GAsyncReadyCallback  callback,
+                                            gpointer             user_data)
+{
+  GbpWebBrowserWorkbenchAddin *self = (GbpWebBrowserWorkbenchAddin *)addin;
+  g_autoptr(IdeTask) task = NULL;
+  g_autofree char *uri = NULL;
+  IdeWebkitPage *page;
+  IdeWorkspace *workspace;
+
+  IDE_ENTRY;
+
+  g_assert (IDE_IS_MAIN_THREAD ());
+  g_assert (GBP_IS_WEB_BROWSER_WORKBENCH_ADDIN (self));
+  g_assert (G_IS_FILE (file));
+  g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
+  g_assert (IDE_IS_WORKBENCH (self->workbench));
+
+  task = ide_task_new (self, cancellable, callback, user_data);
+  ide_task_set_source_tag (task, gbp_web_browser_workbench_addin_open_async);
+
+  workspace = ide_workbench_get_current_workspace (self->workbench);
+  if (!can_use_workspace (workspace))
+    {
+      workspace = NULL;
+      ide_workbench_foreach_workspace (self->workbench,
+                                       find_suitable_workspace_cb,
+                                       &workspace);
+    }
+
+  if (workspace == NULL)
+    {
+      ide_task_return_unsupported_error (task);
+      IDE_EXIT;
+    }
+
+  page = ide_webkit_page_new ();
+  uri = g_file_get_uri (file);
+
+  ide_workspace_add_page (workspace, IDE_PAGE (page), position);
+  panel_widget_raise (PANEL_WIDGET (page));
+
+  ide_webkit_page_load_uri (page, uri);
+
+  ide_task_return_boolean (task, TRUE);
+
+  IDE_EXIT;
+}
+
+static gboolean
+gbp_web_browser_workbench_addin_open_finish (IdeWorkbenchAddin  *addin,
+                                             GAsyncResult       *result,
+                                             GError            **error)
+{
+  gboolean ret;
+
+  IDE_ENTRY;
+
+  g_assert (IDE_IS_MAIN_THREAD ());
+  g_assert (IDE_IS_TASK (result));
+  g_assert (GBP_IS_WEB_BROWSER_WORKBENCH_ADDIN (addin));
+
+  ret = ide_task_propagate_boolean (IDE_TASK (result), error);
+
+  IDE_RETURN (ret);
+}
+
+static void
+gbp_web_browser_workbench_addin_load (IdeWorkbenchAddin *addin,
+                                      IdeWorkbench      *workbench)
+{
+  GbpWebBrowserWorkbenchAddin *self = (GbpWebBrowserWorkbenchAddin *)addin;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_WEB_BROWSER_WORKBENCH_ADDIN (self));
+  g_assert (IDE_IS_WORKBENCH (workbench));
+
+  self->workbench = workbench;
+
+  IDE_EXIT;
+}
+
+static void
+gbp_web_browser_workbench_addin_unload (IdeWorkbenchAddin *addin,
+                                        IdeWorkbench      *workbench)
+{
+  GbpWebBrowserWorkbenchAddin *self = (GbpWebBrowserWorkbenchAddin *)addin;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_WEB_BROWSER_WORKBENCH_ADDIN (self));
+  g_assert (IDE_IS_WORKBENCH (workbench));
+
+  self->workbench = NULL;
+
+  IDE_EXIT;
+}
+
+static void
+workbench_addin_iface_init (IdeWorkbenchAddinInterface *iface)
+{
+  iface->can_open = gbp_web_browser_workbench_addin_can_open;
+  iface->open_async = gbp_web_browser_workbench_addin_open_async;
+  iface->open_finish = gbp_web_browser_workbench_addin_open_finish;
+  iface->load = gbp_web_browser_workbench_addin_load;
+  iface->unload = gbp_web_browser_workbench_addin_unload;
+}
+
+G_DEFINE_FINAL_TYPE_WITH_CODE (GbpWebBrowserWorkbenchAddin, gbp_web_browser_workbench_addin, G_TYPE_OBJECT,
+                               G_IMPLEMENT_INTERFACE (IDE_TYPE_WORKBENCH_ADDIN, workbench_addin_iface_init))
+
+static void
+gbp_web_browser_workbench_addin_class_init (GbpWebBrowserWorkbenchAddinClass *klass)
+{
+}
+
+static void
+gbp_web_browser_workbench_addin_init (GbpWebBrowserWorkbenchAddin *self)
+{
+}
diff --git a/src/plugins/web-browser/gbp-web-browser-workbench-addin.h 
b/src/plugins/web-browser/gbp-web-browser-workbench-addin.h
new file mode 100644
index 000000000..76b8d2a24
--- /dev/null
+++ b/src/plugins/web-browser/gbp-web-browser-workbench-addin.h
@@ -0,0 +1,31 @@
+/* gbp-web-browser-workbench-addin.h
+ *
+ * Copyright 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
+ */
+
+#pragma once
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define GBP_TYPE_WEB_BROWSER_WORKBENCH_ADDIN (gbp_web_browser_workbench_addin_get_type())
+
+G_DECLARE_FINAL_TYPE (GbpWebBrowserWorkbenchAddin, gbp_web_browser_workbench_addin, GBP, 
WEB_BROWSER_WORKBENCH_ADDIN, GObject)
+
+G_END_DECLS
diff --git a/src/plugins/web-browser/gbp-web-browser-workspace-addin.c 
b/src/plugins/web-browser/gbp-web-browser-workspace-addin.c
new file mode 100644
index 000000000..adca17c9a
--- /dev/null
+++ b/src/plugins/web-browser/gbp-web-browser-workspace-addin.c
@@ -0,0 +1,180 @@
+/* gbp-web-browser-workspace-addin.c
+ *
+ * Copyright 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 "gbp-web-browser-workspace-addin"
+
+#include "config.h"
+
+#include <libide-gui.h>
+#include <libide-webkit.h>
+
+#include "gbp-web-browser-workspace-addin.h"
+
+struct _GbpWebBrowserWorkspaceAddin
+{
+  GObject       parent_instance;
+  IdeWorkspace *workspace;
+};
+
+static void workspace_addin_iface_init       (IdeWorkspaceAddinInterface  *iface);
+static void web_browser_new_page_action      (GbpWebBrowserWorkspaceAddin *self,
+                                              GVariant                    *param);
+static void web_browser_focus_address_action (GbpWebBrowserWorkspaceAddin *self,
+                                              GVariant                    *param);
+static void web_browser_reload_action        (GbpWebBrowserWorkspaceAddin *self,
+                                              GVariant                    *param);
+
+IDE_DEFINE_ACTION_GROUP (GbpWebBrowserWorkspaceAddin, gbp_web_browser_workspace_addin, {
+  { "new-page", web_browser_new_page_action },
+  { "focus-address", web_browser_focus_address_action },
+  { "reload", web_browser_reload_action, "b" },
+})
+
+G_DEFINE_FINAL_TYPE_WITH_CODE (GbpWebBrowserWorkspaceAddin, gbp_web_browser_workspace_addin, G_TYPE_OBJECT,
+                               G_IMPLEMENT_INTERFACE (G_TYPE_ACTION_GROUP, 
gbp_web_browser_workspace_addin_init_action_group)
+                               G_IMPLEMENT_INTERFACE (IDE_TYPE_WORKSPACE_ADDIN, workspace_addin_iface_init))
+
+static void
+gbp_web_browser_workspace_addin_class_init (GbpWebBrowserWorkspaceAddinClass *klass)
+{
+}
+
+static void
+gbp_web_browser_workspace_addin_init (GbpWebBrowserWorkspaceAddin *self)
+{
+}
+
+static void
+gbp_web_browser_workspace_addin_load (IdeWorkspaceAddin *addin,
+                                      IdeWorkspace      *workspace)
+{
+  GbpWebBrowserWorkspaceAddin *self = (GbpWebBrowserWorkspaceAddin *)addin;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_WEB_BROWSER_WORKSPACE_ADDIN (self));
+  g_assert (IDE_IS_WORKSPACE (workspace));
+
+  self->workspace = workspace;
+
+  gtk_widget_insert_action_group (GTK_WIDGET (workspace), "web-browser", G_ACTION_GROUP (self));
+
+  IDE_EXIT;
+}
+
+static void
+gbp_web_browser_workspace_addin_unload (IdeWorkspaceAddin *addin,
+                                        IdeWorkspace      *workspace)
+{
+  GbpWebBrowserWorkspaceAddin *self = (GbpWebBrowserWorkspaceAddin *)addin;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_WEB_BROWSER_WORKSPACE_ADDIN (self));
+  g_assert (IDE_IS_WORKSPACE (workspace));
+
+  gtk_widget_insert_action_group (GTK_WIDGET (workspace), "web-browser", NULL);
+
+  self->workspace = NULL;
+
+  IDE_EXIT;
+}
+
+
+static void
+workspace_addin_iface_init (IdeWorkspaceAddinInterface *iface)
+{
+  iface->load = gbp_web_browser_workspace_addin_load;
+  iface->unload = gbp_web_browser_workspace_addin_unload;
+}
+
+static void
+web_browser_new_page_action (GbpWebBrowserWorkspaceAddin *self,
+                             GVariant                    *param)
+{
+  g_autoptr(IdePanelPosition) position = NULL;
+  IdeWebkitPage *page;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_WEB_BROWSER_WORKSPACE_ADDIN (self));
+  g_assert (IDE_IS_WORKSPACE (self->workspace));
+
+  page = ide_webkit_page_new ();
+  position = ide_panel_position_new ();
+
+  ide_workspace_add_page (self->workspace, IDE_PAGE (page), position);
+  panel_widget_raise (PANEL_WIDGET (page));
+  gtk_widget_grab_focus (GTK_WIDGET (page));
+
+  IDE_EXIT;
+}
+
+static void
+web_browser_focus_address_action (GbpWebBrowserWorkspaceAddin *self,
+                                  GVariant                    *param)
+{
+  IdePage *page;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_WEB_BROWSER_WORKSPACE_ADDIN (self));
+  g_assert (IDE_IS_WORKSPACE (self->workspace));
+
+  if (!(page = ide_workspace_get_most_recent_page (self->workspace)))
+    IDE_EXIT;
+
+  if (!IDE_IS_WEBKIT_PAGE (page))
+    IDE_EXIT;
+
+  ide_webkit_page_focus_address (IDE_WEBKIT_PAGE (page));
+
+  IDE_EXIT;
+}
+
+static void
+web_browser_reload_action (GbpWebBrowserWorkspaceAddin *self,
+                           GVariant                    *param)
+{
+  IdePage *page;
+  gboolean ignore_cache;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_WEB_BROWSER_WORKSPACE_ADDIN (self));
+  g_assert (param != NULL);
+  g_assert (g_variant_is_of_type (param, G_VARIANT_TYPE_BOOLEAN));
+  g_assert (IDE_IS_WORKSPACE (self->workspace));
+
+  if (!(page = ide_workspace_get_most_recent_page (self->workspace)))
+    IDE_EXIT;
+
+  if (!IDE_IS_WEBKIT_PAGE (page))
+    IDE_EXIT;
+
+  ignore_cache = g_variant_get_boolean (param);
+
+  if (ignore_cache)
+    ide_webkit_page_reload_ignoring_cache (IDE_WEBKIT_PAGE (page));
+  else
+    ide_webkit_page_reload (IDE_WEBKIT_PAGE (page));
+
+  IDE_EXIT;
+}
diff --git a/src/plugins/web-browser/gbp-web-browser-workspace-addin.h 
b/src/plugins/web-browser/gbp-web-browser-workspace-addin.h
new file mode 100644
index 000000000..7f9f9e7a8
--- /dev/null
+++ b/src/plugins/web-browser/gbp-web-browser-workspace-addin.h
@@ -0,0 +1,31 @@
+/* gbp-web-browser-workspace-addin.h
+ *
+ * Copyright 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
+ */
+
+#pragma once
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define GBP_TYPE_WEB_BROWSER_WORKSPACE_ADDIN (gbp_web_browser_workspace_addin_get_type())
+
+G_DECLARE_FINAL_TYPE (GbpWebBrowserWorkspaceAddin, gbp_web_browser_workspace_addin, GBP, 
WEB_BROWSER_WORKSPACE_ADDIN, GObject)
+
+G_END_DECLS
diff --git a/src/plugins/web-browser/gtk/keybindings.json b/src/plugins/web-browser/gtk/keybindings.json
new file mode 100644
index 000000000..51cc2a09c
--- /dev/null
+++ b/src/plugins/web-browser/gtk/keybindings.json
@@ -0,0 +1,4 @@
+{ "trigger" : "<Control><Shift>b", "action" : "web-browser.new-page", "when" : "canEdit()", "phase" : 
"capture" },
+{ "trigger" : "<Control><Shift>r", "action" : "web-browser.reload", "args" : "true", "when" : "(page != 
null) && typeof(page).is_a(typeof(Ide.WebkitPage))", "phase" : "capture" },
+{ "trigger" : "<Control>r", "action" : "web-browser.reload", "args" : "false", "when" : "(page != null) && 
typeof(page).is_a(typeof(Ide.WebkitPage))", "phase" : "capture" },
+{ "trigger" : "<Control>l", "action" : "web-browser.focus-address", "when" : "(page != null) && 
typeof(page).is_a(typeof(Ide.WebkitPage))", "phase" : "capture" },
diff --git a/src/plugins/web-browser/gtk/menus.ui b/src/plugins/web-browser/gtk/menus.ui
new file mode 100644
index 000000000..5058a16f4
--- /dev/null
+++ b/src/plugins/web-browser/gtk/menus.ui
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <menu id="new-document-menu">
+    <section id="new-browser-section">
+      <item>
+        <attribute name="label" translatable="yes">New _Browser Page</attribute>
+        <attribute name="action">web-browser.new-page</attribute>
+        <attribute name="accel">&lt;ctrl&gt;&lt;shift&gt;b</attribute>
+      </item>
+    </section>
+  </menu>
+</interface>
diff --git a/src/plugins/web-browser/meson.build b/src/plugins/web-browser/meson.build
new file mode 100644
index 000000000..50d3fb568
--- /dev/null
+++ b/src/plugins/web-browser/meson.build
@@ -0,0 +1,17 @@
+if get_option('webkit').enabled()
+
+plugins_sources += files([
+  'web-browser-plugin.c',
+  'gbp-web-browser-workbench-addin.c',
+  'gbp-web-browser-workspace-addin.c',
+])
+
+plugin_web_browser_resources = gnome.compile_resources(
+  'gbp-web-browser-resources',
+  'web-browser.gresource.xml',
+  c_name: 'gbp_web_browser',
+)
+
+plugins_sources += plugin_web_browser_resources
+
+endif
diff --git a/src/plugins/web-browser/web-browser-plugin.c b/src/plugins/web-browser/web-browser-plugin.c
new file mode 100644
index 000000000..2e46c0c04
--- /dev/null
+++ b/src/plugins/web-browser/web-browser-plugin.c
@@ -0,0 +1,40 @@
+/* web-browser-plugin.c
+ *
+ * Copyright 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
+ */
+
+#include "config.h"
+
+#include <libpeas/peas.h>
+
+#include <libide-gui.h>
+#include <libide-webkit.h>
+
+#include "gbp-web-browser-workbench-addin.h"
+#include "gbp-web-browser-workspace-addin.h"
+
+_IDE_EXTERN void
+_gbp_web_browser_register_types (PeasObjectModule *module)
+{
+  peas_object_module_register_extension_type (module,
+                                              IDE_TYPE_WORKBENCH_ADDIN,
+                                              GBP_TYPE_WEB_BROWSER_WORKBENCH_ADDIN);
+  peas_object_module_register_extension_type (module,
+                                              IDE_TYPE_WORKSPACE_ADDIN,
+                                              GBP_TYPE_WEB_BROWSER_WORKSPACE_ADDIN);
+}
diff --git a/src/plugins/web-browser/web-browser.gresource.xml 
b/src/plugins/web-browser/web-browser.gresource.xml
new file mode 100644
index 000000000..c97dfd0a9
--- /dev/null
+++ b/src/plugins/web-browser/web-browser.gresource.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+  <gresource prefix="/plugins/web-browser">
+    <file>web-browser.plugin</file>
+    <file>gtk/keybindings.json</file>
+    <file preprocess="xml-stripblanks">gtk/menus.ui</file>
+  </gresource>
+</gresources>
diff --git a/src/plugins/web-browser/web-browser.plugin b/src/plugins/web-browser/web-browser.plugin
new file mode 100644
index 000000000..5e8cae78e
--- /dev/null
+++ b/src/plugins/web-browser/web-browser.plugin
@@ -0,0 +1,10 @@
+[Plugin]
+Authors=Christian Hergert <christian hergert me>
+Builtin=true
+Copyright=Copyright © 2022 Christian Hergert
+Description=Integrates a WebKit-based web browser
+Embedded=_gbp_web_browser_register_types
+Module=web-browser
+Name=Web Browser
+X-Category=other
+X-Workspace-Kind=primary;editor;


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