ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #03566
[Branch ~indicator-applet-developers/indicator-me/trunk] Rev 145: Pass the username as a g_variant on the UserChanged signal (LP: #754524)
Merge authors:
Ken VanDine (ken-vandine)
Related merge proposals:
https://code.launchpad.net/~ken-vandine/indicator-me/lp_754524/+merge/57713
proposed by: Ken VanDine (ken-vandine)
review: Approve - Ted Gould (ted)
------------------------------------------------------------
revno: 145 [merge]
fixes bug(s): https://launchpad.net/bugs/754524
committer: Ken VanDine <ken.vandine@xxxxxxxxxxxxx>
branch nick: trunk
timestamp: Thu 2011-04-14 13:54:00 -0400
message:
Pass the username as a g_variant on the UserChanged signal (LP: #754524)
modified:
src/indicator-me.c
src/me-service-dbus.c
--
lp:indicator-me
https://code.launchpad.net/~indicator-applet-developers/indicator-me/trunk
Your team ayatana-commits is subscribed to branch lp:indicator-me.
To unsubscribe from this branch go to https://code.launchpad.net/~indicator-applet-developers/indicator-me/trunk/+edit-subscription
=== modified file 'src/indicator-me.c'
--- src/indicator-me.c 2011-04-04 16:47:54 +0000
+++ src/indicator-me.c 2011-04-14 14:56:04 +0000
@@ -179,7 +179,7 @@
username_cb (GObject * object, GAsyncResult * res, gpointer user_data)
{
GError * error = NULL;
- gchar * username;
+ gchar * username = NULL;
GVariant * result;
IndicatorMe * self = INDICATOR_ME (user_data);
=== modified file 'src/me-service-dbus.c'
--- src/me-service-dbus.c 2011-01-13 20:37:08 +0000
+++ src/me-service-dbus.c 2011-04-14 15:43:03 +0000
@@ -310,11 +310,11 @@
INDICATOR_ME_SERVICE_DBUS_OBJECT,
INDICATOR_ME_SERVICE_DBUS_INTERFACE,
"UserChanged",
- NULL,
+ g_variant_new("(s)", username),
&error);
if (error != NULL) {
- g_error("Unable to send UserChanged signal: %s", error->message);
+ g_warning("Unable to send UserChanged signal: %s", error->message);
g_error_free(error);
return;
}