~bratsche/ubuntu/maverick/monodevelop/disable-appmenu

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/NewProjectDialog.cs

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2009-03-17 17:55:55 UTC
  • mfrom: (1.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20090317175555-2w5qbmu0l5maq6fq
Tags: 1.9.3+dfsg-1ubuntu1
* FFe for Monodevelop 2 granted by motu-release team :)
* Merge from Debian Unstable , remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24

Show diffs side-by-side

added added

removed removed

Lines of Context:
159
159
                        SelectCategory (PropertyService.Get<string> ("Dialogs.NewProjectDialog.LastSelectedCategory", "C#"));
160
160
                        ShowAll ();
161
161
                }
 
162
                protected override void OnDestroyed ()
 
163
                {
 
164
                        if (catStore != null) {
 
165
                                catStore.Dispose ();
 
166
                                catStore = null;
 
167
                        }
 
168
                        
 
169
                        if (catColumn != null) {
 
170
                                catColumn.Destroy ();
 
171
                                catColumn = null;
 
172
                        }
 
173
                        
 
174
                        if (cat_text_render != null) {
 
175
                                cat_text_render.Destroy ();
 
176
                                cat_text_render = null;
 
177
                        }
 
178
                        base.OnDestroyed ();
 
179
                }
162
180
                
163
181
                void InsertCategories (TreeIter node, ArrayList catarray)
164
182
                {
485
503
                        txt_subdirectory.Sensitive = CreateSolutionDirectory;
486
504
                }
487
505
                
 
506
                TreeViewColumn catColumn;
 
507
                CellRendererText cat_text_render;
488
508
                void InitializeComponents()
489
509
                {       
490
510
                        catStore = new Gtk.TreeStore (typeof (string), typeof (Category));
493
513
                        
494
514
                        lst_template_types.Selection.Changed += new EventHandler (CategoryChange);
495
515
                        
496
 
                        TreeViewColumn catColumn = new TreeViewColumn ();
 
516
                        catColumn = new TreeViewColumn ();
497
517
                        catColumn.Title = "categories";
498
 
                        
499
 
                        CellRendererText cat_text_render = new CellRendererText ();
 
518
                        cat_text_render = new CellRendererText ();
500
519
                        catColumn.PackStart (cat_text_render, true);
501
520
                        catColumn.AddAttribute (cat_text_render, "text", 0);
502
521