/* * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved. * Copyright (C) 2008-2011 Robert Ancell * Copyright (C) 2024 MATE Desktop Team * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 2 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include #include "mate-calc-application.h" int main(int argc, char **argv) { MateCalcApplication *app; int status; /* Locale setup */ setlocale(LC_ALL, ""); bindtextdomain(GETTEXT_PACKAGE, LOCALE_DIR); bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); textdomain(GETTEXT_PACKAGE); /* Seed random number generator */ srand48((long)time((time_t *)0)); /* Create and run application */ app = mate_calc_application_new(); status = g_application_run(G_APPLICATION(app), argc, argv); g_object_unref(app); return status; }