[xdg-desktop-portal-gnome] screencast: Don't wrap restore data in another variant



commit 6d293e77e4470d0e5df57c29eeb6e1ed5cb619e8
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Mar 18 13:36:37 2022 -0300

    screencast: Don't wrap restore data in another variant
    
    We were sending a variant with the wrong type. This was a
    fallout from the evolution of the xdg-desktop-portal work,
    which originally started as a 'v' variant, but then changed
    to '(suv)', and we didn't adapt properly
    
    See https://github.com/flatpak/xdg-desktop-portal/pull/730

 src/screencast.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/screencast.c b/src/screencast.c
index f256082..e54bcd3 100644
--- a/src/screencast.c
+++ b/src/screencast.c
@@ -237,8 +237,7 @@ on_gnome_screen_cast_session_ready (GnomeScreenCastSession *gnome_screen_cast_se
         {
           g_variant_builder_add (&results_builder, "{sv}", "persist_mode",
                                  g_variant_new_uint32 (screen_cast_session->persist_mode));
-          g_variant_builder_add (&results_builder, "{sv}", "restore_data",
-                                 g_variant_new_variant (restore_data));
+          g_variant_builder_add (&results_builder, "{sv}", "restore_data", restore_data);
         }
     }
 


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