Beispiel #1
0
int main(int argc, char* argv[]) {
    utils::debug::scope_log log(DBG_LVL_1("gtox"), {
                                  argc,
                                  utils::debug::parameter(argv, argc),
                              });

    std::set_terminate(terminate_handler);
    Glib::add_exception_handler(sigc::ptr_fun(&terminate_handler));

    Gtk::Main kit(argc, argv);
    Gst::init(argc, argv);

    setup_translation(
                Glib::path_get_dirname(
                    Glib::find_program_in_path(argv[0])));

    print_copyright();

    bool non_unique = false;
    if (argc > 1) {
        non_unique = std::any_of(argv, argv + argc, [](auto x) {
            return std::string("-non-unique") == x;
        });
    }
    Glib::RefPtr<gTox> application = gTox::create(non_unique);

    const int status = application->run(argc, argv);
    return status;
}
Beispiel #2
0
int main(int argc, char* argv[]) {
    std::set_terminate(terminate_handler);
    Glib::add_exception_handler(sigc::ptr_fun(&terminate_handler));

    Gtk::Main kit(argc, argv);
    Gst::init(argc, argv);

    setup_translation();

    print_copyright();

    Glib::RefPtr<gTox> application = gTox::create();

    const int status = application->run(argc, argv);
    return status;
}