aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-06-03 15:55:30 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-06-03 15:55:30 -0500
commit836670699384e59663080499b3914070c4413cf0 (patch)
tree3c986ea3bb9938daea1f6ab7e781b72be19a4e35
parent45af879206b20e704c985a33f93e88f329842352 (diff)
downloadayatana-indicator-session-836670699384e59663080499b3914070c4413cf0.tar.gz
ayatana-indicator-session-836670699384e59663080499b3914070c4413cf0.tar.bz2
ayatana-indicator-session-836670699384e59663080499b3914070c4413cf0.zip
fix signature for compare_users_by_username()
-rw-r--r--src/user-menu-mgr.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/user-menu-mgr.c b/src/user-menu-mgr.c
index 1f3755b..8e1a38d 100644
--- a/src/user-menu-mgr.c
+++ b/src/user-menu-mgr.c
@@ -50,8 +50,8 @@ static void activate_user_session (DbusmenuMenuitem *mi,
static void activate_user_accounts (DbusmenuMenuitem *mi,
guint timestamp,
gpointer user_data);
-static gint compare_users_by_username (const gchar *a,
- const gchar *b);
+static gint compare_users_by_username (gconstpointer a,
+ gconstpointer b);
static void activate_user_accounts (DbusmenuMenuitem *mi,
guint timestamp,
gpointer user_data);
@@ -237,7 +237,7 @@ user_menu_mgr_rebuild_items (UserMenuMgr *self, gboolean greeter_mode)
- users = g_list_sort (users, (GCompareFunc)compare_users_by_username);
+ users = g_list_sort (users, compare_users_by_username);
for (u = users; u != NULL; u = g_list_next (u))
{
@@ -315,8 +315,7 @@ activate_user_session (DbusmenuMenuitem *mi, guint timestamp, gpointer user_data
/* Comparison function to look into the UserData struct
to compare by using the username value */
static gint
-compare_users_by_username (const gchar *a,
- const gchar *b)
+compare_users_by_username (gconstpointer a, gconstpointer b)
{
UserData *user1 = (UserData *)a;
UserData *user2 = (UserData *)b;