aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-debug-dialog.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-04-23 19:43:14 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-04-24 08:52:50 +0800
commita6cdf0ea3b5c585a7fbbe692be2fee322801d716 (patch)
tree24f6697fa2712afa4348b1a49b680c6863d426af /src/empathy-debug-dialog.c
parent6cc716c326a27cc4db993a3384ec73bd9bb0aa3d (diff)
downloadgsoc2013-empathy-a6cdf0ea3b5c585a7fbbe692be2fee322801d716.tar
gsoc2013-empathy-a6cdf0ea3b5c585a7fbbe692be2fee322801d716.tar.gz
gsoc2013-empathy-a6cdf0ea3b5c585a7fbbe692be2fee322801d716.tar.bz2
gsoc2013-empathy-a6cdf0ea3b5c585a7fbbe692be2fee322801d716.tar.lz
gsoc2013-empathy-a6cdf0ea3b5c585a7fbbe692be2fee322801d716.tar.xz
gsoc2013-empathy-a6cdf0ea3b5c585a7fbbe692be2fee322801d716.tar.zst
gsoc2013-empathy-a6cdf0ea3b5c585a7fbbe692be2fee322801d716.zip
Don't show the same CM more than once in the CM chooser if there are more than one connections to it.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'src/empathy-debug-dialog.c')
-rw-r--r--src/empathy-debug-dialog.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/empathy-debug-dialog.c b/src/empathy-debug-dialog.c
index b2019548d..7cdc20cb4 100644
--- a/src/empathy-debug-dialog.c
+++ b/src/empathy-debug-dialog.c
@@ -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],