[rhythmbox] display-page-model: update group visibility when removing pages



commit 8be7ec879217525f7fed7d6692aa0ed5fc9db3f2
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sun Aug 7 20:55:54 2011 +1000

    display-page-model: update group visibility when removing pages

 sources/rb-display-page-model.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/sources/rb-display-page-model.c b/sources/rb-display-page-model.c
index abaec26..1780323 100644
--- a/sources/rb-display-page-model.c
+++ b/sources/rb-display-page-model.c
@@ -681,14 +681,18 @@ rb_display_page_model_remove_page (RBDisplayPageModel *page_model,
 				   RBDisplayPage *page)
 {
 	GtkTreeIter iter;
+	GtkTreeIter group_iter;
 	GtkTreeModel *model;
 
 	g_assert (find_in_real_model (page_model, page, &iter));
 
 	model = gtk_tree_model_filter_get_model (GTK_TREE_MODEL_FILTER (page_model));
 
+	walk_up_to_page_group (model, &group_iter, &iter);
 	gtk_tree_store_remove (GTK_TREE_STORE (model), &iter);
 	g_signal_handlers_disconnect_by_func (page, G_CALLBACK (page_notify_cb), page_model);
+
+	update_group_visibility (model, &group_iter, page_model);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]