aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandni Verma <chandniverma2112@gmail.com>2012-02-29 21:28:54 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-01 17:18:18 +0800
commite2df2195fbfdf96425e71f0c6bc006d56797879a (patch)
treee6c168fb634ba825b0dce0667f00e3ec92422f41
parentcdc76639a2c2141c0eb1794fe93b787332ef50fb (diff)
downloadgsoc2013-empathy-e2df2195fbfdf96425e71f0c6bc006d56797879a.tar
gsoc2013-empathy-e2df2195fbfdf96425e71f0c6bc006d56797879a.tar.gz
gsoc2013-empathy-e2df2195fbfdf96425e71f0c6bc006d56797879a.tar.bz2
gsoc2013-empathy-e2df2195fbfdf96425e71f0c6bc006d56797879a.tar.lz
gsoc2013-empathy-e2df2195fbfdf96425e71f0c6bc006d56797879a.tar.xz
gsoc2013-empathy-e2df2195fbfdf96425e71f0c6bc006d56797879a.tar.zst
gsoc2013-empathy-e2df2195fbfdf96425e71f0c6bc006d56797879a.zip
Make clear work on All's buffer
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=671061
-rw-r--r--src/empathy-debug-window.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c
index ac0bf9a91..79e4d2ad1 100644
--- a/src/empathy-debug-window.c
+++ b/src/empathy-debug-window.c
@@ -1334,6 +1334,15 @@ debug_window_clear_clicked_cb (GtkToolButton *clear_button,
GtkTreeIter iter;
GtkListStore *active_buffer;
+ /* "All" is the first choice in the service chooser and it's buffer is
+ * not saved in the service-store but is accessed using a private
+ * reference */
+ if (gtk_combo_box_get_active (GTK_COMBO_BOX (priv->chooser)) == 0)
+ {
+ gtk_list_store_clear (priv->all_active_buffer);
+ return;
+ }
+
gtk_combo_box_get_active_iter (GTK_COMBO_BOX (priv->chooser), &iter);
gtk_tree_model_get (GTK_TREE_MODEL (priv->service_store), &iter,
COL_ACTIVE_BUFFER, &active_buffer, -1);