diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-03-16 18:09:23 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-03-16 18:09:23 -0500 |
commit | d2c9e397565f3be00a564107b6466d01250c0dbe (patch) | |
tree | 215c6ec8ae25a8a3e06dae2313c9c9c6bd1a6f66 | |
parent | bc34f047520493d166e785a5fca971f7a4a830a9 (diff) | |
download | ayatana-indicator-session-d2c9e397565f3be00a564107b6466d01250c0dbe.tar.gz ayatana-indicator-session-d2c9e397565f3be00a564107b6466d01250c0dbe.tar.bz2 ayatana-indicator-session-d2c9e397565f3be00a564107b6466d01250c0dbe.zip |
to pull a const string from g_variant_get(), use a format string "&s", not "s"
-rw-r--r-- | src/indicator-session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c index 5d894e8..0051af1 100644 --- a/src/indicator-session.c +++ b/src/indicator-session.c @@ -428,7 +428,7 @@ user_real_name_get_cb (GObject * obj, GAsyncResult * res, gpointer user_data) } const gchar* username = NULL; - g_variant_get (result, "(s)", &username); + g_variant_get (result, "(&s)", &username); indicator_session_update_users_label (self, username); return; } @@ -481,7 +481,7 @@ receive_signal (GDBusProxy * proxy, if (g_strcmp0(signal_name, "UserRealNameUpdated") == 0) { const gchar* username = NULL; - g_variant_get (parameters, "(s)", &username); + g_variant_get (parameters, "(&s)", &username); indicator_session_update_users_label (self, username); } else if (g_strcmp0(signal_name, "UserMenuIsVisible") == 0) { |