diff options
author | Chandni Verma <chandniverma2112@gmail.com> | 2011-11-10 10:06:16 +0800 |
---|---|---|
committer | Chandni Verma <chandniverma2112@gmail.com> | 2012-01-28 14:49:16 +0800 |
commit | d5347668b9233feec489d8f1216303325d277ae7 (patch) | |
tree | 0f10e3e02285dc4ea5820a007e906ef19c957ed6 /src/empathy-debug-window.c | |
parent | 4a6fb67d83e54e334d3db5d975f1ff9dbddf6e14 (diff) | |
download | gsoc2013-empathy-d5347668b9233feec489d8f1216303325d277ae7.tar gsoc2013-empathy-d5347668b9233feec489d8f1216303325d277ae7.tar.gz gsoc2013-empathy-d5347668b9233feec489d8f1216303325d277ae7.tar.bz2 gsoc2013-empathy-d5347668b9233feec489d8f1216303325d277ae7.tar.lz gsoc2013-empathy-d5347668b9233feec489d8f1216303325d277ae7.tar.xz gsoc2013-empathy-d5347668b9233feec489d8f1216303325d277ae7.tar.zst gsoc2013-empathy-d5347668b9233feec489d8f1216303325d277ae7.zip |
Un-pausing incoming messages should update All's active buffer too
https://bugzilla.gnome.org/show_bug.cgi?id=592994
Diffstat (limited to 'src/empathy-debug-window.c')
-rw-r--r-- | src/empathy-debug-window.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c index cf537b65d..0c6a5b702 100644 --- a/src/empathy-debug-window.c +++ b/src/empathy-debug-window.c @@ -1289,12 +1289,14 @@ debug_window_pause_toggled_cb (GtkToggleToolButton *pause_, if (!priv->paused) { /* Pause has been released - flush all pause buffers */ + GtkTreeModel *service_store = GTK_TREE_MODEL (priv->service_store); - for (valid_iter = gtk_tree_model_get_iter_first (model, &iter); + /* Skipping the first iter which is reserved for "All" */ + gtk_tree_model_get_iter_first (model, &iter); + for (valid_iter = gtk_tree_model_iter_next (model, &iter); valid_iter; valid_iter = gtk_tree_model_iter_next (model, &iter)) { - GtkTreeModel *service_store = GTK_TREE_MODEL (priv->service_store); GtkListStore *pause_buffer, *active_buffer; gtk_tree_model_get (service_store, &iter, @@ -1304,11 +1306,14 @@ debug_window_pause_toggled_cb (GtkToggleToolButton *pause_, gtk_tree_model_foreach (GTK_TREE_MODEL (pause_buffer), copy_buffered_messages, active_buffer); + gtk_tree_model_foreach (GTK_TREE_MODEL (pause_buffer), + copy_buffered_messages, priv->all_active_buffer); + gtk_list_store_clear (pause_buffer); g_object_unref (active_buffer); g_object_unref (pause_buffer); - } + } } } |