aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-06-18 07:57:44 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-06-18 08:05:56 +0800
commit807b62250294666c0dccc27fbab03c1c782dd38b (patch)
treef23395edd404487329b717678a792ac359e0b91c
parent6914121ce5169769207613166e14c077259c863b (diff)
downloadgsoc2013-empathy-807b62250294666c0dccc27fbab03c1c782dd38b.tar
gsoc2013-empathy-807b62250294666c0dccc27fbab03c1c782dd38b.tar.gz
gsoc2013-empathy-807b62250294666c0dccc27fbab03c1c782dd38b.tar.bz2
gsoc2013-empathy-807b62250294666c0dccc27fbab03c1c782dd38b.tar.lz
gsoc2013-empathy-807b62250294666c0dccc27fbab03c1c782dd38b.tar.xz
gsoc2013-empathy-807b62250294666c0dccc27fbab03c1c782dd38b.tar.zst
gsoc2013-empathy-807b62250294666c0dccc27fbab03c1c782dd38b.zip
Add empathy to debug dialog CM chooser.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--src/empathy-debug-dialog.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/empathy-debug-dialog.c b/src/empathy-debug-dialog.c
index f6fe6e8b2..cd0d925f9 100644
--- a/src/empathy-debug-dialog.c
+++ b/src/empathy-debug-dialog.c
@@ -430,8 +430,6 @@ debug_dialog_get_name_owner_cb (TpDBusDaemon *proxy,
COL_CM_NAME, data->cm_name,
COL_CM_UNIQUE_NAME, out,
-1);
-
- gtk_combo_box_set_active (GTK_COMBO_BOX (priv->cm_chooser), 0);
}
OUT:
@@ -568,6 +566,7 @@ debug_dialog_fill_cm_chooser (EmpathyDebugDialog *debug_dialog)
{
EmpathyDebugDialogPriv *priv = GET_PRIV (debug_dialog);
GError *error = NULL;
+ GtkTreeIter iter;
priv->dbus = tp_dbus_daemon_dup (&error);
@@ -578,6 +577,15 @@ debug_dialog_fill_cm_chooser (EmpathyDebugDialog *debug_dialog)
return;
}
+ /* Add empathy */
+ gtk_list_store_append (priv->cms, &iter);
+ gtk_list_store_set (priv->cms, &iter,
+ COL_CM_NAME, "empathy",
+ COL_CM_UNIQUE_NAME, "org.gnome.Empathy",
+ -1);
+ gtk_combo_box_set_active (GTK_COMBO_BOX (priv->cm_chooser), 0);
+
+ /* Add CMs to list */
tp_list_connection_names (priv->dbus, debug_dialog_list_connection_names_cb,
debug_dialog, NULL, NULL);