[gnome-builder/wip/gtk4-port: 1383/1774] plugins/html-preview: port to IdeHtmlGenerator
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 1383/1774] plugins/html-preview: port to IdeHtmlGenerator
- Date: Mon, 11 Jul 2022 22:31:44 +0000 (UTC)
commit a964c305553bddb5754941f93c32d925d5e8bef9
Author: Christian Hergert <chergert redhat com>
Date: Mon Jun 6 20:42:55 2022 -0700
plugins/html-preview: port to IdeHtmlGenerator
src/plugins/html-preview/gbp-html-preview-workspace-addin.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/html-preview/gbp-html-preview-workspace-addin.c
b/src/plugins/html-preview/gbp-html-preview-workspace-addin.c
index aa753110e..2cd2b095f 100644
--- a/src/plugins/html-preview/gbp-html-preview-workspace-addin.c
+++ b/src/plugins/html-preview/gbp-html-preview-workspace-addin.c
@@ -214,6 +214,7 @@ static void
live_preview_action (GbpHtmlPreviewWorkspaceAddin *self,
GVariant *params)
{
+ g_autoptr(IdeHtmlGenerator) generator = NULL;
g_autoptr(IdePanelPosition) position = NULL;
g_autoptr(IdeBuffer) buffer = NULL;
IdeWebkitPage *page;
@@ -227,7 +228,8 @@ live_preview_action (GbpHtmlPreviewWorkspaceAddin *self,
g_assert (IDE_IS_EDITOR_PAGE (self->editor_page));
buffer = g_signal_group_dup_target (self->buffer_signals);
- page = ide_webkit_page_new_for_buffer (GTK_TEXT_BUFFER (buffer), NULL, NULL, NULL);
+ generator = ide_html_generator_new_for_buffer (GTK_TEXT_BUFFER (buffer));
+ page = ide_webkit_page_new_for_generator (generator);
position = ide_page_get_position (IDE_PAGE (self->editor_page));
if (!ide_panel_position_get_column (position, &column))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]