gtkhtml: Fix compile error (#383120)

This commit is contained in:
Bobby Rong
2025-02-20 20:32:59 +08:00
committed by GitHub
2 changed files with 15 additions and 0 deletions
+2
View File
@@ -32,6 +32,8 @@ stdenv.mkDerivation rec {
hash = "sha256-f0OToWGHZwxvqf+0qosfA9FfwJ/IXfjIPP5/WrcvArI=";
extraPrefix = "";
})
# Resolves a GCC14 missing typecast error
./typecast.diff
];
passthru = {
+13
View File
@@ -0,0 +1,13 @@
diff --git a/components/editor/gtkhtml-editor.c b/components/editor/gtkhtml-editor.c
index 902baf94..d885df8c 100644
--- a/components/editor/gtkhtml-editor.c
+++ b/components/editor/gtkhtml-editor.c
@@ -455,7 +455,7 @@ editor_set_html (GtkhtmlEditor *editor,
gtk_html_load_empty (html);
gtk_html_set_editable (html, TRUE);
- editor->priv->edit_area = g_object_ref_sink (html);
+ editor->priv->edit_area = (GtkWidget *) g_object_ref_sink (html);
}
static GObject *