From c360b6e7f0e53111335fa993d94445b38d9375a1 Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Thu, 10 Jul 2025 09:54:17 +0200 Subject: [PATCH] app: Don't use g_type_class_get() yet It's not available yet in Debian. (cherry picked from commit b144929476cc6283977b853a0bb89b3e56290bd9) --- app/widgets/gimpcontrollers.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/widgets/gimpcontrollers.c b/app/widgets/gimpcontrollers.c index 6281b7b012..26bfe2333b 100644 --- a/app/widgets/gimpcontrollers.c +++ b/app/widgets/gimpcontrollers.c @@ -516,13 +516,15 @@ gimp_controller_category_new (GType gtype) g_return_val_if_fail (g_type_is_a (gtype, GIMP_TYPE_CONTROLLER), NULL); - controller_class = g_type_class_get (gtype); + controller_class = g_type_class_ref (gtype); category = g_object_new (GIMP_TYPE_CONTROLLER_CATEGORY, NULL); category->name = controller_class->name; category->icon_name = controller_class->icon_name; category->gtype = gtype; + g_type_class_unref (controller_class); + return category; }