blob: 4ec1230b7b0e6d63b626db677a2ecab6fc4754ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/*
* 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 <config.h>
#include <stdlib.h>
#include <locale.h>
#include <glib/gi18n.h>
#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;
}
|