portal-test/gtk3/main.c
raw| 1 | #include <gtk/gtk.h> |
| 2 | #include <gst/gst.h> |
| 3 | |
| 4 | #include "portal-test-app.h" |
| 5 | |
| 6 | int |
| 7 | main (int argc, char *argv[]) |
| 8 | { |
| 9 | gst_init (&argc, &argv); |
| 10 | |
| 11 | g_message ("Starting org.gnome.PortalTest.Gtk3"); |
| 12 | |
| 13 | if (g_strv_contains ((const char * const *)argv, "--replace")) |
| 14 | portal_test_app_stop_running_instance (); |
| 15 | |
| 16 | return g_application_run (portal_test_app_new (), argc, argv); |
| 17 | } |