From 8937b2f7b252a1aa74f6885ae5697f8124fce4e6 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 22 Sep 2017 03:55:53 -0400 Subject: main(): Use MqApplication --- (limited to 'src') diff --git a/src/main.c b/src/main.c index 7b297ce..f92fd7c 100644 --- a/src/main.c +++ b/src/main.c @@ -28,7 +28,7 @@ #include #include -#include "window.h" +#include "application.h" static gchar *opt_profile; static gboolean opt_private; @@ -59,7 +59,8 @@ static GOptionEntry entries[] = { int main(int argc, char *argv[]) { - GError *error; + GError *error; + MqApplication *application; if (G_UNLIKELY(!gtk_init_with_args(&argc, &argv, "[URI]", entries, NULL, &error))) { @@ -85,9 +86,8 @@ main(int argc, char *argv[]) webkit_web_context_set_favicon_database_directory( webkit_web_context_get_default(), NULL); - mq_window_new(opt_uris); + application = mq_application_new(opt_profile, opt_private); + mq_application_add_window(application, opt_uris); - gtk_main(); - - return EXIT_SUCCESS; + return mq_application_main(application); } -- cgit v0.9.1