shell-global: Use G_VARIANT_TYPE macro for checking

This commit is contained in:
Jasper St. Pierre 2013-10-14 10:52:45 -04:00
parent d21ae1dad1
commit cb7a2e8c6a

View File

@ -1819,7 +1819,7 @@ shell_global_get_runtime_state (ShellGlobal *global,
else
{
GBytes *bytes = g_mapped_file_get_bytes (mfile);
res = g_variant_new_from_bytes ((GVariantType*)property_type, bytes, TRUE);
res = g_variant_new_from_bytes (G_VARIANT_TYPE (property_type), bytes, TRUE);
g_bytes_unref (bytes);
g_mapped_file_unref (mfile);
}