GCC Code Coverage Report


Directory: ./
File: shell/main.c
Date: 2024-05-04 07:58:27
Exec Total Coverage
Lines: 0 9 0.0%
Functions: 0 1 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /*
2 * Copyright (c) 2009, 2010 Intel, Inc.
3 * Copyright (c) 2010 Red Hat, Inc.
4 *
5 * The Control Center is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version.
9 *
10 * The Control Center is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with the Control Center; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 * Author: Thomas Wood <thos@gnome.org>
20 */
21
22 #include "config.h"
23
24 #include <stdlib.h>
25 #include <locale.h>
26 #include <glib/gi18n.h>
27 #include <gtk/gtk.h>
28
29 #ifdef GDK_WINDOWING_X11
30 #include <X11/Xlib.h>
31 #endif
32
33 #include "cc-log.h"
34 #include "cc-application.h"
35
36 int
37 main (gint argc,
38 gchar **argv)
39 {
40 g_autoptr(GtkApplication) application = NULL;
41
42 bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
43 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
44 textdomain (GETTEXT_PACKAGE);
45
46 setlocale (LC_ALL, "");
47 cc_log_init ();
48
49 application = cc_application_new ();
50
51 return g_application_run (G_APPLICATION (application), argc, argv);
52 }
53