~ubuntu-branches/ubuntu/natty/monodevelop/natty

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-01-07 19:06:58 UTC
  • mto: (1.6.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: james.westby@ubuntu.com-20100107190658-z9z95lgk4kwfes7p
ImportĀ upstreamĀ versionĀ 2.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1284
1284
                        }
1285
1285
                }
1286
1286
                
 
1287
                internal void RemoveChildren (Gtk.TreeIter it)
 
1288
                {
 
1289
                        Gtk.TreeIter child;
 
1290
                        while (store.IterChildren (out child, it)) {
 
1291
                                RemoveChildren (child);
 
1292
                                object childData = store.GetValue (child, ExtensibleTreeView.DataItemColumn);
 
1293
                                if (childData != null)
 
1294
                                        UnregisterNode (childData, child, null);
 
1295
                                store.Remove (ref child);
 
1296
                        }
 
1297
                }
 
1298
                
1287
1299
                internal void CleanupNodeOptions ()
1288
1300
                {
1289
1301
                        Dictionary<Gtk.TreeIter, TreeOptions> newOps = new Dictionary<Gtk.TreeIter, TreeOptions> ();
1534
1546
                void ShowPopup ()
1535
1547
                {
1536
1548
                        ITreeNavigator tnav = GetSelectedNode ();
 
1549
                        if (tnav == null)
 
1550
                                return;
1537
1551
                        TypeNodeBuilder nb = GetTypeNodeBuilder (tnav.CurrentPosition._iter);
1538
1552
                        string menuPath = nb != null && nb.ContextMenuAddinPath != null ? nb.ContextMenuAddinPath : contextMenuPath;
1539
1553
                        if (menuPath == null) {