fp-print: Use g_date_copy
As per previous commit we depend on glib 2.56, we can use this utility function as well.
This commit is contained in:
parent
8b270141f3
commit
201b5a9614
1 changed files with 2 additions and 5 deletions
|
@ -534,11 +534,8 @@ fp_print_set_enroll_date (FpPrint *print,
|
||||||
|
|
||||||
g_clear_pointer (&print->enroll_date, g_date_free);
|
g_clear_pointer (&print->enroll_date, g_date_free);
|
||||||
if (enroll_date)
|
if (enroll_date)
|
||||||
{
|
print->enroll_date = g_date_copy (enroll_date);
|
||||||
/* XXX: Should use g_date_copy, but that is new in 2.56. */
|
|
||||||
print->enroll_date = g_date_new ();
|
|
||||||
*print->enroll_date = *enroll_date;
|
|
||||||
}
|
|
||||||
g_object_notify_by_pspec (G_OBJECT (print), properties[PROP_ENROLL_DATE]);
|
g_object_notify_by_pspec (G_OBJECT (print), properties[PROP_ENROLL_DATE]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue