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:
parent
03e048fdbd
commit
c360b6e7f0
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue