*.terminate() added.

This commit is contained in:
Kolan Sh 2016-02-08 02:57:57 +03:00
parent 086006a0fe
commit 0d3aa990aa
7 changed files with 19 additions and 3 deletions

View File

@ -9,5 +9,8 @@ namespace LAview.Desktop {
settings = new AppSettings();
}
public static void terminate () {
core = null;
}
}
}

View File

@ -24,5 +24,8 @@ namespace LAview.Desktop {
if (File.new_for_path(w32dhack_sdir+"/gschemas.compiled").query_exists ())
settings_dir = w32dhack_sdir;
}
public static void terminate () {
}
}
}

View File

@ -321,7 +321,7 @@ namespace LAview.Desktop {
[CCode (instance_pos = -1)]
public void action_quit_activate (Gtk.Action action) {
window.application.quit();
window.destroy();
}
}
}

View File

@ -20,7 +20,7 @@ namespace LAview.Desktop {
dialog = builder.get_object ("preferences_window") as Dialog;
dialog.transient_for = parent;
dialog.modal = true;
dialog.application = application;
//dialog.application = application;
dialog.delete_event.connect ((source) => {return true;});
liststore_data = builder.get_object ("liststore_data") as Gtk.ListStore;
liststore_protocols = builder.get_object ("liststore_protocols") as Gtk.ListStore;

View File

@ -7,5 +7,8 @@ namespace LAview.Desktop {
resource = Resource.load (resource_file);
resource._register();
}
public static void terminate () {
}
}
}

View File

@ -21,7 +21,7 @@ namespace LAview.Desktop {
dialog = builder.get_object ("subprocess_dialog") as Dialog;
dialog.transient_for = parent;
dialog.modal = true;
dialog.application = application;
//dialog.application = application;
dialog.delete_event.connect ((source) => {return true;});
textview_stderrout = builder.get_object ("textview_stderrout") as TextView;
}

View File

@ -50,6 +50,13 @@ namespace LAview.Desktop {
flags: ApplicationFlags.FLAGS_NONE);
}
~LAviewDesktopApp () {
print ("~LAviewDesktopApp()\n");
Resources.terminate ();
AppCore.terminate ();
AppDirs.terminate ();
}
protected override void activate () {
try {
main_window = new MainWindow (this);