2018-05-10 01:43:14 +02:00
|
|
|
/*
|
2018-05-15 22:54:10 +02:00
|
|
|
* GDSII-Converter
|
2018-05-10 01:43:14 +02:00
|
|
|
* Copyright (C) 2018 Mario Hüttel <mario.huettel@gmx.net>
|
|
|
|
*
|
|
|
|
* This file is part of GDSII-Converter.
|
|
|
|
*
|
|
|
|
* GDSII-Converter is free software: you can redistribute it and/or modify
|
2018-05-16 16:29:34 +02:00
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
2018-05-10 01:43:14 +02:00
|
|
|
*
|
2018-05-15 22:54:10 +02:00
|
|
|
* GDSII-Converter is distributed in the hope that it will be useful,
|
2018-05-10 01:43:14 +02:00
|
|
|
* 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 GDSII-Converter. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2018-05-07 13:27:50 +02:00
|
|
|
#include <stdio.h>
|
2018-05-08 15:00:37 +02:00
|
|
|
#include <gtk/gtk.h>
|
2018-07-23 13:10:34 +02:00
|
|
|
#include "main-window.h"
|
2018-05-08 16:50:30 +02:00
|
|
|
|
2018-05-08 15:00:37 +02:00
|
|
|
|
2018-07-23 13:10:34 +02:00
|
|
|
static void gapp_activate(GApplication *app, gpointer user_data)
|
2018-05-08 15:00:37 +02:00
|
|
|
{
|
2018-07-23 13:10:34 +02:00
|
|
|
GtkWindow *main_window;
|
2018-05-22 16:17:14 +02:00
|
|
|
|
2018-07-23 13:10:34 +02:00
|
|
|
main_window = create_main_window();
|
|
|
|
gtk_application_add_window(GTK_APPLICATION(app), main_window);
|
2018-05-22 16:17:14 +02:00
|
|
|
}
|
2018-05-08 16:02:44 +02:00
|
|
|
|
2018-05-08 15:00:37 +02:00
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
2018-07-23 13:10:34 +02:00
|
|
|
GtkApplication *gapp;
|
|
|
|
int app_status;
|
2018-05-15 16:57:08 +02:00
|
|
|
|
2018-07-23 13:10:34 +02:00
|
|
|
gapp = gtk_application_new("de.shimatta.gds-render", G_APPLICATION_FLAGS_NONE);
|
|
|
|
g_signal_connect (gapp, "activate", G_CALLBACK(gapp_activate), NULL);
|
2018-05-17 21:46:14 +02:00
|
|
|
|
|
|
|
|
2018-07-23 13:10:34 +02:00
|
|
|
app_status = g_application_run (G_APPLICATION(gapp), argc, argv);
|
|
|
|
g_object_unref (gapp);
|
2018-05-07 13:27:50 +02:00
|
|
|
|
2018-07-23 13:10:34 +02:00
|
|
|
return app_status;
|
2018-05-07 13:27:50 +02:00
|
|
|
}
|