[pan2/testing: 262/279] * https://bugzilla.gnome.org/show_bug.cgi?id=660030 (Jindrich Makovicka)
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2/testing: 262/279] * https://bugzilla.gnome.org/show_bug.cgi?id=660030 (Jindrich Makovicka)
- Date: Sat, 3 Dec 2011 22:43:26 +0000 (UTC)
commit 8e092ff555a6a156534d151d3fc1fccd05fe66b1
Author: Heinrich MÃller <sphemuel stud informatik uni-erlangen de>
Date: Mon Nov 28 12:43:05 2011 +0100
* https://bugzilla.gnome.org/show_bug.cgi?id=660030 (Jindrich Makovicka)
pan/gui/header-pane.cc | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/pan/gui/header-pane.cc b/pan/gui/header-pane.cc
index a74ff4f..00605a8 100644
--- a/pan/gui/header-pane.cc
+++ b/pan/gui/header-pane.cc
@@ -692,7 +692,12 @@ HeaderPane :: on_tree_change (const Data::ArticleTree::Diffs& diffs)
Row * child (get_row (it->first));
tmp[parent].push_back (child);
}
+
+ g_object_ref(G_OBJECT (_tree_store));
+ gtk_tree_view_set_model(GTK_TREE_VIEW(_tree_view), NULL);
_tree_store->insert_sorted (tmp);
+ gtk_tree_view_set_model(GTK_TREE_VIEW(_tree_view), GTK_TREE_MODEL (_tree_store));
+ g_object_unref(G_OBJECT(_tree_store));
}
// reparent...
@@ -718,7 +723,12 @@ HeaderPane :: on_tree_change (const Data::ArticleTree::Diffs& diffs)
keep.begin(), keep.end(),
inserter (kill, kill.begin()), o);
g_assert (keep.size() + kill.size() == _mid_to_row.size());
+
+ g_object_ref(G_OBJECT (_tree_store));
+ gtk_tree_view_set_model(GTK_TREE_VIEW(_tree_view), NULL);
_tree_store->remove (kill);
+ gtk_tree_view_set_model(GTK_TREE_VIEW(_tree_view), GTK_TREE_MODEL (_tree_store));
+ g_object_unref(G_OBJECT(_tree_store));
_mid_to_row.get_container().swap (keep);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]