[empathy] Make clear work on All's buffer
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Make clear work on All's buffer
- Date: Thu, 1 Mar 2012 09:18:33 +0000 (UTC)
commit e2df2195fbfdf96425e71f0c6bc006d56797879a
Author: Chandni Verma <chandniverma2112 gmail com>
Date: Wed Feb 29 18:58:54 2012 +0530
Make clear work on All's buffer
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=671061
src/empathy-debug-window.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c
index ac0bf9a..79e4d2a 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]