]> git.0d.be Git - empathy.git/commitdiff
Don't show the same CM more than once in the CM chooser if there are more than one...
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Thu, 23 Apr 2009 11:43:14 +0000 (12:43 +0100)
committerJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 24 Apr 2009 00:52:50 +0000 (01:52 +0100)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
src/empathy-debug-dialog.c

index b2019548d9c6106787189eb8459155858789ed39..7cdc20cb4a01c097263eff19fc4ef2046496a0eb 100644 (file)
@@ -320,6 +320,21 @@ debug_dialog_list_connection_names_cb (const gchar * const *names,
   for (i = 0; cms[i] != NULL; i++)
     {
       GtkTreeIter iter;
+      guint j;
+      gboolean found = FALSE;
+
+      for (j = i + 1; cms[j] != NULL; j++)
+        {
+          if (!tp_strdiff (cms[i], cms[j]))
+            {
+              found = TRUE;
+              break;
+            }
+        }
+
+      if (found)
+        continue;
+
       gtk_list_store_append (priv->cms, &iter);
       gtk_list_store_set (priv->cms, &iter,
           COL_CM_NAME, cms[i],