*.terminate() added.
This commit is contained in:
parent
086006a0fe
commit
0d3aa990aa
|
@ -9,5 +9,8 @@ namespace LAview.Desktop {
|
||||||
settings = new AppSettings();
|
settings = new AppSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void terminate () {
|
||||||
|
core = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,5 +24,8 @@ namespace LAview.Desktop {
|
||||||
if (File.new_for_path(w32dhack_sdir+"/gschemas.compiled").query_exists ())
|
if (File.new_for_path(w32dhack_sdir+"/gschemas.compiled").query_exists ())
|
||||||
settings_dir = w32dhack_sdir;
|
settings_dir = w32dhack_sdir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void terminate () {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -321,7 +321,7 @@ namespace LAview.Desktop {
|
||||||
|
|
||||||
[CCode (instance_pos = -1)]
|
[CCode (instance_pos = -1)]
|
||||||
public void action_quit_activate (Gtk.Action action) {
|
public void action_quit_activate (Gtk.Action action) {
|
||||||
window.application.quit();
|
window.destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ namespace LAview.Desktop {
|
||||||
dialog = builder.get_object ("preferences_window") as Dialog;
|
dialog = builder.get_object ("preferences_window") as Dialog;
|
||||||
dialog.transient_for = parent;
|
dialog.transient_for = parent;
|
||||||
dialog.modal = true;
|
dialog.modal = true;
|
||||||
dialog.application = application;
|
//dialog.application = application;
|
||||||
dialog.delete_event.connect ((source) => {return true;});
|
dialog.delete_event.connect ((source) => {return true;});
|
||||||
liststore_data = builder.get_object ("liststore_data") as Gtk.ListStore;
|
liststore_data = builder.get_object ("liststore_data") as Gtk.ListStore;
|
||||||
liststore_protocols = builder.get_object ("liststore_protocols") as Gtk.ListStore;
|
liststore_protocols = builder.get_object ("liststore_protocols") as Gtk.ListStore;
|
||||||
|
|
|
@ -7,5 +7,8 @@ namespace LAview.Desktop {
|
||||||
resource = Resource.load (resource_file);
|
resource = Resource.load (resource_file);
|
||||||
resource._register();
|
resource._register();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void terminate () {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace LAview.Desktop {
|
||||||
dialog = builder.get_object ("subprocess_dialog") as Dialog;
|
dialog = builder.get_object ("subprocess_dialog") as Dialog;
|
||||||
dialog.transient_for = parent;
|
dialog.transient_for = parent;
|
||||||
dialog.modal = true;
|
dialog.modal = true;
|
||||||
dialog.application = application;
|
//dialog.application = application;
|
||||||
dialog.delete_event.connect ((source) => {return true;});
|
dialog.delete_event.connect ((source) => {return true;});
|
||||||
textview_stderrout = builder.get_object ("textview_stderrout") as TextView;
|
textview_stderrout = builder.get_object ("textview_stderrout") as TextView;
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,6 +50,13 @@ namespace LAview.Desktop {
|
||||||
flags: ApplicationFlags.FLAGS_NONE);
|
flags: ApplicationFlags.FLAGS_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~LAviewDesktopApp () {
|
||||||
|
print ("~LAviewDesktopApp()\n");
|
||||||
|
Resources.terminate ();
|
||||||
|
AppCore.terminate ();
|
||||||
|
AppDirs.terminate ();
|
||||||
|
}
|
||||||
|
|
||||||
protected override void activate () {
|
protected override void activate () {
|
||||||
try {
|
try {
|
||||||
main_window = new MainWindow (this);
|
main_window = new MainWindow (this);
|
||||||
|
|
Loading…
Reference in New Issue