diff options
author | Lluis Sanchez Gual <lluis@novell.com> | 2011-08-02 19:33:59 +0400 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@novell.com> | 2011-08-02 19:34:53 +0400 |
commit | b4fa334ad89c572acb6af81bfe52b4347620e949 (patch) | |
tree | ca0e3140c9c06fa80f74ee8704732a26f26e872d /main | |
parent | 6f1c7dc203baf6d9fac931dcab8edfec943b1dd8 (diff) |
Fix some nullrefs.
Diffstat (limited to 'main')
2 files changed, 12 insertions, 5 deletions
diff --git a/main/src/addins/Deployment/MonoDevelop.Deployment/gtk-gui/MonoDevelop.Deployment.Gui.DeployDialog.cs b/main/src/addins/Deployment/MonoDevelop.Deployment/gtk-gui/MonoDevelop.Deployment.Gui.DeployDialog.cs index 52b4f50869..f9dd926793 100644 --- a/main/src/addins/Deployment/MonoDevelop.Deployment/gtk-gui/MonoDevelop.Deployment.Gui.DeployDialog.cs +++ b/main/src/addins/Deployment/MonoDevelop.Deployment/gtk-gui/MonoDevelop.Deployment.Gui.DeployDialog.cs @@ -57,7 +57,7 @@ namespace MonoDevelop.Deployment.Gui private global::Gtk.Button buttonCancel; private global::Gtk.Button buttonBack; private global::Gtk.Button buttonNext; - + protected virtual void Build () { global::Stetic.Gui.Initialize (this); @@ -187,7 +187,9 @@ namespace MonoDevelop.Deployment.Gui w12.Expand = false; w12.Fill = false; // Container child pageSelectProject.Gtk.Box+BoxChild - this.entryTree = null; + this.entryTree = new global::MonoDevelop.Deployment.Gui.EntrySelectionTree (); + this.entryTree.Events = ((global::Gdk.EventMask)(256)); + this.entryTree.Name = "entryTree"; this.pageSelectProject.Add (this.entryTree); global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.pageSelectProject [this.entryTree])); w13.Position = 3; diff --git a/main/src/addins/Deployment/MonoDevelop.Deployment/gtk-gui/MonoDevelop.Deployment.Gui.EditPackageDialog.cs b/main/src/addins/Deployment/MonoDevelop.Deployment/gtk-gui/MonoDevelop.Deployment.Gui.EditPackageDialog.cs index a420badb2f..1a41d4f42f 100644 --- a/main/src/addins/Deployment/MonoDevelop.Deployment/gtk-gui/MonoDevelop.Deployment.Gui.EditPackageDialog.cs +++ b/main/src/addins/Deployment/MonoDevelop.Deployment/gtk-gui/MonoDevelop.Deployment.Gui.EditPackageDialog.cs @@ -21,7 +21,7 @@ namespace MonoDevelop.Deployment.Gui private global::Gtk.Label label5; private global::Gtk.Button buttonCancel; private global::Gtk.Button okbutton; - + protected virtual void Build () { global::Stetic.Gui.Initialize (this); @@ -108,7 +108,9 @@ namespace MonoDevelop.Deployment.Gui w7.Expand = false; w7.Fill = false; // Container child vbox4.Gtk.Box+BoxChild - this.entrySelector = null; + this.entrySelector = new global::MonoDevelop.Deployment.Gui.EntrySelectionTree (); + this.entrySelector.Events = ((global::Gdk.EventMask)(256)); + this.entrySelector.Name = "entrySelector"; this.vbox4.Add (this.entrySelector); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.entrySelector])); w8.Position = 1; @@ -127,7 +129,9 @@ namespace MonoDevelop.Deployment.Gui this.pageFiles.Spacing = 6; this.pageFiles.BorderWidth = ((uint)(12)); // Container child pageFiles.Gtk.Box+BoxChild - this.fileListView = null; + this.fileListView = new global::MonoDevelop.Deployment.DeployFileListWidget (); + this.fileListView.Events = ((global::Gdk.EventMask)(256)); + this.fileListView.Name = "fileListView"; this.pageFiles.Add (this.fileListView); global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.pageFiles [this.fileListView])); w10.Position = 0; @@ -185,6 +189,7 @@ namespace MonoDevelop.Deployment.Gui this.Hide (); this.notebook.SwitchPage += new global::Gtk.SwitchPageHandler (this.OnNotebookSwitchPage); this.entryName.Changed += new global::System.EventHandler (this.OnEntryNameChanged); + this.entrySelector.SelectionChanged += new global::System.EventHandler (this.OnEntrySelectorSelectionChanged); this.okbutton.Clicked += new global::System.EventHandler (this.OnOkbuttonClicked); } } |