colorpickerportal: Use convenience function to fetch uint
Rather than open coding it.
This commit is contained in:
parent
7f5fd67d3a
commit
7b1b3fa0cb
@ -81,7 +81,7 @@ gtk_color_picker_portal_initable_init (GInitable *initable,
|
|||||||
g_free (owner);
|
g_free (owner);
|
||||||
|
|
||||||
ret = g_dbus_proxy_get_cached_property (picker->portal_proxy, "version");
|
ret = g_dbus_proxy_get_cached_property (picker->portal_proxy, "version");
|
||||||
g_variant_get (ret, "u", &version);
|
version = g_variant_get_uint32 (ret);
|
||||||
g_variant_unref (ret);
|
g_variant_unref (ret);
|
||||||
if (version != 2)
|
if (version != 2)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user