[gtk/wip/hadess/portal-select-folders: 34/38] colorpickerportal: Use convenience function to fetch uint



commit 7b1b3fa0cbd31901085122ec04f3182edd8ac286
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Mar 23 14:45:57 2020 +0100

    colorpickerportal: Use convenience function to fetch uint
    
    Rather than open coding it.

 gtk/gtkcolorpickerportal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkcolorpickerportal.c b/gtk/gtkcolorpickerportal.c
index 450f0f8343..f84ff9ceab 100644
--- a/gtk/gtkcolorpickerportal.c
+++ b/gtk/gtkcolorpickerportal.c
@@ -81,7 +81,7 @@ gtk_color_picker_portal_initable_init (GInitable     *initable,
   g_free (owner);
 
   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);
   if (version != 2)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]