Skip to content

Commit 03cf9b8

Browse files
committed
fix windows delete event
1 parent 74a367d commit 03cf9b8

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

SVMClassifier/gtk-gui/MainWindow.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ protected virtual void Build()
310310
this.MainNotebook.WidthRequest = 740;
311311
this.MainNotebook.HeightRequest = 510;
312312
this.MainNotebook.Name = "MainNotebook";
313-
this.MainNotebook.CurrentPage = 2;
313+
this.MainNotebook.CurrentPage = 0;
314314
// Container child MainNotebook.Gtk.Notebook+NotebookChild
315315
this.LayoutPageData = new global::Gtk.Fixed();
316316
this.LayoutPageData.Name = "LayoutPageData";
@@ -1296,6 +1296,7 @@ SVM learning algorithms attempt to enhance the distinction between categories b
12961296
this.Child.ShowAll();
12971297
}
12981298
this.Show();
1299+
this.DeleteEvent += new global::Gtk.DeleteEventHandler(this.OnDeleteEvent);
12991300
this.AboutButton.Activated += new global::System.EventHandler(this.OnAboutButtonClicked);
13001301
this.QuitButton.Activated += new global::System.EventHandler(this.OnQuitButtonClicked);
13011302
this.RunButton.Activated += new global::System.EventHandler(this.OnRunButtonClicked);

SVMClassifier/gtk-gui/gui.stetic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
<property name="Resizable">False</property>
110110
<property name="DefaultWidth">800</property>
111111
<property name="DefaultHeight">600</property>
112+
<signal name="DeleteEvent" handler="OnDeleteEvent" />
112113
<child>
113114
<widget class="Gtk.Fixed" id="MainLayout">
114115
<property name="MemberName" />

SVMClassifier/packages.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net47" />
4-
</packages>
4+
</packages>

0 commit comments

Comments
 (0)