[banshee] Revert "[ThickClient] Fix NRE in SourceView"
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Revert "[ThickClient] Fix NRE in SourceView"
- Date: Wed, 15 Dec 2010 01:12:42 +0000 (UTC)
commit 91308025154e6732a0ca2599e4762ec9e1c11909
Author: Gabriel Burt <gabriel burt gmail com>
Date: Tue Dec 14 19:07:00 2010 -0600
Revert "[ThickClient] Fix NRE in SourceView"
This reverts commit 42b660ae41c0a0fd4dc32d3b8641e325a2d08dfb.
.../Banshee.Sources.Gui/SourceModel.cs | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceModel.cs b/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceModel.cs
index 2190aa9..8c729f9 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceModel.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceModel.cs
@@ -211,10 +211,13 @@ namespace Banshee.Sources.Gui
int position = source.Order;
- var type = source is SourceManager.GroupSource ? EntryType.Group : EntryType.Source;
TreeIter iter = parent.Equals (TreeIter.Zero)
- ? InsertWithValues (position, source, source.Order, type)
- : InsertWithValues (parent, position, source, source.Order, type);
+ ? InsertNode (position)
+ : InsertNode (parent, position);
+
+ SetValue (iter, 0, source);
+ SetValue (iter, 1, source.Order);
+ SetValue (iter, 2, source is SourceManager.GroupSource ? EntryType.Group : EntryType.Source);
lock (source.Children) {
foreach (Source child in source.Children) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]