]> git.0d.be Git - empathy.git/commitdiff
Make clear work on All's buffer
authorChandni Verma <chandniverma2112@gmail.com>
Wed, 29 Feb 2012 13:28:54 +0000 (18:58 +0530)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 1 Mar 2012 09:18:18 +0000 (10:18 +0100)
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=671061
src/empathy-debug-window.c

index ac0bf9a919375c6f68c96ffa7f966e74c9dbf454..79e4d2ad1edfcce4f727c5c24ab88782370a7640 100644 (file)
@@ -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);