[gnome-shell: 3/3] shell-global: Use G_VARIANT_TYPE macro for checking
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell: 3/3] shell-global: Use G_VARIANT_TYPE macro for checking
- Date: Mon, 14 Oct 2013 14:53:23 +0000 (UTC)
commit cb7a2e8c6ab229c71c08f9e76cefc4918edf7f90
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Oct 14 10:52:45 2013 -0400
shell-global: Use G_VARIANT_TYPE macro for checking
src/shell-global.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-global.c b/src/shell-global.c
index 95787a5..e711dff 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]