app: Don't use g_type_class_get() yet

It's not available yet in Debian.

(cherry picked from commit b144929476)
This commit is contained in:
Niels De Graef 2025-07-10 09:54:17 +02:00 committed by Jehan
parent 03e048fdbd
commit c360b6e7f0

View file

@ -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;
}