Fix build for older glib
This commit is contained in:
@@ -605,3 +605,18 @@ void get_text_size2(PangoFontDescription *font,
|
||||
cairo_surface_destroy(cs);
|
||||
XFreePixmap(server.dsp, pmap);
|
||||
}
|
||||
|
||||
#if !GLIB_CHECK_VERSION (2, 33, 4)
|
||||
GList *g_list_copy_deep(GList *list, GCopyFunc func, gpointer user_data)
|
||||
{
|
||||
list = g_list_copy(list);
|
||||
|
||||
if (func) {
|
||||
for (GList *l = list; l; l = l->next) {
|
||||
l->data = func(l->data, user_data);
|
||||
}
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user