| 1 | /* |
| 2 | * Copyright (C) 2010-2013 Jiri Techet <[email protected]> |
| 3 | * Copyright (C) 2019 Marcus Lundblad <[email protected]> |
| 4 | * Copyright (C) 2021 James Westman <[email protected]> |
| 5 | * |
| 6 | * This library is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU Lesser General Public |
| 8 | * License as published by the Free Software Foundation; either |
| 9 | * version 2.1 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * This library is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | * Lesser General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU Lesser General Public |
| 17 | * License along with this library; if not, see <https://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | |
| 20 | |
| 21 | #include <shumate/shumate.h> |
| 22 | |
| 23 | #include "shumate-demo-window.h" |
| 24 | |
| 25 | |
| 26 | static void |
| 27 | activate (GtkApplication* app, |
| 28 | gpointer user_data) |
| 29 | { |
| 30 | ShumateDemoWindow *window; |
| 31 | |
| 32 | window = shumate_demo_window_new (app); |
| 33 | gtk_window_present (GTK_WINDOW (window)); |
| 34 | } |
| 35 | |
| 36 | |
| 37 | int |
| 38 | main (int argc, char *argv[]) |
| 39 | { |
| 40 | g_autoptr(GtkApplication) app = NULL; |
| 41 | |
| 42 | app = gtk_application_new ("org.gnome.Shumate.Demo.Devel", G_APPLICATION_DEFAULT_FLAGS); |
| 43 | g_signal_connect (app, "activate", G_CALLBACK (activate), NULL); |
| 44 | |
| 45 | return g_application_run (G_APPLICATION (app), argc, argv); |
| 46 | } |