From 07f010852c61ab6c859ab5bdec60a9e512df817f Mon Sep 17 00:00:00 2001 From: Niraj Date: Thu, 29 Oct 2015 11:31:09 +0530 Subject: [PATCH] [Fix] Ethernet Cable attach/detach signal issue. Description: This patch fix the ethernet cable attach/detach signal issue. The gdbus signature of EthernetCableState signal sent by net-config was not recognized by dbus-daemon, due to which ethernet cable attach/detach pop-up not appeared on UI. Change-Id: Ia45d136aa68896837f24601298a6aa2561fb6005 Signed-off-by: Niraj --- packaging/net-config.spec | 2 +- src/network-state.c | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packaging/net-config.spec b/packaging/net-config.spec index 889544f..7fc8ffb 100755 --- a/packaging/net-config.spec +++ b/packaging/net-config.spec @@ -1,6 +1,6 @@ Name: net-config Summary: TIZEN Network Configuration service -Version: 1.1.42 +Version: 1.1.43 Release: 2 Group: System/Network License: Apache-2.0 diff --git a/src/network-state.c b/src/network-state.c index 59819b5..8cf712f 100755 --- a/src/network-state.c +++ b/src/network-state.c @@ -616,6 +616,7 @@ done: static void __netconfig_network_notify_result(const char *sig_name, const char *key) { gboolean reply; + GVariant *params; GVariantBuilder *builder = NULL; GDBusConnection *connection = NULL; GError *error = NULL; @@ -630,19 +631,19 @@ static void __netconfig_network_notify_result(const char *sig_name, const char * } builder = g_variant_builder_new(G_VARIANT_TYPE ("a{sv}")); - g_variant_builder_add(builder, "{sv}", prop_key, g_variant_new("(s)", key)); + g_variant_builder_add(builder, "{sv}", prop_key, g_variant_new_string(key)); + params = g_variant_new("(@a{sv})", g_variant_builder_end(builder)); + + g_variant_builder_unref(builder); reply = g_dbus_connection_emit_signal(connection, NULL, NETCONFIG_NETWORK_PATH, NETCONFIG_NETWORK_INTERFACE, sig_name, - g_variant_builder_end(builder), + params, &error); - if (builder) - g_variant_builder_unref(builder); - if (reply != TRUE) { if (error != NULL) { ERR("Failed to send signal [%s]", error->message); -- 2.7.4