This is an automated email from the git hooks/post-receive script.

ochosi pushed a 
commit to branch 
master
in repository xfce/xfce4-panel.

commit 6b9b5325a2db36648573e4ad92a9294ab300c558
Author: Ali Abdallah <a...@xfce.org>
Date:   Thu Jun 29 22:02:16 2017 +0200

    Fix GVariant handling in the external wrapper
    
    The GValue in wrapper_remote might already hold a GVariant,
    so use it for the signal params. Also correctly send the guint handler.
---
 panel/panel-plugin-external-wrapper.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/panel/panel-plugin-external-wrapper.c 
b/panel/panel-plugin-external-wrapper.c
index baf4207..0ba9292 100644
--- a/panel/panel-plugin-external-wrapper.c
+++ b/panel/panel-plugin-external-wrapper.c
@@ -353,13 +353,13 @@ panel_plugin_external_wrapper_remote_event 
(PanelPluginExternal *external,
   *handle = ++handle_counter;
 
   if (value == NULL)
-    variant = g_variant_new_byte ('\0');
+    variant = g_variant_new_variant (g_variant_new_byte ('\0'));
   else if (G_VALUE_TYPE(value) == G_TYPE_VARIANT)
-    variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE_VARIANT);
+    variant = g_variant_get_variant(g_value_get_variant (value));
   else
     {
       g_warning ("Unexpected value of type: %s", G_VALUE_TYPE_NAME(value));
-      variant = g_variant_new_byte ('\0');
+      variant = g_variant_new_variant (g_variant_new_byte ('\0'));
     }
 
   g_dbus_connection_emit_signal (wrapper->connection,
@@ -369,8 +369,7 @@ panel_plugin_external_wrapper_remote_event 
(PanelPluginExternal *external,
                                  "RemoteEvent",
                                  g_variant_new ("(svu)",
                                                 name,
-                                                g_variant_new_variant 
(variant),
-                                                g_variant_new_byte('\0'),
+                                                variant,
                                                 *handle),
                                  NULL);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to