From 35d040426b5a3402972868ae73d30da45333dc61 Mon Sep 17 00:00:00 2001 From: Markus Rosenstihl Date: Sun, 18 Oct 2026 16:25:51 +0200 Subject: [PATCH] fix startup: register GtkSourceView GType for GtkBuilder Removing gobject.type_register(GtkSource.View) broke startup: the call was load-bearing, it forced registration of the GtkSourceView GType so GtkBuilder could resolve the type in damaris3.glade ("Invalid object type 'GtkSourceView'"). Restore the registration by referencing gtksourceview.View at import time, which is the same effect without the PyGTK compat API. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- src/damaris/gui/DamarisGUI.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/damaris/gui/DamarisGUI.py b/src/damaris/gui/DamarisGUI.py index 2b4cc15..7fbc8b9 100644 --- a/src/damaris/gui/DamarisGUI.py +++ b/src/damaris/gui/DamarisGUI.py @@ -35,6 +35,10 @@ from gi.repository import Gdk as gdk from gi.repository import GtkSource as gtksourceview +# referencing the class registers the GtkSourceView GType, which GtkBuilder +# needs to resolve the type when loading damaris3.glade +_ = gtksourceview.View + from gi.repository import Pango as pango # array math