From 24189bddd32e6b8d086832b56c76f45c0b1c5d2c Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sun, 19 Apr 2015 15:52:18 -0300 Subject: [PATCH] source-dialog: fix sorting function --- src/gcal-source-dialog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c index 99e65760..7348d10d 100644 --- a/src/gcal-source-dialog.c +++ b/src/gcal-source-dialog.c @@ -354,9 +354,9 @@ calendar_listbox_sort_func (GtkListBoxRow *row1, // Retrieve parent names get_source_parent_name_color (priv->manager, source1, &parent_name1, NULL); - get_source_parent_name_color (priv->manager, source1, &parent_name2, NULL); + get_source_parent_name_color (priv->manager, source2, &parent_name2, NULL); - retval = g_strcmp0 (parent_name1, parent_name2); + retval = g_strcmp0 (parent_name1, parent_name2); // If they have the same parent names, compare by the source display names if (retval == 0)