[empathy: 39/53] Don't show the same CM more than once in the CM chooser if there are more than one connections to it
- From: Jonny Lamb <jonnylamb src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy: 39/53] Don't show the same CM more than once in the CM chooser if there are more than one connections to it
- Date: Thu, 4 Jun 2009 12:18:19 -0400 (EDT)
commit a6cdf0ea3b5c585a7fbbe692be2fee322801d716
Author: Jonny Lamb <jonny lamb collabora co uk>
Date: Thu Apr 23 12:43:14 2009 +0100
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>
---
src/empathy-debug-dialog.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/empathy-debug-dialog.c b/src/empathy-debug-dialog.c
index b201954..7cdc20c 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],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]