/* main.c generated by valac 0.40.0.227-717ea, the Vala compiler
 * generated from main.vala, do not modify */

/*
 * This file is part of GNOME LaTeX.
 *
 * Copyright © 2010-2015, 2017 Sébastien Wilmet
 *
 * GNOME LaTeX 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 3 of the License, or
 * (at your option) any later version.
 *
 * GNOME LaTeX 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 GNOME LaTeX.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Author: Sébastien Wilmet
 */


#include <glib.h>
#include <glib-object.h>
#include <glib/gi18n-lib.h>
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <tepl/tepl.h>
#include <gtk/gtk.h>
#include <gio/gio.h>


#define TYPE_FACTORY (factory_get_type ())
#define FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FACTORY, Factory))
#define FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FACTORY, FactoryClass))
#define IS_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FACTORY))
#define IS_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FACTORY))
#define FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FACTORY, FactoryClass))

typedef struct _Factory Factory;
typedef struct _FactoryClass FactoryClass;

#define TYPE_GLATEX_APP (glatex_app_get_type ())
#define GLATEX_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GLATEX_APP, GlatexApp))
#define GLATEX_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GLATEX_APP, GlatexAppClass))
#define IS_GLATEX_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GLATEX_APP))
#define IS_GLATEX_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GLATEX_APP))
#define GLATEX_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GLATEX_APP, GlatexAppClass))

typedef struct _GlatexApp GlatexApp;
typedef struct _GlatexAppClass GlatexAppClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))



void init_i18n (void);
gint _vala_main (gchar** argv,
                 int argv_length1);
GType factory_get_type (void) G_GNUC_CONST;
Factory* factory_new (void);
Factory* factory_construct (GType object_type);
GType glatex_app_get_type (void) G_GNUC_CONST;
GlatexApp* glatex_app_new (void);
GlatexApp* glatex_app_construct (GType object_type);


void
init_i18n (void)
{
#line 26 "main.vala"
	bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIR);
#line 27 "main.vala"
	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#line 28 "main.vala"
	textdomain (GETTEXT_PACKAGE);
#line 81 "main.c"
}


gint
_vala_main (gchar** argv,
            int argv_length1)
{
	gint result = 0;
	Factory* factory = NULL;
	Factory* _tmp0_;
	GlatexApp* app = NULL;
	GlatexApp* _tmp1_;
	gint status = 0;
#line 33 "main.vala"
	init_i18n ();
#line 35 "main.vala"
	tepl_init ();
#line 36 "main.vala"
	_tmp0_ = factory_new ();
#line 36 "main.vala"
	factory = _tmp0_;
#line 37 "main.vala"
	tepl_abstract_factory_vala_set_singleton_vala ((TeplAbstractFactoryVala*) factory);
#line 39 "main.vala"
	_tmp1_ = glatex_app_new ();
#line 39 "main.vala"
	app = _tmp1_;
#line 40 "main.vala"
	status = g_application_run ((GApplication*) app, argv_length1, argv);
#line 42 "main.vala"
	tepl_finalize ();
#line 44 "main.vala"
	result = status;
#line 44 "main.vala"
	_g_object_unref0 (app);
#line 44 "main.vala"
	_g_object_unref0 (factory);
#line 44 "main.vala"
	return result;
#line 121 "main.c"
}


int
main (int argc,
      char ** argv)
{
#line 31 "main.vala"
	return _vala_main (argv, argc);
#line 131 "main.c"
}



