2022-01-04 15:24:11 -05:00
|
|
|
public class Reclaim.Application : Adw.Application {
|
|
|
|
public static int main (string[] args) {
|
|
|
|
var app = new Reclaim.Application ();
|
|
|
|
|
|
|
|
return app.run (args);
|
|
|
|
}
|
2021-12-30 13:48:27 -05:00
|
|
|
|
2022-01-04 15:24:11 -05:00
|
|
|
public Application () {
|
|
|
|
Object (
|
|
|
|
application_id: Config.APP_ID,
|
|
|
|
flags: ApplicationFlags.HANDLES_COMMAND_LINE
|
|
|
|
);
|
2021-12-30 13:48:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
Intl.setlocale (LocaleCategory.ALL, "");
|
|
|
|
Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALEDIR);
|
|
|
|
Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
|
|
|
|
Intl.textdomain (Config.GETTEXT_PACKAGE);
|
|
|
|
}
|
|
|
|
|
2022-01-04 15:24:11 -05:00
|
|
|
protected override void activate () {
|
|
|
|
active_window?.present ();
|
2021-12-30 13:48:27 -05:00
|
|
|
}
|
|
|
|
|
2022-01-04 15:24:11 -05:00
|
|
|
protected override void startup () {
|
|
|
|
resource_base_path = "/boneboneboner/reclaim";
|
|
|
|
|
|
|
|
base.startup ();
|
2021-12-30 13:48:27 -05:00
|
|
|
|
2022-01-04 15:24:11 -05:00
|
|
|
// typeof (AccountListView).ensure ();
|
2021-12-30 13:48:27 -05:00
|
|
|
|
2022-01-04 15:24:11 -05:00
|
|
|
// var account_repository = new AccountRespository ();
|
|
|
|
// var account_view_model = new AccountViewModel (account_repository);
|
|
|
|
//
|
|
|
|
typeof (ContentView).ensure ();
|
|
|
|
|
|
|
|
new MainWindow (this);
|
2021-12-30 13:48:27 -05:00
|
|
|
}
|
|
|
|
|
2022-01-04 15:24:11 -05:00
|
|
|
protected override void shutdown () {
|
|
|
|
base.shutdown ();
|
2021-12-30 13:48:27 -05:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-01-04 15:24:11 -05:00
|
|
|
public override int command_line (ApplicationCommandLine command_line) {
|
|
|
|
activate ();
|
2021-12-30 13:48:27 -05:00
|
|
|
|
2022-01-04 15:24:11 -05:00
|
|
|
return 0;
|
2021-12-30 13:48:27 -05:00
|
|
|
}
|
|
|
|
}
|