3
* Copyright (C) 2014 Christian Hergert <christian@hergert.me>
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#define G_LOG_DOMAIN "Builder"
26
#include <glib/gi18n.h>
31
#include "gb-application.h"
40
setlocale (LC_ALL, "");
42
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
43
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
44
textdomain (GETTEXT_PACKAGE);
46
g_set_prgname (PACKAGE_TARNAME);
47
g_set_application_name (_("Builder"));
49
ide_set_program_name ("gnome-builder");
51
ide_log_init (TRUE, NULL);
53
g_message ("Initializing with Gtk+ version %d.%d.%d.",
54
gtk_get_major_version (),
55
gtk_get_minor_version (),
56
gtk_get_micro_version ());
58
app = g_object_new (GB_TYPE_APPLICATION,
59
"application-id", "org.gnome.Builder",
60
"flags", G_APPLICATION_HANDLES_OPEN,
62
g_application_set_default (app);
63
ret = g_application_run (app, argc, argv);
64
g_clear_object (&app);