summaryrefslogtreecommitdiff
path: root/gio/gdbusproxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'gio/gdbusproxy.c')
-rw-r--r--gio/gdbusproxy.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gio/gdbusproxy.c b/gio/gdbusproxy.c
index 292c7b5e1..afc6fe94e 100644
--- a/gio/gdbusproxy.c
+++ b/gio/gdbusproxy.c
@@ -631,13 +631,6 @@ g_dbus_proxy_init (GDBusProxy *proxy)
/* ---------------------------------------------------------------------------------------------------- */
-static gint
-property_name_sort_func (const gchar **a,
- const gchar **b)
-{
- return g_strcmp0 (*a, *b);
-}
-
/**
* g_dbus_proxy_get_cached_property_names:
* @proxy: A #GDBusProxy.
@@ -672,7 +665,7 @@ g_dbus_proxy_get_cached_property_names (GDBusProxy *proxy)
g_hash_table_iter_init (&iter, proxy->priv->properties);
while (g_hash_table_iter_next (&iter, (gpointer) &key, NULL))
g_ptr_array_add (p, g_strdup (key));
- g_ptr_array_sort (p, (GCompareFunc) property_name_sort_func);
+ g_ptr_array_sort_values (p, (GCompareFunc) g_strcmp0);
g_ptr_array_add (p, NULL);
names = (gchar **) g_ptr_array_free (p, FALSE);