GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit c49a7113 authored by Michael Natterer's avatar Michael Natterer 😴

app: set the device manager's sort_func via g_object_new()

Setting it in init() had it overwritten by NULL because it's a
construct property.
parent ee844c63
......@@ -119,8 +119,6 @@ gimp_device_manager_class_init (GimpDeviceManagerClass *klass)
static void
gimp_device_manager_init (GimpDeviceManager *manager)
{
gimp_list_set_sort_func (GIMP_LIST (manager),
(GCompareFunc) gimp_device_info_compare);
}
static void
......@@ -235,6 +233,7 @@ gimp_device_manager_new (Gimp *gimp)
"children-type", GIMP_TYPE_DEVICE_INFO,
"policy", GIMP_CONTAINER_POLICY_STRONG,
"unique-names", FALSE,
"sort-func", gimp_device_info_compare,
NULL);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment