mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
device: Do not use GLib 2.58 API to pop from GPtrArray
We currently only depend on GLib 2.52.
This commit is contained in:
@ -1506,7 +1506,9 @@ fprint_device_verify_start (FprintDBusDevice *dbus_dev,
|
|||||||
|
|
||||||
if (gallery)
|
if (gallery)
|
||||||
{
|
{
|
||||||
print = g_ptr_array_steal_index_fast (gallery, 0);
|
/* TODO: Use g_ptr_array_remove_index_fast with GLib >= 2.58 */
|
||||||
|
print = g_object_ref (g_ptr_array_index (gallery, 0));
|
||||||
|
g_ptr_array_remove_index_fast (gallery, 0);
|
||||||
finger = fp_print_get_finger (print);
|
finger = fp_print_get_finger (print);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user