2013-02-16 21:56:16 -05:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2009, 2010 Intel, Inc.
|
|
|
|
* Copyright (c) 2010 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* The Control Center 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.
|
|
|
|
*
|
|
|
|
* The Control Center is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with the Control Center; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*
|
|
|
|
* Author: Thomas Wood <thos@gnome.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
2022-02-10 10:27:56 +01:00
|
|
|
#include <locale.h>
|
2013-02-16 21:56:16 -05:00
|
|
|
#include <glib/gi18n.h>
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
#ifdef GDK_WINDOWING_X11
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
#endif
|
|
|
|
|
2021-06-07 17:41:23 +05:30
|
|
|
#include "cc-log.h"
|
2013-02-16 21:56:16 -05:00
|
|
|
#include "cc-application.h"
|
|
|
|
|
|
|
|
int
|
2018-11-26 15:19:36 +01:00
|
|
|
main (gint argc,
|
|
|
|
gchar **argv)
|
2013-02-16 21:56:16 -05:00
|
|
|
{
|
2018-01-21 10:37:29 -02:00
|
|
|
g_autoptr(GtkApplication) application = NULL;
|
2013-02-16 21:56:16 -05:00
|
|
|
|
|
|
|
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
|
|
|
|
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
|
|
|
textdomain (GETTEXT_PACKAGE);
|
|
|
|
|
2022-02-10 10:27:56 +01:00
|
|
|
setlocale (LC_ALL, "");
|
2021-06-07 17:41:23 +05:30
|
|
|
cc_log_init ();
|
2022-02-10 10:27:56 +01:00
|
|
|
|
2013-02-16 21:56:16 -05:00
|
|
|
application = cc_application_new ();
|
|
|
|
|
2018-01-21 10:37:29 -02:00
|
|
|
return g_application_run (G_APPLICATION (application), argc, argv);
|
2013-02-16 21:56:16 -05:00
|
|
|
}
|