gtkhtml: Fix compile error (#383120)

authored by

Bobby Rong and committed by
GitHub
a9b4f7b8 dd30fb33

+15
+2
pkgs/by-name/gt/gtkhtml/package.nix
··· 32 32 hash = "sha256-f0OToWGHZwxvqf+0qosfA9FfwJ/IXfjIPP5/WrcvArI="; 33 33 extraPrefix = ""; 34 34 }) 35 + # Resolves a GCC14 missing typecast error 36 + ./typecast.diff 35 37 ]; 36 38 37 39 passthru = {
+13
pkgs/by-name/gt/gtkhtml/typecast.diff
··· 1 + diff --git a/components/editor/gtkhtml-editor.c b/components/editor/gtkhtml-editor.c 2 + index 902baf94..d885df8c 100644 3 + --- a/components/editor/gtkhtml-editor.c 4 + +++ b/components/editor/gtkhtml-editor.c 5 + @@ -455,7 +455,7 @@ editor_set_html (GtkhtmlEditor *editor, 6 + gtk_html_load_empty (html); 7 + gtk_html_set_editable (html, TRUE); 8 + 9 + - editor->priv->edit_area = g_object_ref_sink (html); 10 + + editor->priv->edit_area = (GtkWidget *) g_object_ref_sink (html); 11 + } 12 + 13 + static GObject *