Use g_mapped_file_unref()

- drop deprecated use of g_mapped_file_free()
  - bump glib version requirement
This commit is contained in:
Ryan Lortie 2009-06-18 15:11:57 -04:00
parent 3c75004474
commit 6fe357965a
3 changed files with 5 additions and 5 deletions

View File

@ -31,7 +31,7 @@ m4_define([gtk_api_version], [2.0])
m4_define([gtk_binary_version], [2.10.0])
# required versions of other packages
m4_define([glib_required_version], [2.19.7])
m4_define([glib_required_version], [2.21.3])
m4_define([pango_required_version], [1.20])
m4_define([atk_required_version], [1.13.0])
m4_define([cairo_required_version], [1.6])

View File

@ -77,7 +77,7 @@ _gtk_icon_cache_unref (GtkIconCache *cache)
g_print ("unmapping icon cache\n"));
if (cache->map)
g_mapped_file_free (cache->map);
g_mapped_file_unref (cache->map);
g_free (cache);
}
}
@ -135,7 +135,7 @@ _gtk_icon_cache_new_for_path (const gchar *path)
{
if (!_gtk_icon_cache_validate (&info))
{
g_mapped_file_free (map);
g_mapped_file_unref (map);
g_warning ("Icon cache '%s' is invalid\n", cache_filename);
goto done;

View File

@ -1415,11 +1415,11 @@ validate_file (const gchar *file)
if (!_gtk_icon_cache_validate (&info))
{
g_mapped_file_free (map);
g_mapped_file_unref (map);
return FALSE;
}
g_mapped_file_free (map);
g_mapped_file_unref (map);
return TRUE;
}